summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-03-02 12:28:45 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-03-02 12:28:45 +0300
commite61ced8450aba037883944a71fd985b71b512847 (patch)
treeb32d28f154dd7d83a1ec70f0d93d6685428cd41a /src
parent51415eee3deaed9e0440855735de6f98a107438c (diff)
downloadtakethis-e61ced8450aba037883944a71fd985b71b512847.tar
takethis-e61ced8450aba037883944a71fd985b71b512847.tar.xz
takethis-e61ced8450aba037883944a71fd985b71b512847.zip
Fix.
Diffstat (limited to 'src')
-rw-r--r--src/game.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.c b/src/game.c
index d8a9c53..5806c57 100644
--- a/src/game.c
+++ b/src/game.c
@@ -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));