summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-03-01 13:18:05 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-03-01 13:18:05 +0300
commitbda9513f009aad0c47474942bd875932494da445 (patch)
tree37743dd6fafa6064490a1c510642d6d21b406306 /src/game.c
parentc47781a9d908536ef3283d4a57c91003013f05d3 (diff)
downloadtakethis-bda9513f009aad0c47474942bd875932494da445.tar
takethis-bda9513f009aad0c47474942bd875932494da445.tar.xz
takethis-bda9513f009aad0c47474942bd875932494da445.zip
Stalin shout.
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 599fd50..db9d712 100644
--- a/src/game.c
+++ b/src/game.c
@@ -15,7 +15,12 @@ static void step(int d)
if (xw || yw) {
ttplayer.rem += d;
}
+ static int first_gulag = 1;
if (ttplayer.tobein_gulag && ttplayer.until_gulag > 0) {
+ if (first_gulag) {
+ first_gulag = 0;
+ Mix_PlayMusic(stalin, -1);
+ }
ttplayer.until_gulag -= d;
if (ttplayer.until_gulag <= 0) {
ttplayer.room = ttmap + 'G';