Add overload to updateNPCPosition with rotation arg

This commit is contained in:
Gent
2020-10-06 17:57:46 -04:00
parent d4d0f388c4
commit 4873eba160
2 changed files with 6 additions and 0 deletions

View File

@@ -134,6 +134,11 @@ void NPCManager::destroyNPC(int32_t id) {
std::cout << "npc removed!" << std::endl;
}
void NPCManager::updateNPCPosition(int32_t id, int X, int Y, int Z, int angle) {
NPCs[id]->appearanceData.iAngle = angle;
updateNPCPosition(id, X, Y, Z);
}
void NPCManager::updateNPCPosition(int32_t id, int X, int Y, int Z) {
BaseNPC* npc = NPCs[id];