a few constants that don't need to be octal at all

This commit is contained in:
nhmall
2025-10-23 11:18:42 -04:00
parent f636749ea2
commit 8b69a5aabb
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -76,9 +76,9 @@ struct objclass {
#define IMMEDIATE 2 /* directional beam that doesn't ricochet */ #define IMMEDIATE 2 /* directional beam that doesn't ricochet */
#define RAY 3 /* beam that does bounce off walls */ #define RAY 3 /* beam that does bounce off walls */
/* overloaded oc_dir: strike mode bit mask for weapons and weptools */ /* overloaded oc_dir: strike mode bit mask for weapons and weptools */
#define PIERCE 01 /* pointed weapon punctures target */ #define PIERCE 1 /* pointed weapon punctures target */
#define SLASH 02 /* sharp weapon cuts target */ #define SLASH 2 /* sharp weapon cuts target */
#define WHACK 04 /* blunt weapon bashes target */ #define WHACK 4 /* blunt weapon bashes target */
Bitfield(oc_material, 5); /* one of obj_material_types */ Bitfield(oc_material, 5); /* one of obj_material_types */
schar oc_subtyp; schar oc_subtyp;
+1 -1
View File
@@ -1208,7 +1208,7 @@ getlev(NHFILE *nhfp, int pid, xint8 lev)
them is different now than when the level was saved */ them is different now than when the level was saved */
restore_cham(mtmp); restore_cham(mtmp);
/* give hiders a chance to hide before their next move */ /* give hiders a chance to hide before their next move */
if (ghostly || (elapsed > 00 && elapsed > (long) rnd(10))) if (ghostly || (elapsed > 0L && elapsed > (long) rnd(10)))
hide_monst(mtmp); hide_monst(mtmp);
} }
#endif /* !SFCTOOL */ #endif /* !SFCTOOL */