fix building with PED_SKIN

This commit is contained in:
aap 2021-01-12 18:55:14 +01:00
parent fe1d82c9c3
commit 48ce6151f9
3 changed files with 4 additions and 1 deletions

View file

@ -139,6 +139,7 @@ CEntity::DetachFromRwObject(void)
m_matrix.Detach();
}
#ifdef PED_SKIN
RpAtomic*
AtomicRemoveAnimFromSkinCB(RpAtomic *atomic, void *data)
{
@ -158,6 +159,7 @@ AtomicRemoveAnimFromSkinCB(RpAtomic *atomic, void *data)
}
return atomic;
}
#endif
void
CEntity::DeleteRwObject(void)

View file

@ -120,7 +120,7 @@ CClumpModelInfo::SetClump(RpClump *clump)
RpClumpForAllAtomics(clump, SetAtomicRendererCB, (void*)CVisibilityPlugins::RenderPlayerCB);
}
#else
if(strcmp(GetModelName(), "playerh") == 0){
if(strcmp(GetModelName(), "playerh") == 0)
RpClumpForAllAtomics(clump, SetAtomicRendererCB, (void*)CVisibilityPlugins::RenderPlayerCB);
#endif
}

View file

@ -2,6 +2,7 @@
#define WITHD3D
#endif
#include "common.h"
#include <rpskin.h>
#include "RwHelper.h"
#include "Timecycle.h"