~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/logic/mapdifferenceregion.cc

  • Committer: The Widelands Bunnybot
  • Date: 2020-11-20 16:33:59 UTC
  • Revision ID: bunnybot@widelands.org-20201120163359-3s4pwfsasq6vj3ld
'src/editor/editorinteractive.h' was automatically formatted.

(by bunnybot)
a3ffba3181694baedb531fd0636e14661752ad05

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
                map.get_neighbour(area_, direction_, &area_);
31
31
                --remaining_in_edge_;
32
32
                return true;
33
 
        } else {
34
 
                if (!passed_corner_) {
35
 
                        passed_corner_ = true;
36
 
                        --direction_;
37
 
                        if (!direction_) {
38
 
                                direction_ = 6;
39
 
                        }
40
 
                        remaining_in_edge_ = area_.radius;
41
 
                        return advance(map);
 
33
        }
 
34
        if (!passed_corner_) {
 
35
                passed_corner_ = true;
 
36
                --direction_;
 
37
                if (!direction_) {
 
38
                        direction_ = 6;
42
39
                }
 
40
                remaining_in_edge_ = area_.radius;
 
41
                return advance(map);
43
42
        }
44
43
        return false;
45
44
}