Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6676,6 +6676,11 @@ bool CStaticFunctionDefinitions::GetGarageSize(unsigned char ucGarageID, float&
if (pGarage)
{
pGarage->GetSize(fHeight, fWidth, fDepth);

CVector vecPosition;
pGarage->GetPosition(vecPosition);
fHeight -= vecPosition.fZ;

return true;
}

Expand Down
2 changes: 1 addition & 1 deletion Client/mods/deathmatch/logic/luadefs/CLuaWorldDefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,9 +678,9 @@ int CLuaWorldDefs::GetGarageSize(lua_State* luaVM)

if (CStaticFunctionDefinitions::GetGarageSize(iGarageID, fHeight, fWidth, fDepth))
{
lua_pushnumber(luaVM, fHeight);
lua_pushnumber(luaVM, fWidth);
lua_pushnumber(luaVM, fDepth);
lua_pushnumber(luaVM, fHeight);
return 3;
}
}
Expand Down