Fixed TF2 OnConditionAdded/Removed forwards to catch all cases (bug 4982, r=fyren).

This commit is contained in:
Nicholas Hastings
2011-07-06 17:37:35 -04:00
parent f32d3849e5
commit f24efc17c1
6 changed files with 108 additions and 137 deletions
+1 -6
View File
@@ -292,20 +292,15 @@ native bool:TF2_IsPlayerInDuel(client);
/**
* Called after a condition is added to a player
*
* @note Actual duration can differ based on various events ingame.
*
* @param client Index of the client to which the conditon is being added.
* @param condition Condition that is being added.
* @param duration Initial duration of the condition or -1 for infinite.
* @noreturn
*/
forward TF2_OnConditionAdded(client, TFCond:condition, Float:duration);
forward TF2_OnConditionAdded(client, TFCond:condition);
/**
* Called after a condition is removed from a player
*
* @note This will never be called for the removal of TFCond_Taunting.
*
* @param client Index of the client to which the condition is being removed.
* @param condition Condition that is being removed.
* @noreturn