From 35e4374e2ee8cbf17a54df088426b041ee40411c Mon Sep 17 00:00:00 2001 From: Ruben Gonzalez Date: Fri, 27 Mar 2015 19:54:42 -0400 Subject: [PATCH] Fix not being able to block CS_OnCSWeaponDrop and clarify include file. --- extensions/cstrike/forwards.cpp | 2 +- plugins/include/cstrike.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/cstrike/forwards.cpp b/extensions/cstrike/forwards.cpp index bfef880f..48213f02 100644 --- a/extensions/cstrike/forwards.cpp +++ b/extensions/cstrike/forwards.cpp @@ -177,7 +177,7 @@ DETOUR_DECL_MEMBER3(DetourCSWeaponDrop, void, CBaseEntity *, weapon, bool, bDrop g_pCSWeaponDropForward->Execute(&result); - if (result >= Pl_Continue) + if (result == Pl_Continue) { #if SOURCE_ENGINE == SE_CSGO DETOUR_MEMBER_CALL(DetourCSWeaponDrop)(weapon, vec, unknown); diff --git a/plugins/include/cstrike.inc b/plugins/include/cstrike.inc index 556f271c..ea497b63 100644 --- a/plugins/include/cstrike.inc +++ b/plugins/include/cstrike.inc @@ -144,7 +144,7 @@ forward Action:CS_OnBuyCommand(client, const String:weapon[]); /** * Called when CSWeaponDrop is called * Return Plugin_Continue to allow the call or return a - * higher action to deny. + * higher action to block. * * @param client Client index * @param weaponIndex Weapon index