edited to add nofall
This commit is contained in:
parent
fcdf71d65d
commit
00c1598232
|
@ -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));
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue