diff options
-rw-r--r-- | src/game.c | 4 | ||||
-rw-r--r-- | src/map.c | 2 | ||||
-rw-r--r-- | src/player.c | 6 |
3 files changed, 6 insertions, 6 deletions
@@ -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); @@ -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) { |