Changes needed in various ports due to globals changes.
This commit is contained in:
@@ -355,7 +355,7 @@ gnome_askname()
|
||||
|
||||
/* Ask for a name and stuff the response into plname, a nethack global */
|
||||
ret = ghack_ask_string_dialog("What is your name?", "gandalf",
|
||||
"GnomeHack", plname);
|
||||
"GnomeHack", g.plname);
|
||||
|
||||
/* Quit if they want to quit... */
|
||||
if (ret == -1) {
|
||||
@@ -1169,7 +1169,7 @@ gnome_outrip(winid wid, int how, time_t when)
|
||||
long year;
|
||||
|
||||
/* Put name on stone */
|
||||
Sprintf(buf, "%s\n", plname);
|
||||
Sprintf(buf, "%s\n", g.plname);
|
||||
Strcat(ripString, buf);
|
||||
|
||||
/* Put $ on stone */
|
||||
|
||||
@@ -440,7 +440,7 @@ ghack_status_window_update_stats()
|
||||
long umoney;
|
||||
|
||||
/* First, fill in the player name and the dungeon level */
|
||||
strcpy(buf, plname);
|
||||
strcpy(buf, g.plname);
|
||||
if ('a' <= buf[0] && buf[0] <= 'z')
|
||||
buf[0] += 'A' - 'a';
|
||||
strcat(buf, " the ");
|
||||
|
||||
Reference in New Issue
Block a user