summaryrefslogtreecommitdiff
path: root/apps/plugins/superdom.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/superdom.c')
-rw-r--r--apps/plugins/superdom.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugins/superdom.c b/apps/plugins/superdom.c
index e3f35f91ac..c047ed454a 100644
--- a/apps/plugins/superdom.c
+++ b/apps/plugins/superdom.c
@@ -493,7 +493,7 @@ int settings_menu_function(void) {
493 "Human starting farms","Human starting factories", 493 "Human starting farms","Human starting factories",
494 "Starting cash","Starting food","Moves per turn"); 494 "Starting cash","Starting food","Moves per turn");
495settings_menu: 495settings_menu:
496 selection=rb->do_menu(&settings_menu,&selection); 496 selection=rb->do_menu(&settings_menu,&selection, NULL, false);
497 switch(selection) { 497 switch(selection) {
498 case 0: 498 case 0:
499 rb->set_int("Computer starting farms", "", UNIT_INT, 499 rb->set_int("Computer starting farms", "", UNIT_INT,
@@ -557,7 +557,7 @@ int do_help(void) {
557 "Each tile has a strength, calculated by the ownership", 557 "Each tile has a strength, calculated by the ownership",
558 "of adjacent tiles, and the type and number of troops", 558 "of adjacent tiles, and the type and number of troops",
559 "on them."); 559 "on them.");
560 rb->do_menu(&help_menu,&selection); 560 rb->do_menu(&help_menu,&selection, NULL, false);
561 switch(selection) { 561 switch(selection) {
562 case MENU_ATTACHED_USB: 562 case MENU_ATTACHED_USB:
563 return PLUGIN_USB_CONNECTED; 563 return PLUGIN_USB_CONNECTED;
@@ -573,7 +573,7 @@ int menu(void) {
573 "Play Super Domination","Settings","Help","Quit"); 573 "Play Super Domination","Settings","Help","Quit");
574 574
575 while(1) { 575 while(1) {
576 selection=rb->do_menu(&main_menu,&selection); 576 selection=rb->do_menu(&main_menu,&selection, NULL, false);
577 switch(selection) { 577 switch(selection) {
578 case 0: 578 case 0:
579 return 0; /* start playing */ 579 return 0; /* start playing */
@@ -651,7 +651,7 @@ int ingame_menu(void) {
651 MENUITEM_STRINGLIST(ingame_menu,"Super Domination Menu",NULL, 651 MENUITEM_STRINGLIST(ingame_menu,"Super Domination Menu",NULL,
652 "Return to game","Save Game", "Quit"); 652 "Return to game","Save Game", "Quit");
653 653
654 selection=rb->do_menu(&ingame_menu,&selection); 654 selection=rb->do_menu(&ingame_menu,&selection, NULL, false);
655 switch(selection) { 655 switch(selection) {
656 case 0: 656 case 0:
657 return 0; 657 return 0;
@@ -864,7 +864,7 @@ int buy_resources_menu(void) {
864 "Finish buying", "Game menu"); 864 "Finish buying", "Game menu");
865 865
866resources_menu: 866resources_menu:
867 selection=rb->do_menu(&res_menu,&selection); 867 selection=rb->do_menu(&res_menu,&selection, NULL, false);
868 switch(selection) { 868 switch(selection) {
869 case 0: 869 case 0:
870 nummen = 0; 870 nummen = 0;
@@ -1059,7 +1059,7 @@ int move_unit(void) {
1059 1059
1060 MENUITEM_STRINGLIST(move_unit_menu, "Move unit", NULL, "Move men", 1060 MENUITEM_STRINGLIST(move_unit_menu, "Move unit", NULL, "Move men",
1061 "Move tank", "Move plane"); 1061 "Move tank", "Move plane");
1062 selection=rb->do_menu(&move_unit_menu,&selection); 1062 selection=rb->do_menu(&move_unit_menu,&selection, NULL, false);
1063 switch(selection) { 1063 switch(selection) {
1064 case 0: 1064 case 0:
1065 rb->splash(HZ, "Select where to move troops from"); 1065 rb->splash(HZ, "Select where to move troops from");
@@ -1173,7 +1173,7 @@ int movement_menu(void) {
1173 "Check map", "Finish moving", "Game menu"); 1173 "Check map", "Finish moving", "Game menu");
1174 1174
1175 while(!menu_quit) { 1175 while(!menu_quit) {
1176 selection=rb->do_menu(&move_menu,&selection); 1176 selection=rb->do_menu(&move_menu,&selection, NULL, false);
1177 switch(selection) { 1177 switch(selection) {
1178 case 0: 1178 case 0:
1179 if(humanres.moves) { 1179 if(humanres.moves) {
@@ -1281,7 +1281,7 @@ int production_menu(void) {
1281 "Withdraw money", "Finish turn", "Game menu"); 1281 "Withdraw money", "Finish turn", "Game menu");
1282 1282
1283 while(1) { 1283 while(1) {
1284 selection=rb->do_menu(&prod_menu,&selection); 1284 selection=rb->do_menu(&prod_menu,&selection, NULL, false);
1285 switch(selection) { 1285 switch(selection) {
1286 case 0: 1286 case 0:
1287 tempmenu = buy_resources_menu(); 1287 tempmenu = buy_resources_menu();
@@ -1523,7 +1523,7 @@ int war_menu(void) {
1523 1523
1524 humanres.moves = superdom_settings.movesperturn; 1524 humanres.moves = superdom_settings.movesperturn;
1525 while(humanres.moves) { 1525 while(humanres.moves) {
1526 selection=rb->do_menu(&wartime_menu,&selection); 1526 selection=rb->do_menu(&wartime_menu,&selection, NULL, false);
1527 switch(selection) { 1527 switch(selection) {
1528 case 0: 1528 case 0:
1529 if(select_square() == PLUGIN_USB_CONNECTED) 1529 if(select_square() == PLUGIN_USB_CONNECTED)