walls: Adjust wall orientation next to new hardpoints.

Wall orientation should no longer depend on whether the wall or the hardpoint was built first.
master
Cyp 2011-11-17 13:34:15 +01:00
parent 42f57b6116
commit 312b4a21c9
1 changed files with 3 additions and 3 deletions

View File

@ -1423,10 +1423,10 @@ STRUCTURE* buildStructureDir(STRUCTURE_STATS *pStructureType, UDWORD x, UDWORD y
return NULL;
}
if (!FromSave && (pStructureType->type == REF_WALL || pStructureType->type == REF_GATE))
if (!FromSave && isWallCombiningStructureType(pStructureType))
{
wallType = structChooseWallType(player, map_coord(x), map_coord(y));
if (wallType == WALL_CORNER && pStructureType->type != REF_GATE)
wallType = structChooseWallType(player, map_coord(x), map_coord(y)); // This makes neighbouring walls match us, even if we're a hardpoint, not a wall.
if (wallType == WALL_CORNER && pStructureType->type == REF_WALL)
{
if (pStructureType->asFuncList[0]->type == WALL_TYPE)
{