(svn r1502) -Fix: [1101889] Crash under windows... stupid typo in player_gui.c ^ should've been &

-Fix: in multiplayer clientlist can only be opened once
This commit is contained in:
darkvater 2005-01-13 20:46:39 +00:00
parent 7dddb6cf7a
commit 352cf002b2
3 changed files with 6 additions and 4 deletions

View File

@ -251,7 +251,7 @@ static void MenuClickFinances(int index)
}
#ifdef ENABLE_NETWORK
extern void ShowClientList();
extern void ShowClientList(void);
#endif /* ENABLE_NETWORK */
static void MenuClickCompany(int index)

View File

@ -1255,9 +1255,11 @@ static void ClientListWndProc(Window *w, WindowEvent *e)
}
}
void ShowClientList()
void ShowClientList(void)
{
AllocateWindowDesc(&_client_list_desc);
Window *w = AllocateWindowDescFront(&_client_list_desc, 0);
if (w)
w->window_number = 0;
}
extern void SwitchMode(int new_mode);

View File

@ -163,7 +163,7 @@ static void PlayerFinancesWndProc(Window *w, WindowEvent *e)
bool stickied = !!(w->flags4 & WF_STICKY);
int player = w->window_number;
DeleteWindow(w);
DoShowPlayerFinances(player, mode^1, stickied);
DoShowPlayerFinances(player, !HASBIT(mode, 0), stickied);
} break;
case 6: /* increase loan */