[saco] Implement/match RpClumpDestroy(...)

This commit is contained in:
RD42 2024-08-04 22:37:45 +08:00
parent 1f1a6046ab
commit caed517670
2 changed files with 15 additions and 0 deletions

View File

@ -380,6 +380,20 @@ RpClump * RpClumpClone(RpClump *clump)
return pResult;
}
int RpClumpDestroy(RpClump *clump)
{
int bResult = 0;
DWORD dwFunc = (iGtaVersion != GTASA_VERSION_USA10) ? 0x74A360 : 0x74A310;
_asm push clump
_asm mov eax, dwFunc
_asm call eax
_asm mov bResult, eax
_asm pop eax
return bResult;
}
void RwCameraSetProjection(RwCamera *camera, int projection)
{
DWORD dwFunc = (iGtaVersion != GTASA_VERSION_USA10) ? 0x7EE3E0 : 0x7EE3A0;

View File

@ -40,6 +40,7 @@ void RpWorldAddLight(RpLight *light);
void RpWorldRemoveLight(RpLight *light);
void CVisibilityPlugins_SetRenderWareCamera(RwCamera *camera);
RpClump * RpClumpClone(RpClump *clump);
int RpClumpDestroy(RpClump *clump);
void RwCameraSetProjection(RwCamera *camera, int projection);
void RwFrameTranslate(RwFrame *frame, VECTOR *v, int combine);
void RwFrameRotate(RwFrame* frame, int axis, float angle);