singleplayer menu number of ai players fixed

origin
stpohle 21 years ago
parent 2fe2f57247
commit 24477c8629

@ -1,4 +1,4 @@
/* $Id: menulists.c,v 1.4 2004/05/20 16:55:30 stpohle Exp $
/* $Id: menulists.c,v 1.5 2004/09/12 21:35:32 stpohle Exp $
* Menuhandling: lists */
@ -125,6 +125,7 @@ int menu_list_select (_menuitem *mi, int element) {
*(_charlist **)mi->ptrdata = l;
mi->changed = 1;
menu_draw_list (mi);
return 1;
@ -137,6 +138,7 @@ void menu_list_select_prev (_menuitem *mi) {
if (!menu_list_select (mi, sel - 1))
menu_list_select (mi, menu_list_getcount(mi) - 1);
mi->changed = 1;
};
@ -146,6 +148,7 @@ void menu_list_select_next (_menuitem *mi) {
if (!menu_list_select (mi, sel + 1))
menu_list_select (mi, 0);
mi->changed = 1;
};
@ -221,7 +224,8 @@ void menu_draw_list (_menuitem *mi) {
dest.y = mi->pos.y;
dest.w = mi->pos.w;
dest.h = menulistimages[0][0]->h;
menu_draw_background ((((_menu *)mi->menu)),&dest);
if (mi->changed) menu_draw_background ((((_menu *)mi->menu)),&dest);
/* check the focus of the button */
if (((_menu *)mi->menu)->focusvis && mi == ((_menu *)mi->menu)->focus)

@ -1,4 +1,4 @@
/* $Id: single.c,v 1.68 2004/09/12 20:54:25 stpohle Exp $ */
/* $Id: single.c,v 1.69 2004/09/12 21:35:32 stpohle Exp $ */
/* single player */
#include "basic.h"
@ -782,14 +782,12 @@ single_menu ()
pl2name = menu_create_entry (menu,"Player 2:",150,120, 230, &bman.player2name, LEN_PLAYERNAME, MENU_entrytext, 6);
second_playerold = second_player;
aiplayer->changed = 1;
menu_draw (menu);
menu_draw (menu);
}
gfx_blitdraw ();
eventstate = SDL_PollEvent (&event);
menu_draw (menu);
done = menu_event_loop (menu, &event, eventstate);
if (done > 0 && menu->focus->id == 7) {

Loading…
Cancel
Save