Author: crab
Date: Tue May 19 19:11:46 2009
New Revision: 35755

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35755&view=rev
Log:
Fixed bug introduced by r35630 - interpreting any non-empty value of boolean 
states as "true". Fixes problem with 'all enemy units on Dark Forecast start 
poisoned'

Modified:
    trunk/src/unit.cpp

Modified: trunk/src/unit.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=35755&r1=35754&r2=35755&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Tue May 19 19:11:46 2009
@@ -1033,7 +1033,7 @@
                }
        } else {
                if (known_boolean_state_id!=STATE_UNKNOWN){
-                       set_state(known_boolean_state_id,true);
+                       
set_state(known_boolean_state_id,utils::string_bool(value));
                        return;
                }
                states_[state] = value;


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to