Skip to content

Commit 5e781d5

Browse files
authored
Clean up game_sa project (Round 9, PR #2804)
1 parent 0e2b203 commit 5e781d5

File tree

141 files changed

+310
-1370
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+310
-1370
lines changed

Client/game_sa/C3DMarkerSA.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,6 @@ void C3DMarkerSA::Disable()
128128
this->GetInterface()->m_nIdentifier = 0;
129129
}
130130

131-
void C3DMarkerSA::DeleteMarkerObject()
132-
{
133-
if (this->GetInterface()->m_pRwObject)
134-
{
135-
DWORD dwFunc = FUNC_DeleteMarkerObject;
136-
DWORD dwThis = (DWORD)this->GetInterface();
137-
_asm
138-
{
139-
mov ecx, dwThis
140-
call dwFunc
141-
}
142-
}
143-
}
144-
145131
void C3DMarkerSA::Reset()
146132
{
147133
this->internalInterface->m_lastPosition = this->internalInterface->m_mat.vPos;

Client/game_sa/C3DMarkerSA.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#include <game/C3DMarker.h>
1515
#include <CMatrix_Pad.h>
1616

17-
#define FUNC_DeleteMarkerObject 0x722390
18-
1917
class C3DMarkerSAInterface
2018
{
2119
public:
@@ -78,7 +76,6 @@ class C3DMarkerSA : public C3DMarker
7876
void SetPulseFraction(float fPulseFraction); // doesn't work propperly (not virtualed)
7977
float GetPulseFraction();
8078
void Disable();
81-
void DeleteMarkerObject();
8279
void Reset();
8380
void SetActive() { this->internalInterface->m_bIsUsed = true; };
8481
RpClump* GetRwObject() { return this->internalInterface->m_pRwObject; }

Client/game_sa/CAnimBlendAssocGroupSA.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
*****************************************************************************/
1111

1212
#include "StdInc.h"
13+
#include <core/CCoreInterface.h>
1314
#include "CAnimBlendAssocGroupSA.h"
1415
#include "CAnimBlockSA.h"
1516

17+
extern CCoreInterface* g_pCore;
18+
1619
CAnimBlendAssocGroupSA::CAnimBlendAssocGroupSA(CAnimBlendAssocGroupSAInterface* pInterface)
1720
{
1821
m_pInterface = pInterface;

Client/game_sa/CAnimBlendAssocGroupSA.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <game/CAnimBlendAssocGroup.h>
1515
#include "CAnimBlendStaticAssociationSA.h"
1616

17+
class CAnimBlendAssociationSAInterface;
1718
class CAnimBlockSA;
1819
class CAnimBlockSAInterface;
1920
class CAnimManagerSA;

Client/game_sa/CAnimBlendAssociationSA.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "CAnimBlendAssociationSA.h"
1414
#include "CAnimBlendHierarchySA.h"
1515
#include "CAnimManagerSA.h"
16+
#include "CGameSA.h"
1617

1718
extern CGameSA* pGame;
1819

Client/game_sa/CAnimBlendAssociationSA.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
#pragma once
1515

16+
#include <CVector.h>
1617
#include <game/RenderWare.h>
1718
#include <game/CAnimBlendAssociation.h>
1819
#include "CAnimBlendNodeSA.h"

Client/game_sa/CAnimBlockSA.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
#include "CAnimBlendHierarchySA.h"
1414
#include "CAnimBlockSA.h"
1515
#include "CAnimManagerSA.h"
16+
#include "CGameSA.h"
17+
18+
extern CGameSA* pGame;
1619

1720
int CAnimBlockSAInterface::GetIndex()
1821
{

Client/game_sa/CAnimManagerSA.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@
1111

1212
#include "StdInc.h"
1313
#include "CAnimBlendAssocGroupSA.h"
14+
#include "CAnimBlendAssociationSA.h"
1415
#include "CAnimBlendHierarchySA.h"
16+
#include "CAnimBlendSequenceSA.h"
1517
#include "CAnimBlockSA.h"
1618
#include "CAnimManagerSA.h"
17-
#include "CAnimBlendSequenceSA.h"
19+
#include "CGameSA.h"
1820
#include "CKeyGenSA.h"
1921

22+
extern CGameSA* pGame;
23+
2024
using std::list;
2125

2226
CAnimManagerSA::CAnimManagerSA()

Client/game_sa/CAudioEngineSA.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
#include "StdInc.h"
1313
#include "CAESoundManagerSA.h"
1414
#include "CAudioEngineSA.h"
15+
#include "CGameSA.h"
1516
#include "CPhysicalSA.h"
1617
#include "CSettingsSA.h"
1718

19+
extern CGameSA* pGame;
20+
1821
#define HOOKPOS_CAEAmbienceTrackManager_CheckForPause 0x4D6E21
1922
DWORD RETURN_CAEAmbienceTrackManager_CheckForPause = 0x4D6E27;
2023
void HOOK_CAEAmbienceTrackManager_CheckForPause();

Client/game_sa/CAutomobileSA.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -87,32 +87,6 @@ bool CAutomobileSA::IsComponentPresent(int iComponentID)
8787
return bReturn;
8888
}
8989

90-
void CAutomobileSA::ResetSuspension()
91-
{
92-
DWORD dwThis = (DWORD)GetInterface();
93-
DWORD dwFunc = FUNC_CAutomobile_ResetSuspension;
94-
95-
_asm
96-
{
97-
mov ecx, dwThis
98-
call dwFunc
99-
}
100-
}
101-
102-
void CAutomobileSA::SetTaxiLight(bool bState)
103-
{
104-
DWORD dwThis = (DWORD)GetInterface();
105-
DWORD dwState = (DWORD)bState;
106-
DWORD dwFunc = FUNC_CAutomobile_SetTaxiLight;
107-
108-
_asm
109-
{
110-
mov ecx, dwThis
111-
push dwState
112-
call dwFunc
113-
}
114-
}
115-
11690
CPhysical* CAutomobileSA::SpawnFlyingComponent(int iCarNodeIndex, int iUnknown)
11791
{
11892
DWORD dwThis = (DWORD)GetInterface();

0 commit comments

Comments
 (0)