[saco] Implement and match GamePool_GetDummy()

This commit is contained in:
RD42 2024-05-05 16:40:42 +08:00
parent 2eaeae5b56
commit 261cd01e1d
3 changed files with 24 additions and 0 deletions

View File

@ -128,6 +128,13 @@ typedef struct _BUILDING_TYPE
//----------------------------------------------------------- //-----------------------------------------------------------
typedef struct _DUMMY_TYPE
{
char _gap0[56];
} DUMMY_TYPE;
//-----------------------------------------------------------
#define TRAIN_PASSENGER_LOCO 537 #define TRAIN_PASSENGER_LOCO 537
#define TRAIN_FREIGHT_LOCO 538 #define TRAIN_FREIGHT_LOCO 538
#define TRAIN_PASSENGER 569 #define TRAIN_PASSENGER 569

View File

@ -1159,6 +1159,22 @@ BUILDING_TYPE * GamePool_GetBuilding()
return pBuildingRet; return pBuildingRet;
} }
//-----------------------------------------------------------
DUMMY_TYPE * GamePool_GetDummy()
{
DUMMY_TYPE *pDummyRet;
_asm mov eax, 0xB744A0
_asm mov edx, [eax]
_asm mov eax, [edx]
_asm mov pDummyRet, eax
return pDummyRet;
}
//-----------------------------------------------------------
//----------------------------------------------------------- //-----------------------------------------------------------
// Translate Weapon model ID into actual weapon ID. // Translate Weapon model ID into actual weapon ID.

View File

@ -36,4 +36,5 @@ DWORD unnamed_100B6100(char *szString, int nMaxLen);
bool unnamed_100B4B50(VECTOR *vecPos); bool unnamed_100B4B50(VECTOR *vecPos);
BUILDING_TYPE * GamePool_GetBuilding(); BUILDING_TYPE * GamePool_GetBuilding();
DUMMY_TYPE * GamePool_GetDummy();