remove unused globals: save_cm, was_waterlevel
From entrez. Since restoring was removed separately it was easier to edit the files manually than to use his diff.
This commit is contained in:
@@ -772,7 +772,6 @@ struct instance_globals {
|
||||
stairway *stairs;
|
||||
int smeq[MAXNROFROOMS + 1];
|
||||
int doorindex;
|
||||
char *save_cm;
|
||||
long done_money;
|
||||
long domove_attempting;
|
||||
long domove_succeeded;
|
||||
@@ -997,7 +996,6 @@ struct instance_globals {
|
||||
/* mkmaze.c */
|
||||
lev_region bughack; /* for preserving the insect legs when wallifying
|
||||
* baalz level */
|
||||
boolean was_waterlevel; /* ugh... this shouldn't be needed */
|
||||
struct bubble *bbubbles;
|
||||
struct bubble *ebubbles;
|
||||
struct trap *wportal;
|
||||
|
||||
@@ -4502,13 +4502,9 @@ parse(void)
|
||||
}
|
||||
|
||||
g.multi = g.command_count;
|
||||
|
||||
if (g.multi) {
|
||||
if (g.multi)
|
||||
g.multi--;
|
||||
g.save_cm = g.command_line;
|
||||
} else {
|
||||
g.save_cm = (char *) 0;
|
||||
}
|
||||
|
||||
/* in 3.4.3 this was in rhack(), where it was too late to handle M-5 */
|
||||
if (g.Cmd.pcHack_compat) {
|
||||
/* This handles very old inconsistent DOS/Windows behaviour
|
||||
|
||||
@@ -262,7 +262,6 @@ const struct instance_globals g_init = {
|
||||
NULL, /* stairs */
|
||||
DUMMY, /* smeq */
|
||||
0, /* doorindex */
|
||||
NULL, /* save_cm */
|
||||
0, /* done_money */
|
||||
0L, /* domove_attempting */
|
||||
0L, /* domove_succeeded */
|
||||
@@ -466,7 +465,6 @@ const struct instance_globals g_init = {
|
||||
|
||||
/* mkmaze.c */
|
||||
{ {COLNO, ROWNO, 0, 0}, {COLNO, ROWNO, 0, 0} }, /* bughack */
|
||||
FALSE, /* was_waterlevel */
|
||||
UNDEFINED_PTR, /* bbubbles */
|
||||
UNDEFINED_PTR, /* ebubbles */
|
||||
UNDEFINED_PTR, /* wportal */
|
||||
|
||||
Reference in New Issue
Block a user