Some changes to fix various issues

This commit is contained in:
KimLS
2018-11-24 15:46:50 -08:00
parent cfba613efd
commit a26cf5f1de
2 changed files with 20 additions and 36 deletions
+3 -3
View File
@@ -44,7 +44,7 @@ public:
return true;
}
auto rotate_to_speed = m_rotate_to_mode == MovementRunning ? 50.0 : 16.0; //todo: get this from mob
auto rotate_to_speed = m_rotate_to_mode == MovementRunning ? 200.0 : 16.0; //todo: get this from mob
auto from = FixHeading(m->GetHeading());
auto to = FixHeading(m_rotate_to);
@@ -382,6 +382,7 @@ public:
if (m->IsMoving()) {
m->SetMoving(false);
m->TryFixZ();
mgr->SendCommandToClients(m, 0.0, 0.0, 0.0, 0.0, 0, ClientRangeCloseMedium);
}
return true;
@@ -606,8 +607,7 @@ void MobMovementManager::StopNavigation(Mob *who) {
return;
}
auto &running_cmd = ent.second.Commands.front();
if (false == running_cmd->Started()) {
if (!who->IsMoving()) {
ent.second.Commands.clear();
return;
}