From 7d3d04b13d380727768ee3dc6098a6b0559222fb Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Sun, 5 Sep 2004 19:53:40 +0000 Subject: [PATCH] Tweaked register_impulse --- dlls/engine/engine.cpp | 2 +- dlls/engine/forwards.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/engine/engine.cpp b/dlls/engine/engine.cpp index bef57149..907c43e9 100755 --- a/dlls/engine/engine.cpp +++ b/dlls/engine/engine.cpp @@ -46,7 +46,7 @@ static cell AMX_NATIVE_CALL register_impulse(AMX *amx, cell *params) Impulse *p = new Impulse; p->Check = params[1]; - p->Forward = MF_RegisterSPForwardByName(amx, MF_GetAmxString(amx, params[2], 0, &len), FP_CELL, FP_DONE); + p->Forward = MF_RegisterSPForwardByName(amx, MF_GetAmxString(amx, params[2], 0, &len), FP_CELL, FP_CELL, FP_DONE); Impulses.push_back(p); diff --git a/dlls/engine/forwards.cpp b/dlls/engine/forwards.cpp index cd7eb318..51acd6d1 100755 --- a/dlls/engine/forwards.cpp +++ b/dlls/engine/forwards.cpp @@ -129,7 +129,7 @@ void CmdStart(const edict_t *player, const struct usercmd_s *_cmd, unsigned int { if (Impulses[i]->Check == g_cmd->impulse) { - retVal = MF_ExecuteForward(Impulses[i]->Forward, ENTINDEX(pEntity)); + retVal = MF_ExecuteForward(Impulses[i]->Forward, ENTINDEX(pEntity),origImpulse); if (retVal & 2 /*PLUGIN_HANDLED_MAIN*/) { g_cmd->impulse=0;