summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2013-10-12 22:23:43 +0000
committerzuu <zuu@openttd.org>2013-10-12 22:23:43 +0000
commitfb5dc7762b72b0b7c9c8c16cda7e819fa92f6d01 (patch)
tree40e08c33b9f585ccd82ed3bb07058bf1be276c7c /src/industry_cmd.cpp
parenta42f223b2b9349fb2a8a2049f7e3c02076a420fc (diff)
downloadopenttd-fb5dc7762b72b0b7c9c8c16cda7e819fa92f6d01.tar.xz
(svn r25852) -Codechange: Merge GetFenceXX/SetFenceXX into one common GetFonce/SetFence for all directions that take an extra direction parameter (cirdan, LordAro)
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 2155e7472..ad1480e21 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -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_);
}
}
}