(svn r25852) -Codechange: Merge GetFenceXX/SetFenceXX into one common GetFonce/SetFence for all directions that take an extra direction parameter (cirdan, LordAro)

This commit is contained in:
zuu
2013-10-12 22:23:43 +00:00
parent a42f223b2b
commit fb5dc7762b
4 changed files with 38 additions and 100 deletions

View File

@@ -968,15 +968,15 @@ static void SetupFarmFieldFence(TileIndex tile, int size, byte type, Axis direct
if (direction == AXIS_X) {
if (north) {
SetFenceNW(tile, or_);
SetFence(tile, DIAGDIR_NW, or_);
} else {
SetFenceSE(tile, or_);
SetFence(tile, DIAGDIR_SE, or_);
}
} else {
if (north) {
SetFenceNE(tile, or_);
SetFence(tile, DIAGDIR_NE, or_);
} else {
SetFenceSW(tile, or_);
SetFence(tile, DIAGDIR_SW, or_);
}
}
}