|
|
@ -232,14 +232,8 @@ mw_draw_chat ()
|
|
|
|
if (chat.visible == 0) {
|
|
|
|
if (chat.visible == 0) {
|
|
|
|
chat_show (16, mw_chat + 16, gfx.res.x - 16, gfx.res.y - 32);
|
|
|
|
chat_show (16, mw_chat + 16, gfx.res.x - 16, gfx.res.y - 32);
|
|
|
|
chat_addstatusline ("Press [STRG] or [CTRL] - to select a player");
|
|
|
|
chat_addstatusline ("Press [STRG] or [CTRL] - to select a player");
|
|
|
|
if (GT_MP_PTPM) {
|
|
|
|
if (GT_MP_PTPM)
|
|
|
|
chat_addstatusline ("F2 - to change map settings");
|
|
|
|
chat_addstatusline ("F1 - for the Help Screen");
|
|
|
|
chat_addstatusline ("F3 - to change player settings");
|
|
|
|
|
|
|
|
chat_addstatusline ("F4 - to start the game");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
chat_addstatusline ("F2 - to see the map settings");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -307,7 +301,7 @@ wait_for_players ()
|
|
|
|
|
|
|
|
|
|
|
|
keys = SDL_GetKeyState (NULL);
|
|
|
|
keys = SDL_GetKeyState (NULL);
|
|
|
|
|
|
|
|
|
|
|
|
if (keys[SDLK_ESCAPE] && event.type == SDL_KEYDOWN) {
|
|
|
|
if (event.key.keysym.sym == SDLK_ESCAPE && event.type == SDL_KEYDOWN) {
|
|
|
|
/* we want to quit */
|
|
|
|
/* we want to quit */
|
|
|
|
done = 1;
|
|
|
|
done = 1;
|
|
|
|
bman.p_nr = -1;
|
|
|
|
bman.p_nr = -1;
|
|
|
@ -388,19 +382,26 @@ wait_for_players ()
|
|
|
|
mw_draw_chat ();
|
|
|
|
mw_draw_chat ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ((GT_MP_PTPM) && keys[SDLK_F3] && (!keypressed)) {
|
|
|
|
if ((GT_MP_PTPM) && (!keypressed) && event.key.keysym.sym == SDLK_F3 && event.type == SDL_KEYDOWN) {
|
|
|
|
|
|
|
|
if (!keys[SDLK_RSHIFT] && !keys[SDLK_LSHIFT] )
|
|
|
|
single_create_ai (1);
|
|
|
|
single_create_ai (1);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
single_delete_ai (1);
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < MAX_PLAYERS; i++)
|
|
|
|
for (i = 0; i < MAX_PLAYERS; i++)
|
|
|
|
net_change_playerid (i, GT_MP_PTPM);
|
|
|
|
net_change_playerid (i, GT_MP_PTPM);
|
|
|
|
bman.updatestatusbar = 1;
|
|
|
|
bman.updatestatusbar = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (keys[SDLK_F1] && (!keypressed)) /* open help screen */
|
|
|
|
|
|
|
|
network_helpscreen ();
|
|
|
|
|
|
|
|
|
|
|
|
chat_loop (&event);
|
|
|
|
chat_loop (&event);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (event.type == SDL_KEYUP)
|
|
|
|
if (event.type == SDL_KEYUP)
|
|
|
|
keypressed = 0;
|
|
|
|
keypressed = 0;
|
|
|
|
else if (event.type == SDL_KEYDOWN)
|
|
|
|
else if (event.type == SDL_KEYDOWN && event.key.keysym.sym != SDLK_RSHIFT && event.key.keysym.sym != SDLK_LSHIFT)
|
|
|
|
keypressed = 1;
|
|
|
|
keypressed = 1;
|
|
|
|
|
|
|
|
|
|
|
|
s_delay (25);
|
|
|
|
s_delay (25);
|
|
|
|