We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b3ff9e commit ef5d2eeCopy full SHA for ef5d2ee
src/supertux/player_status.cpp
@@ -428,7 +428,12 @@ PlayerStatus::PocketPowerUp::update(float dt_sec)
428
bool check = m_cooldown_timer.check();
429
if (!m_cooldown_timer.started() && !check && m_col.m_group != COLGROUP_TOUCHABLE)
430
{
431
- m_cooldown_timer.start(1.3f);
+ float sector_gravity = Sector::get().get_gravity();
432
+ if (sector_gravity == 0.0f) {
433
+ // prevent potential division by zero
434
+ sector_gravity = 0.01f;
435
+ }
436
+ m_cooldown_timer.start(1.3f * 10.0f / sector_gravity);
437
m_blink_timer.start(.15f, true);
438
}
439
0 commit comments