summaryrefslogtreecommitdiff
path: root/src/saveload
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/saveload
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/saveload')
-rw-r--r--src/saveload/afterload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index 67b2f8975..74f7778fb 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -2695,11 +2695,11 @@ bool AfterLoadGame()
if (IsTileType(t, MP_CLEAR) && IsClearGround(t, CLEAR_FIELDS)) continue;
uint fence = GB(_m[t].m4, 5, 3);
if (fence != 0 && IsTileType(TILE_ADDXY(t, 1, 0), MP_CLEAR) && IsClearGround(TILE_ADDXY(t, 1, 0), CLEAR_FIELDS)) {
- SetFenceNE(TILE_ADDXY(t, 1, 0), fence);
+ SetFence(TILE_ADDXY(t, 1, 0), DIAGDIR_NE, fence);
}
fence = GB(_m[t].m4, 2, 3);
if (fence != 0 && IsTileType(TILE_ADDXY(t, 0, 1), MP_CLEAR) && IsClearGround(TILE_ADDXY(t, 0, 1), CLEAR_FIELDS)) {
- SetFenceNW(TILE_ADDXY(t, 0, 1), fence);
+ SetFence(TILE_ADDXY(t, 0, 1), DIAGDIR_NW, fence);
}
SB(_m[t].m4, 2, 3, 0);
SB(_m[t].m4, 5, 3, 0);