mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 11:28:26 +00:00
Fixed compilation on SourceMod 1.9
This commit is contained in:
parent
d26ad819a6
commit
5b34eaf3a4
@ -281,7 +281,7 @@ public void OnPluginStart()
|
|||||||
RegConsoleCmd("sm_finishtest", Command_FinishTest);
|
RegConsoleCmd("sm_finishtest", Command_FinishTest);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CreateConVar("shavit_version", SHAVIT_VERSION, "Plugin version.", (FCVAR_NOTIFY|FCVAR_DONTRECORD));
|
CreateConVar("shavit_version", SHAVIT_VERSION, "Plugin version.", (FCVAR_NOTIFY | FCVAR_DONTRECORD));
|
||||||
|
|
||||||
gCV_Autobhop = CreateConVar("shavit_core_autobhop", "1", "Enable autobhop?\nWill be forced to not work if STYLE_AUTOBHOP is not defined for a style!", FCVAR_NOTIFY, true, 0.0, true, 1.0);
|
gCV_Autobhop = CreateConVar("shavit_core_autobhop", "1", "Enable autobhop?\nWill be forced to not work if STYLE_AUTOBHOP is not defined for a style!", FCVAR_NOTIFY, true, 0.0, true, 1.0);
|
||||||
gCV_LeftRight = CreateConVar("shavit_core_blockleftright", "1", "Block +left/right?", 0, true, 0.0, true, 1.0);
|
gCV_LeftRight = CreateConVar("shavit_core_blockleftright", "1", "Block +left/right?", 0, true, 0.0, true, 1.0);
|
||||||
|
|||||||
@ -2342,7 +2342,9 @@ void UpdateFootsteps(int client)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SOURCEMOD_V_MAJOR == 1 && SOURCEMOD_V_MINOR < 9
|
||||||
bool IsNullVector(float vec[3])
|
bool IsNullVector(float vec[3])
|
||||||
{
|
{
|
||||||
return (vec[0] == NULL_VECTOR[0] && vec[1] == NULL_VECTOR[1] && vec[2] == NULL_VECTOR[2]);
|
return (vec[0] == NULL_VECTOR[0] && vec[1] == NULL_VECTOR[1] && vec[2] == NULL_VECTOR[2]);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
Loading…
Reference in New Issue
Block a user