busfahrer letzte runde fehler behoben

This commit is contained in:
2026-09-14 22:55:00 +02:00
parent d873e5d099
commit 94453ea9d2
-14
View File
@@ -179,8 +179,6 @@ namespace Casino
MessageBoxButton.OK, MessageBoxButton.OK,
MessageBoxImage.Information); MessageBoxImage.Information);
} }
} }
//Colin Langer //Colin Langer
// lädt und mischt die karten aus der datenbank // lädt und mischt die karten aus der datenbank
@@ -214,7 +212,6 @@ namespace Casino
} }
//Colin Langer //Colin Langer
private void UpdateHandUI() private void UpdateHandUI()
{ {
Bild_1.Source = cardBackImage; Bild_1.Source = cardBackImage;
@@ -315,26 +312,15 @@ namespace Casino
UpdateWinDisplay(); UpdateWinDisplay();
SetPhaseUI(); SetPhaseUI();
// Vierte Frage richtig -> automatisch auszahlen
if (currentPhase == 4) if (currentPhase == 4)
{ {
roundRunning = false; roundRunning = false;
PayoutCurrentProfit(); PayoutCurrentProfit();
await Task.Delay(1000);
// Neue Runde automatisch starten
if (currentBet <= CurrentUser.Geld)
{
StartRound();
}
else
{
ShowWaitingState(); ShowWaitingState();
} }
} }
}
//Colin Langer //Colin Langer
private decimal CalculateCurrentProfit() private decimal CalculateCurrentProfit()
{ {