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:
parent
0954bc4993
commit
1399c95cbd
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue