[Orxonox-commit 768] r3295 - branches/core4/src/core

landauf at orxonox.net landauf at orxonox.net
Tue Jul 14 16:34:13 CEST 2009


Author: landauf
Date: 2009-07-14 16:34:13 +0200 (Tue, 14 Jul 2009)
New Revision: 3295

Modified:
   branches/core4/src/core/CommandEvaluation.cc
Log:
fixed a bug causing console commands to be case sensitive if called with defaultvalues 

Modified: branches/core4/src/core/CommandEvaluation.cc
===================================================================
--- branches/core4/src/core/CommandEvaluation.cc	2009-07-14 13:56:50 UTC (rev 3294)
+++ branches/core4/src/core/CommandEvaluation.cc	2009-07-14 14:34:13 UTC (rev 3295)
@@ -83,7 +83,7 @@
             return true;
         }
 
-        if (!this->bCommandChanged_ || removeTrailingWhitespaces(this->command_) == removeTrailingWhitespaces(this->originalCommand_))
+        if (!this->bCommandChanged_ || nocaseCmp(removeTrailingWhitespaces(this->command_), removeTrailingWhitespaces(this->originalCommand_)) == 0)
         {
             COUT(4) << "CE_execute: " << this->command_ << "\n";
 




More information about the Orxonox-commit mailing list