[nexuiz-commits] r7373 - trunk/data/qcsrc/menu

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Aug 6 15:25:40 EDT 2009


Author: div0
Date: 2009-08-06 15:25:40 -0400 (Thu, 06 Aug 2009)
New Revision: 7373

Modified:
   trunk/data/qcsrc/menu/mbuiltin.qh
   trunk/data/qcsrc/menu/menu.qc
Log:
give the magic numbers names


Modified: trunk/data/qcsrc/menu/mbuiltin.qh
===================================================================
--- trunk/data/qcsrc/menu/mbuiltin.qh	2009-08-06 19:20:29 UTC (rev 7372)
+++ trunk/data/qcsrc/menu/mbuiltin.qh	2009-08-06 19:25:40 UTC (rev 7373)
@@ -345,3 +345,5 @@
 float(float i) argv_end_index = #516;
 
 string(float, float) getgamedirinfo = #626;
+#define GETGAMEDIRINFO_NAME 0
+#define GETGAMEDIRINFO_DESCRIPTION 1

Modified: trunk/data/qcsrc/menu/menu.qc
===================================================================
--- trunk/data/qcsrc/menu/menu.qc	2009-08-06 19:20:29 UTC (rev 7372)
+++ trunk/data/qcsrc/menu/menu.qc	2009-08-06 19:25:40 UTC (rev 7373)
@@ -30,10 +30,10 @@
 		string s;
 		for(i = 0; ; ++i)
 		{
-			s = getgamedirinfo(i, 0);
+			s = getgamedirinfo(i, GETGAMEDIRINFO_NAME);
 			if not(s)
 				break;
-			print(s, ": ", getgamedirinfo(i, 1));
+			print(s, ": ", getgamedirinfo(i, GETGAMEDIRINFO_DESCRIPTION));
 		}
 	}
 }



More information about the nexuiz-commits mailing list