Cvars: To not traumatize Nextra
This commit is contained in:
parent
ac50f3ff34
commit
187b187ef2
|
@ -23,8 +23,8 @@ static cell AMX_NATIVE_CALL create_cvar(AMX *amx, cell *params)
|
||||||
const char* helpText = get_amxstring(amx, params[4], 2, length);
|
const char* helpText = get_amxstring(amx, params[4], 2, length);
|
||||||
|
|
||||||
int flags = params[3];
|
int flags = params[3];
|
||||||
bool hasMin = params[5] > 0 ? true : false;
|
bool hasMin = params[5] != 0;
|
||||||
bool hasMax = params[7] > 0 ? true : false;
|
bool hasMax = params[7] != 0;
|
||||||
float minVal = 0;
|
float minVal = 0;
|
||||||
float maxVal = 0;
|
float maxVal = 0;
|
||||||
|
|
||||||
|
@ -536,7 +536,7 @@ static cell AMX_NATIVE_CALL set_pcvar_bounds(AMX *amx, cell *params)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool set = params[3] > 0 ? true : false;
|
bool set = params[3] != 0;
|
||||||
int pluginId = g_plugins.findPluginFast(amx)->getId();
|
int pluginId = g_plugins.findPluginFast(amx)->getId();
|
||||||
float value = 0;
|
float value = 0;
|
||||||
bool should_update = false;
|
bool should_update = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user