Changed ConVarChanged to take a ConVar variable. Backwards compatible with Handle variables (I tested this to make sure).

This commit is contained in:
Ross Bemrose 2014-11-05 15:50:03 -05:00
parent 87a21c7ff8
commit 3fff07b33d

View File

@ -456,7 +456,7 @@ native ConVar:FindConVar(const String:name[]);
* @param newValue String containing the new value of the convar. * @param newValue String containing the new value of the convar.
* @noreturn * @noreturn
*/ */
typedef ConVarChanged = function void (Handle convar, const char[] oldValue, const char[] newValue); typedef ConVarChanged = function void (ConVar convar, const char[] oldValue, const char[] newValue);
/** /**
* Creates a hook for when a console variable's value is changed. * Creates a hook for when a console variable's value is changed.