Make the game engine use a start/end round and do healing if you don't make any mistakes.
This commit is contained in:
parent
e35536c7e3
commit
c52bc8fafd
4 changed files with 25 additions and 8 deletions
3
gui.cpp
3
gui.cpp
|
@ -76,6 +76,9 @@ int GUI::main_loop(GameEngine &game, std::function<bool()> runner) {
|
|||
|
||||
while (!loop.HasQuitted()) {
|
||||
int run_error = runner();
|
||||
|
||||
if(run_error != 0) output("RUNNER ERROR!!!! CATASTROPHIC!!!");
|
||||
|
||||
loop.RunOnce();
|
||||
screen.Post(Event::Custom);
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue