summaryrefslogtreecommitdiff
path: root/World.cpp
diff options
context:
space:
mode:
authormiguel <miguel@localhost>2017-09-23 12:31:50 +0200
committermiguel <miguel@localhost>2017-09-23 12:31:50 +0200
commitd3e17d83d06fb92f7e1cd67b5438c1e125030fa6 (patch)
treea13d5a64c239232633b79f6157efcaa0811513a7 /World.cpp
parent871f17ae1096899ffb902f1dd99c0c8d14d1c665 (diff)
clear all when dead
Diffstat (limited to 'World.cpp')
-rw-r--r--World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/World.cpp b/World.cpp
index 10eb126..2290b36 100644
--- a/World.cpp
+++ b/World.cpp
@@ -207,7 +207,7 @@ void World::mouseclick(int x, int y)
std::mt19937 gen(rd()); //Standard mersenne_twister_engine seeded with rd()
std::uniform_int_distribution<> dis(2, 4);
- if(player.dead){reset();return;}
+ if(player.dead){next_level();return;}
if(player.win){next_level();return;}
if(x<0||x>=bricks.size())return;
int idx=0;