From e6cec6528c46c67b117ebeea374cf0a92b4e863a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 6 Jul 2008 00:01:40 +0000 Subject: [PATCH] fixed amb1763 - clear function call status on a new call --HG-- branch : sourcemod-1.0.x extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/sourcemod-1.0.x%402360 --- core/smn_functions.cpp | 12 +++--------- plugins/include/functions.inc | 2 +- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/core/smn_functions.cpp b/core/smn_functions.cpp index 24cade1b..6feb6e49 100644 --- a/core/smn_functions.cpp +++ b/core/smn_functions.cpp @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -304,10 +304,7 @@ static cell_t sm_CallStartFunction(IPluginContext *pContext, const cell_t *param HandleError err; IPlugin *pPlugin; - if (s_CallStarted) - { - return pContext->ThrowNativeError("Cannot start a call while one is already in progress"); - } + ResetCall(); hndl = static_cast(params[1]); @@ -343,10 +340,7 @@ static cell_t sm_CallStartForward(IPluginContext *pContext, const cell_t *params HandleError err; IForward *pForward; - if (s_CallStarted) - { - return pContext->ThrowNativeError("Cannot start a call while one is already in progress"); - } + ResetCall(); hndl = static_cast(params[1]); diff --git a/plugins/include/functions.inc b/plugins/include/functions.inc index 1a77f7f1..eba2d9dc 100644 --- a/plugins/include/functions.inc +++ b/plugins/include/functions.inc @@ -1,7 +1,7 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This file is part of the SourceMod/SourcePawn SDK.