Skip to content

Commit 03c6f61

Browse files
authored
Merge branch 'multitheftauto:master' into fix/client-side-entity
2 parents 96d6533 + 7b23654 commit 03c6f61

File tree

7 files changed

+4684
-4678
lines changed

7 files changed

+4684
-4678
lines changed

Client/core/Graphics/CRenderItemManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ CVectorGraphicItem* CRenderItemManager::CreateVectorGraphic(uint width, uint hei
167167
}
168168

169169
UpdateMemoryUsage();
170-
170+
171171
return pVectorItem;
172172
}
173173

@@ -723,7 +723,7 @@ void CRenderItemManager::UpdateMemoryUsage()
723723
continue;
724724
int iMemoryKBUsed = pRenderItem->GetVideoMemoryKBUsed();
725725

726-
if (pRenderItem->IsA(CFileTextureItem::GetClassId()))
726+
if (pRenderItem->IsA(CFileTextureItem::GetClassId()) || pRenderItem->IsA(CVectorGraphicItem::GetClassId()))
727727
m_iTextureMemoryKBUsed += iMemoryKBUsed;
728728
else if (pRenderItem->IsA(CRenderTargetItem::GetClassId()) || pRenderItem->IsA(CScreenSourceItem::GetClassId()))
729729
m_iRenderTargetMemoryKBUsed += iMemoryKBUsed;

Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6676,6 +6676,11 @@ bool CStaticFunctionDefinitions::GetGarageSize(unsigned char ucGarageID, float&
66766676
if (pGarage)
66776677
{
66786678
pGarage->GetSize(fHeight, fWidth, fDepth);
6679+
6680+
CVector vecPosition;
6681+
pGarage->GetPosition(vecPosition);
6682+
fHeight -= vecPosition.fZ;
6683+
66796684
return true;
66806685
}
66816686

Client/mods/deathmatch/logic/luadefs/CLuaWorldDefs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,9 @@ int CLuaWorldDefs::GetGarageSize(lua_State* luaVM)
678678

679679
if (CStaticFunctionDefinitions::GetGarageSize(iGarageID, fHeight, fWidth, fDepth))
680680
{
681-
lua_pushnumber(luaVM, fHeight);
682681
lua_pushnumber(luaVM, fWidth);
683682
lua_pushnumber(luaVM, fDepth);
683+
lua_pushnumber(luaVM, fHeight);
684684
return 3;
685685
}
686686
}

0 commit comments

Comments
 (0)