From de668db30704905fd420a6689dba50847679971f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 29 Jun 2004 03:16:45 +0000 Subject: [PATCH] Fixed server_frame forward. Fixed server_changelevel forward. --- dlls/engine/amxxapi.cpp | 4 ++-- dlls/engine/forwards.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dlls/engine/amxxapi.cpp b/dlls/engine/amxxapi.cpp index d5de1334..8d9651ab 100755 --- a/dlls/engine/amxxapi.cpp +++ b/dlls/engine/amxxapi.cpp @@ -38,8 +38,8 @@ void OnPluginsLoaded() PlayerPostThinkForward = MF_RegisterForward("client_PostThink", ET_STOP, FP_CELL, FP_DONE); ClientKillForward = MF_RegisterForward("client_kill", ET_STOP, FP_CELL, FP_DONE); CmdStartForward = MF_RegisterForward("client_impulse", ET_STOP, FP_CELL, FP_CELL, FP_DONE); - StartFrameForward = MF_RegisterForward("ServerFrame", ET_IGNORE, FP_DONE); -// DispatchKeyForward = MF_RegisterForward("Dispatch_KeyVal", ET_STOP, FP_CELL, FP_DONE); + StartFrameForward = MF_RegisterForward("server_frame", ET_IGNORE, FP_DONE); + DispatchKeyForward = MF_RegisterForward("Dispatch_KeyVal", ET_STOP, FP_CELL, FP_DONE); PlaybackForward = MF_RegisterForward("PlaybackEvent", ET_STOP, FP_CELL, FP_CELL, FP_CELL, FP_FLOAT, FP_ARRAY, FP_ARRAY, FP_FLOAT, FP_FLOAT, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_DONE); ChangelevelForward = MF_RegisterForward("server_changelevel", ET_STOP, FP_STRING, FP_DONE); SpawnForward = MF_RegisterForward("pfn_spawn", ET_IGNORE, FP_CELL, FP_DONE); diff --git a/dlls/engine/forwards.cpp b/dlls/engine/forwards.cpp index c07eb9ea..39b7fcf1 100755 --- a/dlls/engine/forwards.cpp +++ b/dlls/engine/forwards.cpp @@ -64,8 +64,7 @@ void ChangeLevel(char* s1, char* s2) if (ChangelevelForward) { int retVal = 0; char *map = s1; - cell amxMap = MF_PrepareCharArray(map, strlen(map)); - retVal = MF_ExecuteForward(ChangelevelForward, amxMap); + retVal = MF_ExecuteForward(ChangelevelForward, map); if (retVal) RETURN_META(MRES_SUPERCEDE); }