ref: bee675c6d0f6a89c2a4e2610d04e2fdf0b6149f0
parent: 847056af1d9a903a66d361ca6fcbd8004c9c2466
author: Turo Lamminen <turol@iki.fi>
date: Sat Sep 17 12:21:29 EDT 2022
hexen: Rename NUMKEYS to NUM_KEY_TYPES
--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -364,7 +364,7 @@
key_yellow,
key_green,
key_blue,
- NUMKEYS
+ NUM_KEY_TYPES
} keytype_t;
*/
@@ -381,7 +381,7 @@
KEY_9,
KEY_A,
KEY_B,
- NUMKEYS
+ NUM_KEY_TYPES
} keytype_t;
typedef enum
--- a/src/hexen/sb_bar.c
+++ b/src/hexen/sb_bar.c
@@ -1272,7 +1272,7 @@
if (oldkeys != CPlayer->keys)
{
xPosition = 46;
- for (i = 0; i < NUMKEYS && xPosition <= 126; i++)
+ for (i = 0; i < NUM_KEY_TYPES && xPosition <= 126; i++)
{
if (CPlayer->keys & (1 << i))
{