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
This commit is contained in:
+2
-2
@@ -4059,6 +4059,8 @@ char *str;
|
|||||||
* 0 is an error.
|
* 0 is an error.
|
||||||
*/
|
*/
|
||||||
if (user_specified) {
|
if (user_specified) {
|
||||||
|
boolean found = FALSE, numeric = FALSE;
|
||||||
|
|
||||||
/* force fruit to be singular; this handling is not
|
/* force fruit to be singular; this handling is not
|
||||||
needed--or wanted--for fruits from bones because
|
needed--or wanted--for fruits from bones because
|
||||||
they already received it in their original game */
|
they already received it in their original game */
|
||||||
@@ -4069,8 +4071,6 @@ char *str;
|
|||||||
* to tell the difference)
|
* to tell the difference)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
boolean found = FALSE, numeric = FALSE;
|
|
||||||
|
|
||||||
for (i = bases[FOOD_CLASS]; objects[i].oc_class == FOOD_CLASS;
|
for (i = bases[FOOD_CLASS]; objects[i].oc_class == FOOD_CLASS;
|
||||||
i++) {
|
i++) {
|
||||||
if (!strcmp(OBJ_NAME(objects[i]), pl_fruit)) {
|
if (!strcmp(OBJ_NAME(objects[i]), pl_fruit)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user