Implement ProcessGarages + small cleanup

This commit is contained in:
Filip Gawin
2020-02-25 18:24:45 +01:00
parent 3b8a177470
commit 7c425ac4ac
7 changed files with 3394 additions and 3091 deletions

View File

@ -2,7 +2,7 @@
#include "patcher.h"
#include "WaterCannon.h"
CWaterCannon* aCannons = (CWaterCannon*)0x8F2CA8;
CWaterCannon (&aCannons)[NUM_WATERCANNONS] = *(CWaterCannon(*)[NUM_WATERCANNONS])*(uintptr*)0x8F2CA8;
WRAPPER void CWaterCannons::Update(void) { EAXJMP(0x522510); }
WRAPPER void CWaterCannons::UpdateOne(uint32 id, CVector *pos, CVector *dir) { EAXJMP(0x522470); }

View File

@ -22,4 +22,5 @@ public:
static void Render(void);
};
extern CWaterCannon *aCannons;
extern CWaterCannon (&aCannons)[NUM_WATERCANNONS];