@ -1,4 +1,4 @@
/* $Id: menu.c,v 1.2 0 2003/05/10 00:36:03 patty21 Exp $ */
/* $Id: menu.c,v 1.2 1 2003/05/10 21:14:04 ob1kenewb Exp $ */
/* menu's for the game */
/* menu's for the game */
# include <SDL.h>
# include <SDL.h>
@ -127,7 +127,7 @@ menu_loop (char *menutitle, _menu menu[], int lastselect)
if ( bman . gametype = = GT_multi & & bman . sock ! = - 1 )
if ( bman . gametype = = GT_multi & & bman . sock ! = - 1 )
network_loop ( ) ;
network_loop ( ) ;
if ( SDL_ Poll Event ( & event ) ! = 0 )
if ( SDL_ Wait Event ( & event ) ! = 0 )
switch ( event . type ) {
switch ( event . type ) {
case ( SDL_QUIT ) :
case ( SDL_QUIT ) :
menuselect = - 1 ;
menuselect = - 1 ;
@ -240,7 +240,7 @@ menu_get_text (char *title, char *text, int len)
if ( bman . gametype = = GT_multi & & bman . sock ! = - 1 )
if ( bman . gametype = = GT_multi & & bman . sock ! = - 1 )
network_loop ( ) ;
network_loop ( ) ;
if ( SDL_ Poll Event ( & event ) ! = 0 )
if ( SDL_ Wait Event ( & event ) ! = 0 )
switch ( event . type ) {
switch ( event . type ) {
case ( SDL_QUIT ) :
case ( SDL_QUIT ) :
bman . state = GS_quit ;
bman . state = GS_quit ;
@ -346,7 +346,7 @@ menu_displaymessage (char *title, char *text)
if ( bman . gametype = = GT_multi & & bman . sock ! = - 1 )
if ( bman . gametype = = GT_multi & & bman . sock ! = - 1 )
network_loop ( ) ;
network_loop ( ) ;
if ( SDL_ Poll Event ( & event ) ! = 0 )
if ( SDL_ Wait Event ( & event ) ! = 0 )
switch ( event . type ) {
switch ( event . type ) {
case ( SDL_QUIT ) :
case ( SDL_QUIT ) :
done = 1 ;
done = 1 ;
@ -460,7 +460,7 @@ char *menu_dir_select (char *title, char *path, signed char dirflags) {
if ( bman . gametype = = GT_multi & & bman . sock ! = - 1 )
if ( bman . gametype = = GT_multi & & bman . sock ! = - 1 )
network_loop ( ) ;
network_loop ( ) ;
if ( SDL_ Poll Event ( & event ) ! = 0 )
if ( SDL_ Wait Event ( & event ) ! = 0 )
switch ( event . type ) {
switch ( event . type ) {
case ( SDL_QUIT ) :
case ( SDL_QUIT ) :
sel = - 1 ;
sel = - 1 ;