changed: game loop should not use the s_findeven function.

origin
stpohle 20 years ago
parent 862e347fd1
commit 833693fbd4

@ -1,4 +1,7 @@
$Id: ChangeLog,v 1.104 2005/07/06 13:11:51 stpohle Exp $ $Id: ChangeLog,v 1.105 2005/08/07 17:58:04 stpohle Exp $
- Fixed: High CPU usage in menus.
This fix was made by Chris E..
- Fixed: Bug with more as 8 diffrent player graphics. - Fixed: Bug with more as 8 diffrent player graphics.
The window size hasen't changed if there where more as The window size hasen't changed if there where more as
8 different player graphics to choose from. 8 different player graphics to choose from.

@ -1,4 +1,4 @@
/* $Id: game.c,v 1.113 2005/08/07 17:46:21 stpohle Exp $ /* $Id: game.c,v 1.114 2005/08/07 17:58:05 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 = s_fetchevent (&event)) != 0) if ((eventstate = SDL_PollEvent (&event)) != 0)
switch (event.type) { switch (event.type) {
case (SDL_QUIT): case (SDL_QUIT):
done = 1; done = 1;

@ -1,4 +1,4 @@
/* $Id: menu.c,v 1.51 2005/08/07 17:46:21 stpohle Exp $ /* $Id: menu.c,v 1.52 2005/08/07 17:58:05 stpohle Exp $
* Menuhandling */ * Menuhandling */
#include "basic.h" #include "basic.h"
@ -540,7 +540,7 @@ menu_loop (_menu * menu)
eventstate = s_fetchevent (&event); eventstate = s_fetchevent (&event);
done = menu_event_loop (menu, &event, eventstate); done = menu_event_loop (menu, &event, eventstate);
s_calctimesync (); s_calctimesync ();
} }

Loading…
Cancel
Save