summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-03-24 21:02:12 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-03-24 21:02:12 +0300
commit866437c3a642929a5533755bd5d49e5a959fde2a (patch)
treecaaef14a9c96cc133041d6082a97f982e9d3ef1a /src
parent1ece5382ebe3c268c65e8fb5606ae846bc288edc (diff)
downloadtakethis-866437c3a642929a5533755bd5d49e5a959fde2a.tar
takethis-866437c3a642929a5533755bd5d49e5a959fde2a.tar.xz
takethis-866437c3a642929a5533755bd5d49e5a959fde2a.zip
Diffstat (limited to 'src')
-rw-r--r--src/game.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game.c b/src/game.c
index f04d3b0..46f50a2 100644
--- a/src/game.c
+++ b/src/game.c
@@ -527,7 +527,7 @@ static void gotofirstroom()
int newticks = SDL_GetTicks();
SDL_SetRenderDrawBlendMode(ttrdr, SDL_BLENDMODE_BLEND);
while (!q && newticks < ticks + 800) {
- int delta = newticks - ticks;
+ int delta = newticks - ticks + 1;
SDL_Event e;
while (SDL_PollEvent(&e)) {
if (e.type == SDL_QUIT) q = 1;
@@ -603,7 +603,7 @@ static void gotogulag()
int newticks = SDL_GetTicks();
SDL_SetRenderDrawBlendMode(ttrdr, SDL_BLENDMODE_BLEND);
while (!q && newticks < ticks + 5000) {
- int delta = newticks - ticks;
+ int delta = newticks - ticks + 1;
SDL_Event e;
while (SDL_PollEvent(&e)) {
if (e.type == SDL_QUIT) q = 1;
@@ -700,7 +700,7 @@ static void mausoleum()
int newticks = SDL_GetTicks();
SDL_SetRenderDrawBlendMode(ttrdr, SDL_BLENDMODE_BLEND);
while (!q && newticks < ticks + 1000) {
- int delta = newticks - ticks;
+ int delta = newticks - ticks + 1;
SDL_Event e;
while (SDL_PollEvent(&e)) {
if (e.type == SDL_QUIT) q = 1;
@@ -770,7 +770,7 @@ static void mausoleum()
Mix_PlayMusic(lenin, -1);
music_start = SDL_GetTicks();
while (!q && newticks < ticks + 14300) {
- int delta = newticks - ticks;
+ int delta = newticks - ticks + 1;
SDL_Event e;
while (SDL_PollEvent(&e)) {
if (e.type == SDL_QUIT) q = 1;
@@ -831,7 +831,7 @@ void changeroom(int out)
{
int newticks = SDL_GetTicks();
while (!q && newticks < ticks + 500) {
- int delta = newticks - ticks;
+ int delta = newticks - ticks + 1;
SDL_Event e;
while (SDL_PollEvent(&e)) {
if (e.type == SDL_QUIT) q = 1;
@@ -1438,7 +1438,7 @@ void tt_mainloop()
ttplayer.ywalk = (keys | arrd) - (keyw | arru);
ttplayer.xwalk = (keyd | arrr) - (keya | arrl);
int newticks = SDL_GetTicks();
- step(newticks - ticks);
+ step(newticks - ticks + 1);
ticks = newticks;
SDL_RenderClear(ttrdr);
tt_player_draw();