mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Change duration check to compare against a float instead of an int
This commit is contained in:
parent
e5aafcc53e
commit
47e1dff37c
1 changed files with 1 additions and 1 deletions
|
@ -2693,7 +2693,7 @@ void Game::handleClientEvent_PlayerDamage(ClientEvent *event, CameraOrientation
|
|||
}
|
||||
|
||||
f32 tilt_duration = g_settings->getFloat("damage_tilt_duration");
|
||||
if (tilt_duration > 0 && g_settings->getBool("damage_tilt_enable")) {
|
||||
if (tilt_duration > 0.0f && g_settings->getBool("damage_tilt_enable")) {
|
||||
player->hurt_tilt_timer = 1.5f * tilt_duration;
|
||||
|
||||
f32 tilt_strength = g_settings->getFloat("damage_tilt_strength");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue