Changes needed in various ports due to globals changes.
This commit is contained in:
@@ -459,7 +459,7 @@ plselInitDialog(HWND hWnd)
|
||||
TCHAR wbuf[BUFSZ];
|
||||
|
||||
/* set player name */
|
||||
SetDlgItemText(hWnd, IDC_PLSEL_NAME, NH_A2W(plname, wbuf, sizeof(wbuf)));
|
||||
SetDlgItemText(hWnd, IDC_PLSEL_NAME, NH_A2W(g.plname, wbuf, sizeof(wbuf)));
|
||||
|
||||
/* check flags for consistency */
|
||||
if (flags.initrole >= 0) {
|
||||
|
||||
@@ -826,7 +826,7 @@ mswin_layout_main_window(HWND changed_child)
|
||||
/* show command window only if it exists and
|
||||
the game is ready (plname is set) */
|
||||
if (GetNHApp()->bCmdPad && cmd_size.cx > 0 && cmd_size.cy > 0
|
||||
&& *plname) {
|
||||
&& *g.plname) {
|
||||
MoveWindow(GetNHApp()->hCmdWnd, cmd_org.x, cmd_org.y, cmd_size.cx,
|
||||
cmd_size.cy, TRUE);
|
||||
ShowWindow(GetNHApp()->hCmdWnd, SW_SHOW);
|
||||
|
||||
@@ -182,7 +182,7 @@ FormatStatusString(char *text, int format)
|
||||
int hp, hpmax;
|
||||
int cap = near_capacity();
|
||||
|
||||
Strcpy(text, plname);
|
||||
Strcpy(text, g.plname);
|
||||
if ('a' <= text[0] && text[0] <= 'z')
|
||||
text[0] += 'A' - 'a';
|
||||
text[10] = 0;
|
||||
|
||||
@@ -645,7 +645,7 @@ mswin_askname(void)
|
||||
{
|
||||
logDebug("mswin_askname()\n");
|
||||
|
||||
if (mswin_getlin_window("who are you?", plname, PL_NSIZ) == IDCANCEL) {
|
||||
if (mswin_getlin_window("who are you?", g.plname, PL_NSIZ) == IDCANCEL) {
|
||||
bail("bye-bye");
|
||||
/* not reached */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user