summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-03-03 15:52:45 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-03-03 15:52:45 +0300
commit92f560abade4b180809bf153cc2270949d77d32a (patch)
tree335b0ec0a4ce22597332c0838cf159470b640cf0 /src/game.c
parentdbac9d0da4587ffe7a4de397a61d6d9af0ad7226 (diff)
downloadtakethis-92f560abade4b180809bf153cc2270949d77d32a.tar
takethis-92f560abade4b180809bf153cc2270949d77d32a.tar.xz
takethis-92f560abade4b180809bf153cc2270949d77d32a.zip
o_O
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index 664fa0b..1d5e2d6 100644
--- a/src/game.c
+++ b/src/game.c
@@ -4,6 +4,7 @@
#include "map.h"
#include <SDL2/SDL.h>
#include <stdio.h>
+#include <math.h>
int magic = 0;
int lenin_size = 0;
@@ -986,7 +987,7 @@ void changeroom(int out)
for (i = 0; i != r->bodies_count; ++i) {
tt_body *b = r->bodies + i;
if ((6 == b->txrrow && b->txrcol <= 1) ||
- b->txrrow == 11) {
+ b->txrrow == 10) {
SDL_Rect src = { 16 * 14, 16 * 11, 32, 32 };
SDL_Rect d = { b->x + fullx + transx - 32,
b->y + fully + transy - 32, 128, 128 };