|
|
@ -1,4 +1,4 @@
|
|
|
|
/* $Id: game.c,v 1.112 2005/07/06 13:11:55 stpohle Exp $
|
|
|
|
/* $Id: game.c,v 1.113 2005/08/07 17:46:21 stpohle Exp $
|
|
|
|
game.c - procedures for the game. */
|
|
|
|
game.c - procedures for the game. */
|
|
|
|
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <string.h>
|
|
|
@ -257,7 +257,7 @@ game_loop ()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
while (!done && (bman.state == GS_running || bman.state == GS_ready)) {
|
|
|
|
while (!done && (bman.state == GS_running || bman.state == GS_ready)) {
|
|
|
|
if ((eventstate = SDL_PollEvent (&event)) != 0)
|
|
|
|
if ((eventstate = s_fetchevent (&event)) != 0)
|
|
|
|
switch (event.type) {
|
|
|
|
switch (event.type) {
|
|
|
|
case (SDL_QUIT):
|
|
|
|
case (SDL_QUIT):
|
|
|
|
done = 1;
|
|
|
|
done = 1;
|
|
|
@ -884,7 +884,7 @@ game_showresult ()
|
|
|
|
|
|
|
|
|
|
|
|
while (!done && bman.state != GS_quit) {
|
|
|
|
while (!done && bman.state != GS_quit) {
|
|
|
|
/* do the keyboard handling */
|
|
|
|
/* do the keyboard handling */
|
|
|
|
if (SDL_PollEvent (&event) != 0)
|
|
|
|
if (s_fetchevent (&event) != 0)
|
|
|
|
switch (event.type) {
|
|
|
|
switch (event.type) {
|
|
|
|
case (SDL_QUIT):
|
|
|
|
case (SDL_QUIT):
|
|
|
|
bman.state = GS_quit;
|
|
|
|
bman.state = GS_quit;
|
|
|
|