diff --git a/dlls/engine/engine.h b/dlls/engine/engine.h index 3d86d5f8..f30bcbe6 100755 --- a/dlls/engine/engine.h +++ b/dlls/engine/engine.h @@ -168,7 +168,6 @@ inline edict_t* INDEXENT2( int iEdictNum ) } int Spawn(edict_t *pEntity); -void ChangeLevel(char* s1, char* s2); void PlaybackEvent(int flags, const edict_t *pInvoker, unsigned short eventindex, float delay, float *origin, float *angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2); void KeyValue(edict_t *pEntity, KeyValueData *pkvd); void StartFrame(); diff --git a/dlls/engine/forwards.cpp b/dlls/engine/forwards.cpp index 21fb523a..4ff4738d 100755 --- a/dlls/engine/forwards.cpp +++ b/dlls/engine/forwards.cpp @@ -3,7 +3,6 @@ bool incmd = false; int DispatchUseForward = 0; int SpawnForward = 0; -int ChangelevelForward = 0; int PlaybackForward = 0; int DispatchKeyForward = 0; int pfnTouchForward = 0; @@ -54,18 +53,6 @@ int Spawn(edict_t *pEntity) RETURN_META_VALUE(MRES_IGNORED, 0); } -void ChangeLevel(char* s1, char* s2) -{ - if (ChangelevelForward != -1) { - int retVal = 0; - char *map = s1; - retVal = MF_ExecuteForward(ChangelevelForward, map); - if (retVal) - RETURN_META(MRES_SUPERCEDE); - } - RETURN_META(MRES_IGNORED); -} - void PlaybackEvent(int flags, const edict_t *pInvoker, unsigned short eventindex, float delay, float *origin, float *angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2) { if (PlaybackForward != -1) {