Just deleted about 400 bot accounts and a bunch of spam. To mitigate this in the future, we've enabled reCaptcha on signup. Let me know if someone got caught in the crossfire.

Commit 33b0bcd6 authored by Asher Baker's avatar Asher Baker
Browse files

Removed upper bound on TF2Items_SetQuality.

parent ac962cfe
...@@ -702,7 +702,7 @@ static cell_t TF2Items_SetQuality(IPluginContext *pContext, const cell_t *params ...@@ -702,7 +702,7 @@ static cell_t TF2Items_SetQuality(IPluginContext *pContext, const cell_t *params
TScriptedItemOverride * pScriptedItemOverride = GetScriptedItemOverrideFromHandle(params[1], pContext); TScriptedItemOverride * pScriptedItemOverride = GetScriptedItemOverrideFromHandle(params[1], pContext);
if (pScriptedItemOverride != NULL) if (pScriptedItemOverride != NULL)
{ {
if (params[2] < -1 || params[2] > 14) return pContext->ThrowNativeError("Quality out of bounds: %i [-1 ... 14]", params[2]); if (params[2] < -1) return pContext->ThrowNativeError("Quality out of bounds: %i [-1 ...]", params[2]);
pScriptedItemOverride->m_iEntityQuality = params[2]; pScriptedItemOverride->m_iEntityQuality = params[2];
} }
return 0; return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment