From bfe35cab1408e911644bc151f6daa3b9961db2a7 Mon Sep 17 00:00:00 2001 From: nothere Date: Sat, 3 May 2003 08:22:14 +0000 Subject: [PATCH] =?utf8?q?is=5Fmagic()=E3=83=9E=E3=82=AF=E3=83=AD=E3=81=8C?= =?utf8?q?=E9=A0=98=E5=9F=9F=E7=95=AA=E5=8F=B70=E4=BB=A5=E4=B8=8B=E3=81=AB?= =?utf8?q?=E5=AF=BE=E3=81=97=E3=81=A6=E3=82=82TRUE=E3=82=92=E8=BF=94?= =?utf8?q?=E3=81=97=E3=81=A6=E3=81=84=E3=81=9F=E3=83=90=E3=82=B0=E3=82=92?= =?utf8?q?=E4=BF=AE=E6=AD=A3.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/defines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/defines.h b/src/defines.h index d20f2d734..06e972609 100644 --- a/src/defines.h +++ b/src/defines.h @@ -688,7 +688,7 @@ #define VALID_REALM (MAX_REALM + MAX_MAGIC - MIN_TECHNIC + 1) #define NUM_TECHNIC (MAX_REALM - MIN_TECHNIC + 1) -#define is_magic(A) ((A) < MAX_MAGIC + 1 ? TRUE : FALSE) +#define is_magic(A) ((((A) > REALM_NONE) && ((A) < MAX_MAGIC + 1)) ? TRUE : FALSE) #define tval2realm(A) ((A) - TV_LIFE_BOOK + 1) #define technic2magic(A) (is_magic(A) ? (A) : (A) - MIN_TECHNIC + 1 + MAX_MAGIC) #define is_good_realm(REALM) ((REALM) == REALM_LIFE || (REALM) == REALM_CRUSADE) -- 2.11.0