diff options
| author | david <[email protected]> | 2026-05-04 04:20:31 -0300 |
|---|---|---|
| committer | david <[email protected]> | 2026-05-04 04:20:31 -0300 |
| commit | 112351f9bc0d6a80f9e25b1c69de80b573b3d7c4 (patch) | |
| tree | 3d3980dae6040efa3b3d73aedf6f15d70cf34e7c /games | |
| parent | 6a91e36534e430597ee84a4e0239ee1b9d1fa507 (diff) | |
| download | petratc-112351f9bc0d6a80f9e25b1c69de80b573b3d7c4.tar.gz petratc-112351f9bc0d6a80f9e25b1c69de80b573b3d7c4.zip | |
fixed exiting shower game
Diffstat (limited to 'games')
| -rw-r--r-- | games/gamecatch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/games/gamecatch.c b/games/gamecatch.c index 0b28c6e..69310c8 100644 --- a/games/gamecatch.c +++ b/games/gamecatch.c @@ -105,6 +105,7 @@ void gamecatch(){ running = 1; while (running) { + if(!running){stop();} int ch = getch(); switch (ch) { case 'q': case 'Q': stop(); break; @@ -122,7 +123,7 @@ void gamecatch(){ if (!running) break; - if (rand() % 10 < 2) spawndrops(); + if (rand() % 10 < 3) spawndrops(); clear(); |
