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.