summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/game.c b/src/game.c
index 444f9ff..a4b4924 100644
--- a/src/game.c
+++ b/src/game.c
@@ -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);