mail[Wesnoth-commits] r27336 - /trunk/src/game_events.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by cycholka on June 20, 2008 - 12:39:
Author: cycholka
Date: Fri Jun 20 12:01:02 2008
New Revision: 27336

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27336&view=rev
Log:
Replace comparison to string with utils::bool_string() per Mordante request.

Modified:
    trunk/src/game_events.cpp

Modified: trunk/src/game_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_events.cpp?rev=27336&r1=27335&r2=27336&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Fri Jun 20 12:01:02 2008
@@ -2873,8 +2873,8 @@
                // Adding of new events
        WML_HANDLER_FUNCTION(event,/*handler*/,/*event_info*/,cfg)
        {
-        std::string behaviour_flag = cfg["delayed_variable_substitution"];
-        if(behaviour_flag == "no")
+        std::string behavior_flag = cfg["delayed_variable_substitution"];
+        if(!(utils::string_bool(behavior_flag,true)))
         {
                const config &parsed = cfg.get_parsed_config();
                    
new_handlers.push_back(game_events::event_handler(vconfig(&parsed, &parsed)));




Related Messages


Powered by MHonArc, Updated Fri Jun 20 14:02:36 2008