More globals moved to instance_globals.
This commit is contained in:
14
src/topten.c
14
src/topten.c
@@ -144,11 +144,11 @@ boolean incl_helpless;
|
||||
}
|
||||
*buf = '\0';
|
||||
|
||||
if (incl_helpless && multi) {
|
||||
if (incl_helpless && g.multi) {
|
||||
/* X <= siz: 'sizeof "string"' includes 1 for '\0' terminator */
|
||||
if (multi_reason && strlen(multi_reason) + sizeof ", while " <= siz)
|
||||
Sprintf(buf, ", while %s", multi_reason);
|
||||
/* either multi_reason wasn't specified or wouldn't fit */
|
||||
if (g.multi_reason && strlen(g.multi_reason) + sizeof ", while " <= siz)
|
||||
Sprintf(buf, ", while %s", g.multi_reason);
|
||||
/* either g.multi_reason wasn't specified or wouldn't fit */
|
||||
else if (sizeof ", while helpless" <= siz)
|
||||
Strcpy(buf, ", while helpless");
|
||||
/* else extra death info won't fit, so leave it out */
|
||||
@@ -362,9 +362,9 @@ int how;
|
||||
Fprintf(rfile, "%s%cname=%s%cdeath=%s",
|
||||
buf, /* (already includes separator) */
|
||||
XLOG_SEP, plname, XLOG_SEP, tmpbuf);
|
||||
if (multi)
|
||||
if (g.multi)
|
||||
Fprintf(rfile, "%cwhile=%s", XLOG_SEP,
|
||||
multi_reason ? multi_reason : "helpless");
|
||||
g.multi_reason ? g.multi_reason : "helpless");
|
||||
Fprintf(rfile, "%cconduct=0x%lx%cturns=%ld%cachieve=0x%lx", XLOG_SEP,
|
||||
encodeconduct(), XLOG_SEP, moves, XLOG_SEP, encodeachieve());
|
||||
Fprintf(rfile, "%crealtime=%ld%cstarttime=%ld%cendtime=%ld", XLOG_SEP,
|
||||
@@ -1132,7 +1132,7 @@ char **argv;
|
||||
raw_print(pbuf);
|
||||
raw_printf("Usage: %s -s [-v] <playertypes> [maxrank] [playernames]",
|
||||
|
||||
hname);
|
||||
g.hname);
|
||||
raw_printf("Player types are: [-p role] [-r race]");
|
||||
}
|
||||
free_ttlist(tt_head);
|
||||
|
||||
Reference in New Issue
Block a user