1
This commit is contained in:
parent
9b3f76f53b
commit
ee4446d406
@ -416,8 +416,12 @@ float Human::GetSpeed()
|
||||
speed = meta->i->move_speed();
|
||||
}
|
||||
float old_speed = speed;
|
||||
#if 1
|
||||
speed = (speed * SERVER_FRAME_RATE * (1 + GetAbility()->GetSpeedAddition())) / SERVER_FRAME_RATE;
|
||||
#else
|
||||
speed = (speed + GetAbility()->GetAttrAbs(kHAT_Speed)) *
|
||||
(1 + GetAbility()->GetAttrRate(kHAT_Speed));
|
||||
#endif
|
||||
if (a8::HasBitFlag(cell_flags_, kColliderTag_Water)) {
|
||||
speed *= MetaMgr::Instance()->water_move_coefficient;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user