From 3396fbdf70f7068cb6fd705a6181b54f43eab406 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 5 Apr 2007 00:13:26 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@923 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/command.cpp b/source/src/command.cpp index 3c7e8a5c..982c7149 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -197,14 +197,14 @@ int execute(char *p) // all evaluation happens here, case ID_VAR: // game defined variabled if(!w[1][0]) conoutf("%s = %d", c, *id->storage); // var with no value just prints its current value - else if(id->min>id->max) conoutf("variable is read-only"); + else if(id->min>id->max) conoutf("variable %s is read-only", id->name); else { int i1 = ATOI(w[1]); if(i1min || i1>id->max) { i1 = i1min ? id->min : id->max; // clamp to valid range - conoutf("valid range for %s is %d..%d", c, id->min, id->max); + conoutf("valid range for %s is %d..%d", id->name, id->min, id->max); } *id->storage = i1; if(id->fun) ((void (__cdecl *)())id->fun)(); // call trigger function if available