Fix CRenderFxFader save-restore (#350)

This commit is contained in:
Roman Chistokhodov 2023-01-13 13:47:23 +03:00 committed by GitHub
parent 94f3621a3f
commit 92918eace7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1365,6 +1365,7 @@ public:
int m_iszAmtFactor; int m_iszAmtFactor;
}; };
LINK_ENTITY_TO_CLASS( render_fader, CRenderFxFader )
TYPEDESCRIPTION CRenderFxFader::m_SaveData[] = TYPEDESCRIPTION CRenderFxFader::m_SaveData[] =
{ {
@ -1385,6 +1386,7 @@ IMPLEMENT_SAVERESTORE(CRenderFxFader,CBaseEntity);
void CRenderFxFader :: Spawn( void ) void CRenderFxFader :: Spawn( void )
{ {
SetThink(&CRenderFxFader :: FadeThink ); SetThink(&CRenderFxFader :: FadeThink );
pev->classname = MAKE_STRING("render_fader");
} }
void CRenderFxFader :: FadeThink( void ) void CRenderFxFader :: FadeThink( void )