edited to add nofall

This commit is contained in:
sumoomus 2020-06-22 15:12:41 -04:00 committed by GitHub
parent fcdf71d65d
commit 00c1598232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -229,11 +229,11 @@ void ClientEnvironment::step(float dtime)
if (speed > tolerance && !player_immortal) {
f32 damage_f = (speed - tolerance) / BS * post_factor;
u16 damage = (u16)MYMIN(damage_f + 0.5, U16_MAX);
if (damage != 0) {
damageLocalPlayer(damage, true);
m_client->getEventManager()->put(
new SimpleTriggerEvent(MtEvent::PLAYER_FALLING_DAMAGE));
}
//if (damage != 0) {
// damageLocalPlayer(damage, true);
// m_client->getEventManager()->put(
// new SimpleTriggerEvent(MtEvent::PLAYER_FALLING_DAMAGE));
//}
}
}