From 1003fe3579e49b5b4e9f5f849f9967c005db3df8 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Wed, 3 Mar 2021 12:05:52 +0300 Subject: God Mode for easy level design. --- src/game.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game.c') 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); -- cgit v1.2.3