summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-04 19:46:18 +0000
committercelestar <celestar@openttd.org>2006-04-04 19:46:18 +0000
commit6ead57890c50758d2fe06f701e76fdbdae445b96 (patch)
treeefb62d1373c3ff71df327ed9654bdc13df311a9b
parent39460c5e0a53413c0f62f6a77e6179f85c613db8 (diff)
downloadopenttd-6ead57890c50758d2fe06f701e76fdbdae445b96.tar.xz
(svn r4278) -Fix: changed char to uint8 because signedness of char is undefined. Thanks to KUDr and Tron for research and stuff. (FS#98)
-rw-r--r--table/elrail_data.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/table/elrail_data.h b/table/elrail_data.h
index 32a283483..984cc9594 100644
--- a/table/elrail_data.h
+++ b/table/elrail_data.h
@@ -279,11 +279,11 @@ static const Direction PPPorder[DIAGDIR_END][TLG_END][DIR_END] = { /* X -
}
};
/* Geometric placement of the PCP relative to the tile origin */
-static const char x_pcp_offsets[DIAGDIR_END] = {0, 8, 15, 8};
-static const char y_pcp_offsets[DIAGDIR_END] = {8, 15, 8, 0};
+static const int8 x_pcp_offsets[DIAGDIR_END] = {0, 8, 15, 8};
+static const int8 y_pcp_offsets[DIAGDIR_END] = {8, 15, 8, 0};
/* Geometric placement of the PPP relative to the PCP*/
-static const char x_ppp_offsets[DIR_END] = {-3, -4, -3, 0, +3, +4, +3, 0};
-static const char y_ppp_offsets[DIR_END] = {-3, 0, +3, +4, +3, 0, -3, -4};
+static const int8 x_ppp_offsets[DIR_END] = {-3, -4, -3, 0, +3, +4, +3, 0};
+static const int8 y_ppp_offsets[DIR_END] = {-3, 0, +3, +4, +3, 0, -3, -4};
/* The type of pylon to draw at each PPP */
static const SpriteID pylons_normal[] = {
SPR_PYLON_EW_N,