This commit is contained in:
aozhiwei 2023-03-27 16:52:40 +08:00
parent cbc551ef39
commit 9b3fd2f6c3

View File

@ -3059,5 +3059,8 @@ bool Creature::IsNearGas()
float Creature::GetSpeed()
{
const float min_speed = 30.0f;
const float base_speed = GetHeroMeta()->move_speed();
float finaly_speed = base_speed;
return std::max(min_speed, finaly_speed) / SERVER_FRAME_RATE;
}