Core/Objects: merged some CreateObject2 related commits and ported some transport changes from 335 branch

This commit is contained in:
Ovahlord
2018-07-25 15:58:27 +02:00
parent bf68acea1f
commit 6cea6eee77
5 changed files with 59 additions and 26 deletions

View File

@@ -680,7 +680,9 @@ bool Map::AddToMap(T* obj)
//something, such as vehicle, needs to be update immediately
//also, trigger needs to cast spell, if not update, cannot see visual
obj->SetIsNewObject(true);
obj->UpdateObjectVisibilityOnCreate();
obj->SetIsNewObject(false);
return true;
}