Browse Source

Fix CRenderFxFader save-restore (#350)

sohl1.2
Roman Chistokhodov 2 years ago committed by GitHub
parent
commit
92918eace7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dlls/triggers.cpp

2
dlls/triggers.cpp

@ -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 )

Loading…
Cancel
Save