quit game button in the InGame menu is working now

origin
stpohle 21 years ago
parent 97865a4fef
commit ca297c3a9a

@ -1,4 +1,4 @@
$Id: ChangeLog,v 1.78 2004/09/12 21:08:11 stpohle Exp $
$Id: ChangeLog,v 1.79 2004/09/12 21:50:55 stpohle Exp $
* NEED TO FIX: Server starts the game soo fast that the
client's ignore the gamestat for a running game.
@ -6,6 +6,8 @@ $Id: ChangeLog,v 1.78 2004/09/12 21:08:11 stpohle Exp $
* FINISH TEAM MODE.
- fixed: Quit Game wasn't working from the in game menu
- fixed: Network Version Error. There is no
possible Escape.

@ -1,4 +1,4 @@
/* $Id: game.c,v 1.88 2004/06/16 00:41:29 stpohle Exp $
/* $Id: game.c,v 1.89 2004/09/12 21:49:13 stpohle Exp $
game.c - procedures for the game. */
#include <string.h>
@ -498,7 +498,7 @@ void game_showresult () {
SDL_Flip (gfx.screen);
gfx_free_players ();
while (!done) {
while (!done && bman.state != GS_quit) {
/* do the keyboard handling */
if (SDL_PollEvent (&event) != 0)
switch (event.type) {
@ -590,7 +590,7 @@ void game_menu_loop (SDL_Event *event, int eventstate) {
}
else if (menu->focus->id == 3) /* End Game */
bman.state = GS_startup;
bman.state = GS_quit;
else { /* Quit Menu */
menu_delete (menu);

Loading…
Cancel
Save