|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
/* $Id: game.c,v 1.54 2003/09/12 18:10:36 stpohle Exp $
|
|
|
|
|
/* $Id: game.c,v 1.55 2003/09/16 20:04:05 stpohle Exp $
|
|
|
|
|
game.c - procedures for the game. */
|
|
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
@ -182,6 +182,13 @@ game_loop ()
|
|
|
|
|
bman.updatestatusbar = 1; // force an update
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (keys[SDLK_F8] && event.type == SDL_KEYDOWN) {
|
|
|
|
|
/* Switch Fullscreen */
|
|
|
|
|
SDL_WM_ToggleFullScreen(gfx.screen);
|
|
|
|
|
gfx.fullscreen = !gfx.fullscreen;
|
|
|
|
|
bman.updatestatusbar = 1; // force an update
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (event.key.keysym.sym == SDLK_ESCAPE && event.type == SDL_KEYDOWN) {
|
|
|
|
|
bman.state = GS_startup;
|
|
|
|
|
done = 1;
|
|
|
|
|