~widelands-dev/widelands/bug-1731523-roadbuilding-cursor

« back to all changes in this revision

Viewing changes to src/editor/tools/set_port_space_tool.cc

merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        do {
66
66
                //  check if field is valid
67
67
                if (port_tool_nodecaps(mr.location(), *map) != NodeCaps::CAPS_NONE) {
68
 
                        map->set_port_space(mr.location(), true);
 
68
                        map->set_port_space(world, mr.location(), true);
69
69
                        Area<FCoords> a(mr.location(), 0);
70
70
                        map->recalc_for_field_area(world, a);
71
71
                        ++nr;
106
106
        do {
107
107
                //  check if field is valid
108
108
                if (port_tool_nodecaps(mr.location(), *map)) {
109
 
                        map->set_port_space(mr.location(), false);
 
109
                        map->set_port_space(world, mr.location(), false);
110
110
                        Area<FCoords> a(mr.location(), 0);
111
111
                        map->recalc_for_field_area(world, a);
112
112
                        ++nr;