Changed references from hname to g.hname.

This commit is contained in:
Bart House
2018-12-22 14:51:26 -08:00
parent c9565d4ef6
commit 9567526586
3 changed files with 8 additions and 8 deletions

View File

@@ -131,11 +131,11 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
#ifdef TOS
long clock_time;
if (*argv[0]) { /* only a CLI can give us argv[0] */
hname = argv[0];
g.hname = argv[0];
run_from_desktop = FALSE;
} else
#endif
hname = "NetHack"; /* used for syntax messages */
g.hname = "NetHack"; /* used for syntax messages */
choose_windows(DEFAULT_WINDOW_SYS);
@@ -675,12 +675,12 @@ nhusage()
*/
(void) Sprintf(buf2, "\nUsage:\n%s [-d dir] -s [-r race] [-p profession] "
"[maxrank] [name]...\n or",
hname);
g.hname);
ADD_USAGE(buf2);
(void) Sprintf(
buf2, "\n%s [-d dir] [-u name] [-r race] [-p profession] [-[DX]]",
hname);
g.hname);
ADD_USAGE(buf2);
#ifdef NEWS
ADD_USAGE(" [-n]");