Skip to content

Commit

Permalink
Implement GetElementBoundingBox for buildings
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij committed Jun 22, 2024
1 parent d20582d commit 4fc1d2f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,12 @@ bool CStaticFunctionDefinitions::GetElementBoundingBox(CClientEntity& Entity, CV
pModelInfo = g_pGame->GetModelInfo(Object.GetModel());
break;
}
case CCLIENTBUILDING:
{
CClientBuilding& building = static_cast<CClientBuilding&>(Entity);
pModelInfo = g_pGame->GetModelInfo(building.GetModel());
}

}

if (pModelInfo)
Expand Down

0 comments on commit 4fc1d2f

Please sign in to comment.