[nexuiz-commits] r6406 - trunk/data/qcsrc/menu/nexuiz
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Apr 2 02:17:02 EDT 2009
Author: div0
Date: 2009-04-02 02:17:02 -0400 (Thu, 02 Apr 2009)
New Revision: 6406
Modified:
trunk/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c
Log:
fix a tiny menu bug (try finding it without reading this diff) :P
Modified: trunk/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c
===================================================================
--- trunk/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c 2009-04-01 19:38:35 UTC (rev 6405)
+++ trunk/data/qcsrc/menu/nexuiz/dialog_multiplayer_create_mutators.c 2009-04-02 06:17:02 UTC (rev 6406)
@@ -112,7 +112,7 @@
string suffix;
suffix = "";
- if(me.cvarValue != "laser")
+ if(me.cvarValue != "laser" && me.cvarValue != "most")
if(cvar("menu_weaponarena_with_laser"))
suffix = " laser";
if(me.checked)
@@ -128,7 +128,7 @@
// run the old function
me.saveCvars_weaponarena(me);
- me.disabled = ((cvar_string("g_weaponarena") == "0") || (cvar_string("g_weaponarena") == "laser"));
+ me.disabled = ((cvar_string("g_weaponarena") == "0") || (cvar_string("g_weaponarena") == "laser") || (cvar_string("g_weaponarena") == "most"));
if not(me.disabled)
{
@@ -145,7 +145,7 @@
void preDrawLaserWeaponArenaLaserButton(entity me)
{
- me.disabled = ((cvar_string("g_weaponarena") == "0") || (cvar_string("g_weaponarena") == "laser"));
+ me.disabled = ((cvar_string("g_weaponarena") == "0") || (cvar_string("g_weaponarena") == "laser") || (cvar_string("g_weaponarena") == "most"));
// run the old function
me.draw_weaponarena(me);
}
More information about the nexuiz-commits
mailing list