diff options
author | aap <aap@papnet.eu> | 2019-07-08 21:37:47 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-08 21:37:47 +0200 |
commit | 2ae112fdf6b90bb4435dba34bcc2a23604e1e158 (patch) | |
tree | 5137e9ee1d2b01cd1a125409f1cb23a92a142d9f /src/objects | |
parent | edf5ac2626ce17b74037281aa3c9730902b4b1d4 (diff) |
more CAutomobile
Diffstat (limited to 'src/objects')
-rw-r--r-- | src/objects/Object.cpp | 9 | ||||
-rw-r--r-- | src/objects/Object.h | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/objects/Object.cpp b/src/objects/Object.cpp index e13a2ad0..9bfaf681 100644 --- a/src/objects/Object.cpp +++ b/src/objects/Object.cpp @@ -7,6 +7,7 @@ #include "Object.h" WRAPPER void CObject::ObjectDamage(float amount) { EAXJMP(0x4BB240); } +WRAPPER void CObject::DeleteAllTempObjectInArea(CVector, float) { EAXJMP(0x4BBED0); } int16 &CObject::nNoTempObjects = *(int16*)0x95CCA2; @@ -85,7 +86,13 @@ CObject::RemoveLighting(bool reset) WorldReplaceScorchedLightsWithNormal(Scene.world); } -WRAPPER void CObject::DeleteAllTempObjectInArea(CVector, float) { EAXJMP(0x4BBED0); } + +void +CObject::RefModelInfo(int32 modelId) +{ + m_nRefModelIndex = modelId; + CModelInfo::GetModelInfo(modelId)->AddRef(); +} class CObject_ : public CObject { diff --git a/src/objects/Object.h b/src/objects/Object.h index 8afc4d0a..d31a998a 100644 --- a/src/objects/Object.h +++ b/src/objects/Object.h @@ -72,6 +72,7 @@ public: void RemoveLighting(bool reset); void ObjectDamage(float amount); + void RefModelInfo(int32 modelId); static void DeleteAllTempObjectInArea(CVector, float); }; |