aboutsummaryrefslogtreecommitdiff
path: root/games/gamecatch.c
diff options
context:
space:
mode:
authordavid <[email protected]>2026-05-04 06:25:40 -0300
committerdavid <[email protected]>2026-05-04 06:25:40 -0300
commitf161c1e4a9cb7393b7fd155a6bcab28b2ca94565 (patch)
tree0250ca4178ac9b26ccd279aeae9ebff0241b4277 /games/gamecatch.c
parent112351f9bc0d6a80f9e25b1c69de80b573b3d7c4 (diff)
downloadpetratc-f161c1e4a9cb7393b7fd155a6bcab28b2ca94565.tar.gz
petratc-f161c1e4a9cb7393b7fd155a6bcab28b2ca94565.zip
fixed stupid things happening if you're stupid
Diffstat (limited to 'games/gamecatch.c')
-rw-r--r--games/gamecatch.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/games/gamecatch.c b/games/gamecatch.c
index 69310c8..dadf770 100644
--- a/games/gamecatch.c
+++ b/games/gamecatch.c
@@ -72,11 +72,9 @@ void spawndrops() {
}
void stop() {
- if (!isendwin()) {
- clear();
- refresh();
- endwin();
- }
+ clear();
+ refresh();
+ endwin();
if(won){addstat(&rat.clean);}
won = 0;
running = 0;
@@ -145,7 +143,7 @@ void gamecatch(){
droop[i].posx <= curs.posx + 5) {
droop[i].active = 0;
howmany++;
- if(howmany == 30){won = 1; running = 0;}
+ if(howmany == 30){won = 1; running = 0; stop();}
}
}
}