[nexuiz-commits] r7952 - trunk/data/qcsrc/common

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Sep 27 09:44:08 EDT 2009


Author: blub0
Date: 2009-09-27 09:44:08 -0400 (Sun, 27 Sep 2009)
New Revision: 7952

Modified:
   trunk/data/qcsrc/common/gamecommand.qc
Log:
added an error message when def/defs get an empty cvar name

Modified: trunk/data/qcsrc/common/gamecommand.qc
===================================================================
--- trunk/data/qcsrc/common/gamecommand.qc	2009-09-27 13:32:30 UTC (rev 7951)
+++ trunk/data/qcsrc/common/gamecommand.qc	2009-09-27 13:44:08 UTC (rev 7952)
@@ -386,7 +386,10 @@
 							cvar_set(s2, s);
 					}
 					else
+					{
+						print("rpn: empty cvar name for 'def'");
 						rpn_error = TRUE;
+					}
 				} else if(rpncmd == "defs" || rpncmd == "@") {
 					s = "";
 					i = rpn_popf();
@@ -408,7 +411,10 @@
 							cvar_set(s2, s);
 					}
 					else
+					{
+						print("rpn: empty cvar name for 'defs'");
 						rpn_error = TRUE;
+					}
 				} else if(rpncmd == "load") {
 					rpn_set(cvar_string(rpn_get()));
 				} else if(rpncmd == "exch") {



More information about the nexuiz-commits mailing list