Add back fastforwarding

cpp
Elnu 3 years ago
parent b779c37aba
commit 13932a45e8

@ -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();
} }

Loading…
Cancel
Save