chore (core): Clean up (#15977)

* chore (core): Clean up

* Update SmartScript.cpp

* more clean up

* Update boss_xt002.cpp
This commit is contained in:
M'Dic
2023-04-16 21:04:56 -04:00
committed by GitHub
parent f3c63f9662
commit 8aa2a2ac0f
9 changed files with 9 additions and 10 deletions

View File

@@ -288,7 +288,6 @@ void SmartAIMgr::LoadSmartAIFromDB()
break;
}
// xinef: rozpierdol tc, niedojeby ze szok
if (temp.action.type == SMART_ACTION_MOVE_TO_POS)
if (temp.target.type == SMART_TARGET_SELF && (std::fabs(temp.target.x) > 200.0f || std::fabs(temp.target.y) > 200.0f || std::fabs(temp.target.z) > 200.0f))
temp.target.type = SMART_TARGET_POSITION;