Skip to content

Commit

Permalink
GameObject: Generic check for ignoring GO los by marking it m2 is inc…
Browse files Browse the repository at this point in the history
…orrect

Tested stratholme back entrance on official and vs ours and it is meant to produce LOS

If some GOs are confirmed to ignore los, need to go the per go route
  • Loading branch information
killerwife committed Sep 22, 2023
1 parent 5a2a4a2 commit 8ff84fe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/game/vmap/GameObjectModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ bool GameObjectModel::initialize(const GameObject* const pGo, const GameObjectDi
if (!iModel)
return false;

if (it->second.name.find(".m2") != std::string::npos)
iModel->setModelFlags(VMAP::MOD_M2);

name = it->second.name;
iPos = Vector3(pGo->GetPositionX(), pGo->GetPositionY(), pGo->GetPositionZ());
collision_enabled = true;
Expand Down

0 comments on commit 8ff84fe

Please sign in to comment.