Kaynağa Gözat

Merge slots from https://github.com/Daniel-dev-s/flipperzero-slots

# Conflicts:
#	slots/slotmachine.c
Willy-JL 1 yıl önce
ebeveyn
işleme
21784a0709
1 değiştirilmiş dosya ile 7 ekleme ve 1 silme
  1. 7 1
      slots/slotmachine.c

+ 7 - 1
slots/slotmachine.c

@@ -89,10 +89,16 @@ void game_results(SlotMachineApp* app) {
     }
 
     if(total > 0) {
-        app->money += total;
+        app->money += total; // Add winnings to the player's money
         app->winamount = total;
         app->winview = true;
 
+        // Add the bet amount back to the player's money
+        app->money += app->bet;
+
+        // Reset the bet amount, uncomment me if you want to do this
+        //app->bet = 0;
+
         if(total > highscore.highscore) {
             highscore.highscore = total;
             highscores_save();