From 332abb07aa6fd5847b86f393f0416750a9cd23d5 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Sat, 18 Oct 2008 12:40:06 +0000 Subject: [PATCH] misplaced C variable declaration in current code options.c ..\src\options.c(4072) : error C2275: 'boolean' : illegal use of this type as an expression c:\personal\nhdev\350\test\include\global.h(56) : see declaration of 'boolean' ..\src\options.c(4072) : error C2146: syntax error : missing ';' before identifier 'found' ..\src\options.c(4072) : error C2065: 'found' : undeclared identifier ..\src\options.c(4072) : error C2065: 'numeric' : undeclared identifier ..\src\options.c(4077) : error C2065: 'found' : undeclared identifier ..\src\options.c(4088) : error C2065: 'numeric' : undeclared identifier ..\src\options.c(4090) : error C2065: 'found' : undeclared identifier ..\src\options.c(4090) : error C2065: 'numeric' : undeclared identifier --- src/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options.c b/src/options.c index 7371a8ecd..af9eaf652 100644 --- a/src/options.c +++ b/src/options.c @@ -4059,6 +4059,8 @@ char *str; * 0 is an error. */ if (user_specified) { + boolean found = FALSE, numeric = FALSE; + /* force fruit to be singular; this handling is not needed--or wanted--for fruits from bones because they already received it in their original game */ @@ -4069,8 +4071,6 @@ char *str; * to tell the difference) */ - boolean found = FALSE, numeric = FALSE; - for (i = bases[FOOD_CLASS]; objects[i].oc_class == FOOD_CLASS; i++) { if (!strcmp(OBJ_NAME(objects[i]), pl_fruit)) {