diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-24 21:02:12 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-24 21:02:12 +0300 |
commit | 866437c3a642929a5533755bd5d49e5a959fde2a (patch) | |
tree | caaef14a9c96cc133041d6082a97f982e9d3ef1a /src | |
parent | 1ece5382ebe3c268c65e8fb5606ae846bc288edc (diff) | |
download | takethis-master.tar takethis-master.tar.xz takethis-master.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/game.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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(); |