Add back fastforwarding

This commit is contained in:
Elnu 2022-03-06 09:05:42 -08:00
parent b779c37aba
commit 13932a45e8

View file

@ -190,7 +190,7 @@ int main()
} }
} }
bool is_update_frame = update_clock.getElapsedTime().asMilliseconds() > 250; bool is_update_frame = update_clock.getElapsedTime().asMilliseconds() > (sf::Keyboard::isKeyPressed(sf::Keyboard::Down) ? 125 : 250);
if (is_update_frame) { if (is_update_frame) {
update_clock.restart(); update_clock.restart();
} }