diff options
| author | miguel <miguel@localhost> | 2017-09-23 12:49:30 +0200 |
|---|---|---|
| committer | miguel <miguel@localhost> | 2017-09-23 12:49:30 +0200 |
| commit | 32c0cacac2f30047908643c9c83e7658233eb104 (patch) | |
| tree | 2220a52281c80c6a24545bac7e1ae094a409cf25 | |
| parent | 552b5d29f032baeeb00aec0b100b1d0df3b4c7ed (diff) | |
minor workarounds to make it a bit more playable..
| -rw-r--r-- | World.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -210,7 +210,9 @@ void World::mouseclick(int x, int y) if(player.dead){next_level();return;} if(player.win){next_level();return;} if(x<0||x>=bricks.size())return; + if(player.speed!=0)return; int idx=0; + for(Brick &brick:bricks[x]) { if(brick.type==0&&brick.altitude>=y) @@ -226,9 +228,9 @@ void World::mouseclick(int x, int y) // brick.type++; // if(brick.type>=5) // { - bricks[x].erase(bricks[x].begin()+idx); + // bricks[x].erase(bricks[x].begin()+idx); // } - // return; + return; } idx++; |
