diff options
Diffstat (limited to 'apps/plugins/blackjack.c')
-rw-r--r-- | apps/plugins/blackjack.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c index 728924da3e..81ac65d142 100644 --- a/apps/plugins/blackjack.c +++ b/apps/plugins/blackjack.c | |||
@@ -712,7 +712,7 @@ static void blackjack_savegame(struct game_context* bj) { | |||
712 | static void blackjack_callback(void* param) { | 712 | static void blackjack_callback(void* param) { |
713 | struct game_context* bj = (struct game_context*) param; | 713 | struct game_context* bj = (struct game_context*) param; |
714 | if(bj->dirty) { | 714 | if(bj->dirty) { |
715 | rb->splash(HZ, true, "Saving high scores..."); | 715 | rb->splash(HZ, "Saving high scores..."); |
716 | blackjack_savescores(bj); | 716 | blackjack_savescores(bj); |
717 | } | 717 | } |
718 | } | 718 | } |
@@ -1124,9 +1124,9 @@ static unsigned int blackjack_menu(struct game_context* bj) { | |||
1124 | 1124 | ||
1125 | case BJACK_RESUME:/* resume game */ | 1125 | case BJACK_RESUME:/* resume game */ |
1126 | if(!blackjack_loadgame(bj)) { | 1126 | if(!blackjack_loadgame(bj)) { |
1127 | rb->splash(HZ*2, true, "Nothing to resume"); | 1127 | rb->splash(HZ*2, "Nothing to resume"); |
1128 | } else { | 1128 | } else { |
1129 | rb->splash(HZ*2, true, "Loading..."); | 1129 | rb->splash(HZ*2, "Loading..."); |
1130 | breakout = true; | 1130 | breakout = true; |
1131 | } | 1131 | } |
1132 | break; | 1132 | break; |
@@ -1218,7 +1218,7 @@ static int blackjack(struct game_context* bj) { | |||
1218 | !bj->asked_insurance) { | 1218 | !bj->asked_insurance) { |
1219 | temp_var = insurance(bj); | 1219 | temp_var = insurance(bj); |
1220 | if (bj->dealer_total == 21) { | 1220 | if (bj->dealer_total == 21) { |
1221 | rb->splash(HZ, true, "Dealer has blackjack"); | 1221 | rb->splash(HZ, "Dealer has blackjack"); |
1222 | bj->player_money += temp_var; | 1222 | bj->player_money += temp_var; |
1223 | bj->end_hand = true; | 1223 | bj->end_hand = true; |
1224 | breakout = true; | 1224 | breakout = true; |
@@ -1226,7 +1226,7 @@ static int blackjack(struct game_context* bj) { | |||
1226 | finish_game(bj); | 1226 | finish_game(bj); |
1227 | } | 1227 | } |
1228 | else { | 1228 | else { |
1229 | rb->splash(HZ, true, "Dealer does not have blackjack"); | 1229 | rb->splash(HZ, "Dealer does not have blackjack"); |
1230 | bj->player_money -= temp_var; | 1230 | bj->player_money -= temp_var; |
1231 | breakout = true; | 1231 | breakout = true; |
1232 | redraw_board(bj); | 1232 | redraw_board(bj); |
@@ -1285,13 +1285,13 @@ static int blackjack(struct game_context* bj) { | |||
1285 | } | 1285 | } |
1286 | } | 1286 | } |
1287 | else if((signed int)bj->current_bet * 2 > bj->player_money) { | 1287 | else if((signed int)bj->current_bet * 2 > bj->player_money) { |
1288 | rb->splash(HZ, true, "Not enough money to double down."); | 1288 | rb->splash(HZ, "Not enough money to double down."); |
1289 | redraw_board(bj); | 1289 | redraw_board(bj); |
1290 | rb->lcd_update(); | 1290 | rb->lcd_update(); |
1291 | } | 1291 | } |
1292 | break; | 1292 | break; |
1293 | case BJACK_RESUME: /* save and end game */ | 1293 | case BJACK_RESUME: /* save and end game */ |
1294 | rb->splash(HZ, true, "Saving game..."); | 1294 | rb->splash(HZ, "Saving game..."); |
1295 | blackjack_savegame(bj); | 1295 | blackjack_savegame(bj); |
1296 | /* fall through to BJACK_QUIT */ | 1296 | /* fall through to BJACK_QUIT */ |
1297 | 1297 | ||
@@ -1412,14 +1412,14 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { | |||
1412 | while(!exit) { | 1412 | while(!exit) { |
1413 | switch(blackjack(&bj)){ | 1413 | switch(blackjack(&bj)){ |
1414 | case BJ_LOSE: | 1414 | case BJ_LOSE: |
1415 | rb->splash(HZ, true, "Not enough money to continue"); | 1415 | rb->splash(HZ, "Not enough money to continue"); |
1416 | /* fall through to BJ_END */ | 1416 | /* fall through to BJ_END */ |
1417 | 1417 | ||
1418 | case BJ_END: | 1418 | case BJ_END: |
1419 | if(!bj.resume) { | 1419 | if(!bj.resume) { |
1420 | if((position = blackjack_recordscore(&bj))) { | 1420 | if((position = blackjack_recordscore(&bj))) { |
1421 | rb->snprintf(str, 19, "New high score #%d!", position); | 1421 | rb->snprintf(str, 19, "New high score #%d!", position); |
1422 | rb->splash(HZ*2, true, str); | 1422 | rb->splash(HZ*2, str); |
1423 | } | 1423 | } |
1424 | } | 1424 | } |
1425 | break; | 1425 | break; |
@@ -1430,7 +1430,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { | |||
1430 | 1430 | ||
1431 | case BJ_QUIT: | 1431 | case BJ_QUIT: |
1432 | if(bj.dirty) { | 1432 | if(bj.dirty) { |
1433 | rb->splash(HZ, true, "Saving high scores..."); | 1433 | rb->splash(HZ, "Saving high scores..."); |
1434 | blackjack_savescores(&bj); | 1434 | blackjack_savescores(&bj); |
1435 | } | 1435 | } |
1436 | exit = true; | 1436 | exit = true; |