Skip to content

Commit

Permalink
Fix being able to build walls on top of buildings
Browse files Browse the repository at this point in the history
Fixes #347
  • Loading branch information
bvschaik committed Feb 21, 2020
1 parent 7940b38 commit 907f627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/building/construction_routed.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ int building_construction_place_wall(int measure_only, int x_start, int y_start,
int start_offset = map_grid_offset(x_start, y_start);
int end_offset = map_grid_offset(x_end, y_end);
int forbidden_terrain_mask =
TERRAIN_TREE | TERRAIN_ROCK | TERRAIN_WATER | TERRAIN_SHRUB |
TERRAIN_ROAD | TERRAIN_GARDEN | TERRAIN_ELEVATION |
TERRAIN_TREE | TERRAIN_ROCK | TERRAIN_WATER | TERRAIN_BUILDING |
TERRAIN_SHRUB | TERRAIN_ROAD | TERRAIN_GARDEN | TERRAIN_ELEVATION |
TERRAIN_RUBBLE | TERRAIN_AQUEDUCT | TERRAIN_ACCESS_RAMP;
if (map_terrain_is(start_offset, forbidden_terrain_mask)) {
return 0;
Expand Down

0 comments on commit 907f627

Please sign in to comment.