From 187b187ef284b3f404850b1e800c02377f81193e Mon Sep 17 00:00:00 2001 From: Arkshine Date: Wed, 28 Jan 2015 00:58:07 +0100 Subject: [PATCH] Cvars: To not traumatize Nextra --- amxmodx/cvars.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amxmodx/cvars.cpp b/amxmodx/cvars.cpp index 10486ed4..84e37482 100644 --- a/amxmodx/cvars.cpp +++ b/amxmodx/cvars.cpp @@ -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); int flags = params[3]; - bool hasMin = params[5] > 0 ? true : false; - bool hasMax = params[7] > 0 ? true : false; + bool hasMin = params[5] != 0; + bool hasMax = params[7] != 0; float minVal = 0; float maxVal = 0; @@ -536,7 +536,7 @@ static cell AMX_NATIVE_CALL set_pcvar_bounds(AMX *amx, cell *params) return 0; } - bool set = params[3] > 0 ? true : false; + bool set = params[3] != 0; int pluginId = g_plugins.findPluginFast(amx)->getId(); float value = 0; bool should_update = false;