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
This commit is contained in:
parent
1c08ddc939
commit
e6cec6528c
@ -2,7 +2,7 @@
|
|||||||
* vim: set ts=4 :
|
* vim: set ts=4 :
|
||||||
* =============================================================================
|
* =============================================================================
|
||||||
* SourceMod
|
* 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
|
* 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;
|
HandleError err;
|
||||||
IPlugin *pPlugin;
|
IPlugin *pPlugin;
|
||||||
|
|
||||||
if (s_CallStarted)
|
ResetCall();
|
||||||
{
|
|
||||||
return pContext->ThrowNativeError("Cannot start a call while one is already in progress");
|
|
||||||
}
|
|
||||||
|
|
||||||
hndl = static_cast<Handle_t>(params[1]);
|
hndl = static_cast<Handle_t>(params[1]);
|
||||||
|
|
||||||
@ -343,10 +340,7 @@ static cell_t sm_CallStartForward(IPluginContext *pContext, const cell_t *params
|
|||||||
HandleError err;
|
HandleError err;
|
||||||
IForward *pForward;
|
IForward *pForward;
|
||||||
|
|
||||||
if (s_CallStarted)
|
ResetCall();
|
||||||
{
|
|
||||||
return pContext->ThrowNativeError("Cannot start a call while one is already in progress");
|
|
||||||
}
|
|
||||||
|
|
||||||
hndl = static_cast<Handle_t>(params[1]);
|
hndl = static_cast<Handle_t>(params[1]);
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* vim: set ts=4 :
|
* 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.
|
* This file is part of the SourceMod/SourcePawn SDK.
|
||||||
|
Loading…
Reference in New Issue
Block a user