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).
This commit is contained in:
Ignacio R. Morelle 2009-03-22 01:39:12 +00:00
parent 0954bc4993
commit 1399c95cbd

View file

@ -699,9 +699,9 @@ void editor_controller::refresh_after_action(bool drag_part)
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();