diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-01 12:47:01 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-01 12:47:01 +0300 |
commit | 7fbb9c444057fe3f30da0bac4d52fd8c6e8ba59b (patch) | |
tree | fc407dc77b1464300e400135df97855123ed9535 /src/game.c | |
parent | a365de1b0ab91f9c057196a601d96d2aed6e48fb (diff) | |
download | takethis-7fbb9c444057fe3f30da0bac4d52fd8c6e8ba59b.tar takethis-7fbb9c444057fe3f30da0bac4d52fd8c6e8ba59b.tar.xz takethis-7fbb9c444057fe3f30da0bac4d52fd8c6e8ba59b.zip |
O_o
Diffstat (limited to 'src/game.c')
-rw-r--r-- | src/game.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -10,11 +10,17 @@ static int ticks; static void step(int d) { - int xw = ttplayer.xwalk * 137; - int yw = ttplayer.ywalk * 137; + int xw = ttplayer.xwalk * 200; + int yw = ttplayer.ywalk * 200; if (xw || yw) { ttplayer.rem += d; } + if (ttplayer.tobein_gulag && ttplayer.until_gulag > 0) { + ttplayer.until_gulag -= d; + if (ttplayer.until_gulag <= 0) { + ttplayer.room = ttmap + 'G'; + } + } if (xw && yw) { ttplayer.xrem += (double)(xw * d) / sqrt(2); ttplayer.yrem += (double)(yw * d) / sqrt(2); |