diff --git a/saco/game/common.h b/saco/game/common.h index 9cedff0..307938c 100644 --- a/saco/game/common.h +++ b/saco/game/common.h @@ -128,6 +128,13 @@ typedef struct _BUILDING_TYPE //----------------------------------------------------------- +typedef struct _DUMMY_TYPE +{ + char _gap0[56]; +} DUMMY_TYPE; + +//----------------------------------------------------------- + #define TRAIN_PASSENGER_LOCO 537 #define TRAIN_FREIGHT_LOCO 538 #define TRAIN_PASSENGER 569 diff --git a/saco/game/util.cpp b/saco/game/util.cpp index f16584d..b23e73b 100644 --- a/saco/game/util.cpp +++ b/saco/game/util.cpp @@ -1159,6 +1159,22 @@ BUILDING_TYPE * GamePool_GetBuilding() 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. diff --git a/saco/game/util.h b/saco/game/util.h index ce8d62f..e04ce09 100644 --- a/saco/game/util.h +++ b/saco/game/util.h @@ -36,4 +36,5 @@ DWORD unnamed_100B6100(char *szString, int nMaxLen); bool unnamed_100B4B50(VECTOR *vecPos); BUILDING_TYPE * GamePool_GetBuilding(); +DUMMY_TYPE * GamePool_GetDummy();