summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-03-03 12:05:52 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-03-03 12:05:52 +0300
commit1003fe3579e49b5b4e9f5f849f9967c005db3df8 (patch)
treebedb75e9068d2f794d99f76363da5ae01a8beffd /src
parentd907f8c991221315b6ce615454bff895281870b6 (diff)
downloadtakethis-1003fe3579e49b5b4e9f5f849f9967c005db3df8.tar
takethis-1003fe3579e49b5b4e9f5f849f9967c005db3df8.tar.xz
takethis-1003fe3579e49b5b4e9f5f849f9967c005db3df8.zip
God Mode for easy level design.
Diffstat (limited to 'src')
-rw-r--r--src/game.c4
-rw-r--r--src/map.c2
-rw-r--r--src/player.c6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/game.c b/src/game.c
index ffde400..664fa0b 100644
--- a/src/game.c
+++ b/src/game.c
@@ -1196,11 +1196,11 @@ void changeroom(int out)
SDL_SetTextureColorMod(tttxr, 255, 0, 0);
SDL_RenderCopy(ttrdr, tttxr, &src, &d);
}
- if (ttplayer.room == ttmap + 'G') {
+ if (ttplayer.variant) {
SDL_Rect src = { 16 * 14, 16 * 11, 32, 32 };
SDL_Rect d = { ttplayer.x - 32, ttplayer.y - 21, 128,
128 };
- SDL_SetTextureColorMod(tttxr, 255, 255, 255);
+ SDL_SetTextureColorMod(tttxr, 255, 0, 0);
SDL_RenderCopy(ttrdr, tttxr, &src, &d);
}
SDL_SetTextureColorMod(tttxr, 255, 255, 255);
diff --git a/src/map.c b/src/map.c
index 2b35c51..a08749a 100644
--- a/src/map.c
+++ b/src/map.c
@@ -284,7 +284,7 @@ static void loadroom(tt_room *r, FILE *f)
b->txrcol = id;
b->anim = 4;
b->rate = 100 + (rand() % 50 - 25);
- b->collision_act = colact_gulag;
+ b->collision_act = /*colact_gulag*/ 0;
b->isdoor = 0;
}
}
diff --git a/src/player.c b/src/player.c
index 02703ec..abfff35 100644
--- a/src/player.c
+++ b/src/player.c
@@ -161,13 +161,13 @@ void tt_player_draw()
SDL_SetTextureColorMod(tttxr, 255, 0, 0);
SDL_RenderCopy(ttrdr, tttxr, &src, &d);
}
- if (curmus == lenin || ttplayer.room == ttmap + 'G') {
+ if (ttplayer.variant) {
SDL_Rect src = { 16 * 14, 16 * 11, 32, 32 };
SDL_Rect d = { ttplayer.x - 32, ttplayer.y - 32, 128, 128 };
- SDL_SetTextureColorMod(tttxr, 255, 255, 255);
+ SDL_SetTextureColorMod(tttxr, 255, 0, 0);
SDL_RenderCopy(ttrdr, tttxr, &src, &d);
- if (curmus == lenin) SDL_SetTextureAlphaMod(tttxr, 16);
}
+ if (curmus == lenin) SDL_SetTextureAlphaMod(tttxr, 16);
int j;
for (i = 0; i != TT_ROOM_H; ++i) {
for (j = 0; j != TT_ROOM_W; ++j) {