mail[Wesnoth-commits] r34013 - /trunk/src/editor2/editor_controller.cpp


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

Header


Content

Posted by shadowm2006 on March 22, 2009 - 02:39:
Author: shadowmaster
Date: Sun Mar 22 02:39:12 2009
New Revision: 34013

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34013&view=rev
Log:
Fix a G++ 4.3 warning reported by Zen_Clark on IRC:

src/editor2/editor_controller.cpp:704: warning: suggest parentheses around && 
within ||

Ilor, please check that I didn't screw up the logic of this code
(apparently not).

Modified:
    trunk/src/editor2/editor_controller.cpp

Modified: trunk/src/editor2/editor_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/editor_controller.cpp?rev=34013&r1=34012&r2=34013&view=diff
==============================================================================
--- trunk/src/editor2/editor_controller.cpp (original)
+++ trunk/src/editor2/editor_controller.cpp Sun Mar 22 02:39:12 2009
@@ -699,9 +699,9 @@
                return;
        } else {
                if (get_map_context().needs_terrain_rebuild()) {
-                       if ((auto_update_transitions_ == 
TransitionUpdateMode::on) 
-                       || (auto_update_transitions_ == 
TransitionUpdateMode::partial) 
-                       && (!drag_part || 
get_map_context().everything_changed())) {
+                       if ((auto_update_transitions_ == 
TransitionUpdateMode::on)
+                       || ((auto_update_transitions_ == 
TransitionUpdateMode::partial) 
+                       && (!drag_part || 
get_map_context().everything_changed()))) {
                                gui().rebuild_all();
                                
get_map_context().set_needs_terrain_rebuild(false);
                                gui().invalidate_all();




Related Messages


Powered by MHonArc, Updated Sun Mar 22 05:20:41 2009