@ -307,7 +307,7 @@ wait_for_players ()
bman . state = GS_startup ;
bman . state = GS_startup ;
}
}
if ( keys[ SDLK_F8 ] & & event . type = = SDL_KEYDOWN ) {
if ( event. key . keysym . sym = = SDLK_F8 & & event . type = = SDL_KEYDOWN ) {
/* Switch Fullscreen */
/* Switch Fullscreen */
SDL_WM_ToggleFullScreen ( gfx . screen ) ;
SDL_WM_ToggleFullScreen ( gfx . screen ) ;
gfx . fullscreen = ! gfx . fullscreen ;
gfx . fullscreen = ! gfx . fullscreen ;
@ -316,7 +316,7 @@ wait_for_players ()
if ( bman . p_nr ! = - 1 ) {
if ( bman . p_nr ! = - 1 ) {
if ( keys[ SDLK_LEFT ] & & ( ! keypressed ) & & players [ bman . p_nr ] . gfx_nr = = - 1 ) {
if ( event. key . keysym . sym = = SDLK_LEFT & & event . type = = SDL_KEYDOWN & & ( ! keypressed ) & & players [ bman . p_nr ] . gfx_nr = = - 1 ) {
i = 0 ;
i = 0 ;
while ( selgfx < 0 | | selgfx > = MAX_PLAYERS | | i ! = - 1 ) {
while ( selgfx < 0 | | selgfx > = MAX_PLAYERS | | i ! = - 1 ) {
selgfx - - ;
selgfx - - ;
@ -326,7 +326,7 @@ wait_for_players ()
}
}
}
}
if ( keys[ SDLK_RIGHT ] & & ( ! keypressed ) & & players [ bman . p_nr ] . gfx_nr = = - 1 ) {
if ( event. key . keysym . sym = = SDLK_RIGHT & & event . type = = SDL_KEYDOWN & & ( ! keypressed ) & & players [ bman . p_nr ] . gfx_nr = = - 1 ) {
i = 0 ;
i = 0 ;
while ( selgfx < 0 | | selgfx > = MAX_PLAYERS | | i ! = - 1 ) {
while ( selgfx < 0 | | selgfx > = MAX_PLAYERS | | i ! = - 1 ) {
selgfx + + ;
selgfx + + ;
@ -347,7 +347,7 @@ wait_for_players ()
}
}
}
}
if ( ( keys[ SDLK_LCTRL ] | | keys [ SDLK_RCTRL ] ) & & ( ! keypressed ) ) {
if ( ( event. key . keysym . sym = = SDLK_LCTRL | | event . key . keysym . sym = = SDLK_RCTRL ) & & event . type = = SDL_KEYDOWN & & ( ! keypressed ) ) {
if ( players [ bman . p_nr ] . gfx_nr = = - 1 )
if ( players [ bman . p_nr ] . gfx_nr = = - 1 )
/* select player */
/* select player */
players [ bman . p_nr ] . gfx_nr = selgfx ;
players [ bman . p_nr ] . gfx_nr = selgfx ;
@ -359,12 +359,12 @@ wait_for_players ()
keypressed = 1 ;
keypressed = 1 ;
}
}
if ( ( GT_MP_PTPM ) & & ready & & keys[ SDLK_F4 ] & & ( ! keypressed ) ) {
if ( ( GT_MP_PTPM ) & & ready & & event. key . keysym . sym = = SDLK_F4 & & event . type = = SDL_KEYDOWN & & ( ! keypressed ) ) {
done = 1 ;
done = 1 ;
bman . updatestatusbar = 1 ;
bman . updatestatusbar = 1 ;
}
}
if ( keys[ SDLK_F2 ] & & ( ! keypressed ) ) {
if ( event. key . keysym . sym = = SDLK_F2 & & ( ! keypressed ) ) {
/* Map modification or setting display */
/* Map modification or setting display */
if ( GT_MP_PTPM ) {
if ( GT_MP_PTPM ) {
mapmenu ( ) ;
mapmenu ( ) ;
@ -392,9 +392,9 @@ wait_for_players ()
bman . updatestatusbar = 1 ;
bman . updatestatusbar = 1 ;
}
}
if ( keys[ SDLK_F1 ] & & ( ! keypressed ) ) /* open help screen */
if ( event. key . keysym . sym = = SDLK_F1 & & event . type = = SDL_KEYDOWN & & ( ! keypressed ) ) /* open help screen */
network_helpscreen ( ) ;
network_helpscreen ( ) ;
chat_loop ( & event ) ;
chat_loop ( & event ) ;
}
}