mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 11:06:44 +01:00
fix gameplay speed
This commit is contained in:
parent
c85381644c
commit
8d0df727cb
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ SYMBOL_INTERNAL void libsuperderpy_mainloop(void* g) {
|
||||||
|
|
||||||
double delta = al_get_time() - game->_priv.timestamp;
|
double delta = al_get_time() - game->_priv.timestamp;
|
||||||
game->_priv.timestamp += delta;
|
game->_priv.timestamp += delta;
|
||||||
delta /= ALLEGRO_BPS_TO_SECS(al_get_timer_speed(game->_priv.timer) / (1 / 60.f));
|
delta *= ALLEGRO_BPS_TO_SECS(al_get_timer_speed(game->_priv.timer) / (1 / 60.f));
|
||||||
LogicGamestates(game, delta);
|
LogicGamestates(game, delta);
|
||||||
//redraw = true;
|
//redraw = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue