summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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));