From 8b69a5aabb86484cac0a7e527953165a6dda4642 Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 23 Oct 2025 11:18:42 -0400 Subject: [PATCH] a few constants that don't need to be octal at all --- include/objclass.h | 6 +++--- src/restore.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/objclass.h b/include/objclass.h index 23c3a86f2..3faf84a16 100644 --- a/include/objclass.h +++ b/include/objclass.h @@ -76,9 +76,9 @@ struct objclass { #define IMMEDIATE 2 /* directional beam that doesn't ricochet */ #define RAY 3 /* beam that does bounce off walls */ /* overloaded oc_dir: strike mode bit mask for weapons and weptools */ -#define PIERCE 01 /* pointed weapon punctures target */ -#define SLASH 02 /* sharp weapon cuts target */ -#define WHACK 04 /* blunt weapon bashes target */ +#define PIERCE 1 /* pointed weapon punctures target */ +#define SLASH 2 /* sharp weapon cuts target */ +#define WHACK 4 /* blunt weapon bashes target */ Bitfield(oc_material, 5); /* one of obj_material_types */ schar oc_subtyp; diff --git a/src/restore.c b/src/restore.c index 59bc231ad..91ade76f2 100644 --- a/src/restore.c +++ b/src/restore.c @@ -1208,7 +1208,7 @@ getlev(NHFILE *nhfp, int pid, xint8 lev) them is different now than when the level was saved */ restore_cham(mtmp); /* 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); } #endif /* !SFCTOOL */