Revert "Removed unnecessary use of static for nocreate values."
This reverts commit 74fc1403e3.
This commit is contained in:
11
src/u_init.c
11
src/u_init.c
@@ -974,16 +974,15 @@ register struct trobj *trop;
|
|||||||
struct obj *obj;
|
struct obj *obj;
|
||||||
int otyp, i;
|
int otyp, i;
|
||||||
|
|
||||||
NEARDATA short nocreate = STRANGE_OBJECT;
|
while (trop->trclass) {
|
||||||
NEARDATA short nocreate2 = STRANGE_OBJECT;
|
|
||||||
NEARDATA short nocreate3 = STRANGE_OBJECT;
|
|
||||||
NEARDATA short nocreate4 = STRANGE_OBJECT;
|
|
||||||
|
|
||||||
while (trop->trclass) {
|
|
||||||
otyp = (int) trop->trotyp;
|
otyp = (int) trop->trotyp;
|
||||||
if (otyp != UNDEF_TYP) {
|
if (otyp != UNDEF_TYP) {
|
||||||
obj = mksobj(otyp, TRUE, FALSE);
|
obj = mksobj(otyp, TRUE, FALSE);
|
||||||
} else { /* UNDEF_TYP */
|
} else { /* UNDEF_TYP */
|
||||||
|
static NEARDATA short nocreate = STRANGE_OBJECT;
|
||||||
|
static NEARDATA short nocreate2 = STRANGE_OBJECT;
|
||||||
|
static NEARDATA short nocreate3 = STRANGE_OBJECT;
|
||||||
|
static NEARDATA short nocreate4 = STRANGE_OBJECT;
|
||||||
/*
|
/*
|
||||||
* For random objects, do not create certain overly powerful
|
* For random objects, do not create certain overly powerful
|
||||||
* items: wand of wishing, ring of levitation, or the
|
* items: wand of wishing, ring of levitation, or the
|
||||||
|
|||||||
Reference in New Issue
Block a user