diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-02 12:28:45 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-02 12:28:45 +0300 |
commit | e61ced8450aba037883944a71fd985b71b512847 (patch) | |
tree | b32d28f154dd7d83a1ec70f0d93d6685428cd41a /src | |
parent | 51415eee3deaed9e0440855735de6f98a107438c (diff) | |
download | takethis-e61ced8450aba037883944a71fd985b71b512847.tar takethis-e61ced8450aba037883944a71fd985b71b512847.tar.xz takethis-e61ced8450aba037883944a71fd985b71b512847.zip |
Fix.
Diffstat (limited to 'src')
-rw-r--r-- | src/game.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -475,6 +475,7 @@ static void gotofirstroom() static void gotogulag() { + int roomchanged = 0; SDL_BlendMode mode; SDL_GetRenderDrawBlendMode(ttrdr, &mode); int newticks = SDL_GetTicks(); @@ -506,7 +507,6 @@ static void gotogulag() else if (code == SDL_SCANCODE_LEFT) arrl = 0; } } - static int roomchanged = 0; SDL_RenderClear(ttrdr); if (delta < 4200) SDL_SetRenderDrawColor(ttrdr, 0, 0, 0, min(255, delta * 256 / 800)); @@ -556,6 +556,7 @@ static void gotogulag() static void mausoleum() { + int roomchanged = 0; SDL_BlendMode mode; SDL_GetRenderDrawBlendMode(ttrdr, &mode); int newticks = SDL_GetTicks(); @@ -587,7 +588,6 @@ static void mausoleum() else if (code == SDL_SCANCODE_LEFT) arrl = 0; } } - static int roomchanged = 0; SDL_RenderClear(ttrdr); if (delta < 500) SDL_SetRenderDrawColor(ttrdr, 0, 0, 0, min(255, delta * 256 / 500)); |