From fb0929fce3d3fbd610c3fed4895c695edeec9c87 Mon Sep 17 00:00:00 2001 From: LUCA WOLFART <wolfartl@student.ethz.ch> Date: Mon, 23 May 2022 18:09:33 +0200 Subject: [PATCH] now recovery actually works --- source/client/GameController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/client/GameController.cpp b/source/client/GameController.cpp index e3aa5e1..6cedcf9 100644 --- a/source/client/GameController.cpp +++ b/source/client/GameController.cpp @@ -110,9 +110,9 @@ void GameController::makeBet() { return; } - if(_is_number(inputPlayerBet) && !inputPlayerBet.IsEmpty()){ + if(bet_int != 0){ std::string bet_string = inputPlayerBet.ToStdString(); - int bet_int = std::stoi(bet_string); + bet_int = std::stoi(bet_string); } // check to make sure this in a logical integer + ADD RECOVERY (SHOW BET PANEL AGAIN) -- GitLab