[nexuiz-commits] r6812 - trunk/data/qcsrc/menu
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat May 30 13:49:32 EDT 2009
Author: div0
Date: 2009-05-30 13:49:32 -0400 (Sat, 30 May 2009)
New Revision: 6812
Modified:
trunk/data/qcsrc/menu/gamecommand.qc
trunk/data/qcsrc/menu/mbuiltin.qh
Log:
use new engine builtin isdemo()
Modified: trunk/data/qcsrc/menu/gamecommand.qc
===================================================================
--- trunk/data/qcsrc/menu/gamecommand.qc 2009-05-30 17:44:58 UTC (rev 6811)
+++ trunk/data/qcsrc/menu/gamecommand.qc 2009-05-30 17:49:32 UTC (rev 6812)
@@ -57,7 +57,8 @@
if(argv(0) == "directmenu") if(argc == 2)
{
// switch to a menu item
- m_goto(argv(1));
+ if(!isdemo()) // don't allow this command in demos
+ m_goto(argv(1));
return;
}
Modified: trunk/data/qcsrc/menu/mbuiltin.qh
===================================================================
--- trunk/data/qcsrc/menu/mbuiltin.qh 2009-05-30 17:44:58 UTC (rev 6811)
+++ trunk/data/qcsrc/menu/mbuiltin.qh 2009-05-30 17:49:32 UTC (rev 6812)
@@ -169,6 +169,8 @@
string altstr_set(string str, float num, string set) = #85;
string altstr_ins(string str, float num, string set) = #86;
+float isdemo() = #349;
+
/////////////////////////////////////////////////
// Write* Functions
/////////////////////////////////////////////////
More information about the nexuiz-commits
mailing list