<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40331 >

 $subject


 - ML

diff -Nurd -X.diff_ignore freeciv/dependencies/toluaxx/src/bin/parsecmd.cxx 
freeciv/dependencies/toluaxx/src/bin/parsecmd.cxx
--- freeciv/dependencies/toluaxx/src/bin/parsecmd.cxx   2008-04-16 
01:14:31.000000000 +0300
+++ freeciv/dependencies/toluaxx/src/bin/parsecmd.cxx   2008-06-26 
23:40:51.000000000 +0300
@@ -53,7 +53,8 @@
     unsigned int cmdi,wrdi;
     for(cmdi=0;cmdi<cmdv.size();cmdi++){
       for(wrdi=0;wrdi<line.size();wrdi++){
-       
if(line[wrdi].substr(0,cmdv[cmdi].length())==cmdv[cmdi]&&value||line[wrdi]==cmdv[cmdi]){
+       if((line[wrdi].substr(0,cmdv[cmdi].length()) == cmdv[cmdi] && value)
+           || line[wrdi] == cmdv[cmdi]) {
          CORT&c=arg[name];
          if(value){
            if(line[wrdi].length()>cmdv[cmdi].length()){
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to