Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij committed Dec 18, 2023
1 parent 96bfdb8 commit 2d0a51f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Client/mods/deathmatch/logic/CClientBuilding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "StdInc.h"

CClientBuilding::CClientBuilding(class CClientManager* pManager, ElementID ID, uint16_t usModelId, CVector pos, CVector rot, uint8_t interior)
CClientBuilding::CClientBuilding(class CClientManager* pManager, ElementID ID, uint16_t usModelId, CVector &pos, CVector &rot, uint8_t interior)
: ClassInit(this),
CClientEntity(ID),
m_pBuildingManager(pManager->GetBuildingManager()),
Expand Down
6 changes: 3 additions & 3 deletions Client/mods/deathmatch/logic/CClientBuilding.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class CClientBuilding : public CClientEntity
friend class CClientBuildingManager;

public:
CClientBuilding(class CClientManager* pManager, ElementID ID, uint16_t usModelId, CVector pos, CVector rot, uint8_t interior);
CClientBuilding(class CClientManager* pManager, ElementID ID, uint16_t usModelId, CVector &pos, CVector &rot, uint8_t interior);
~CClientBuilding();

void Unlink(){};
Expand All @@ -32,10 +32,10 @@ class CClientBuilding : public CClientEntity

void SetInterior(uint8_t ucInterior) override;

uint16_t GetModel() { return m_usModelId; };
uint16_t GetModel() const noexcept { return m_usModelId; };
void SetModel(uint16_t ulModel);

eClientEntityType GetType() const { return CCLIENTBUILDING; }
eClientEntityType GetType() const noexcept { return CCLIENTBUILDING; }

private:
void Create();
Expand Down
2 changes: 1 addition & 1 deletion Client/mods/deathmatch/logic/luadefs/CLuaBuildingDefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void CLuaBuildingDefs::AddClass(lua_State* luaVM)
lua_registerclass(luaVM, "Building");
}

CClientBuilding* CLuaBuildingDefs::CreateBuilding(lua_State* const luaVM, uint16_t modelId, CVector pos, CVector4D rot, uint8_t interior)
CClientBuilding* CLuaBuildingDefs::CreateBuilding(lua_State* const luaVM, uint16_t modelId, CVector pos, CVector rot, uint8_t interior)
{
CLuaMain* pLuaMain = m_pLuaManager->GetVirtualMachine(luaVM);

Expand Down
2 changes: 1 addition & 1 deletion Client/mods/deathmatch/logic/luadefs/CLuaBuildingDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ class CLuaBuildingDefs : public CLuaDefs
static void AddClass(lua_State* luaVM);

// Buiding create funcs
static CClientBuilding* CreateBuilding(lua_State* const luaVM, uint16_t modelId, CVector pos, CVector4D rot, uint8_t interior = 0);
static CClientBuilding* CreateBuilding(lua_State* const luaVM, uint16_t modelId, CVector pos, CVector rot, uint8_t interior = 0);
};

0 comments on commit 2d0a51f

Please sign in to comment.