summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-19 21:49:35 +0000
committertron <tron@openttd.org>2005-07-19 21:49:35 +0000
commit7c694f25537097f380d7215082b42eea51e86815 (patch)
tree02f05ccb111e772991e342a10812e26ae8d1a118 /station_cmd.c
parent4b1c5202640d5c741ebdda3b3775a337a1c36be8 (diff)
downloadopenttd-7c694f25537097f380d7215082b42eea51e86815.tar.xz
(svn r2643) Get rid of some unnecessary casts
Diffstat (limited to 'station_cmd.c')
-rw-r--r--station_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 3dcd34b2f..1e0d2af44 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -529,7 +529,7 @@ void GetProductionAroundTiles(AcceptedCargo produced, TileIndex tile,
int x1,y1,x2,y2;
int xc,yc;
- memset(produced, 0, NUM_CARGO * sizeof(uint));
+ memset(produced, 0, sizeof(AcceptedCargo));
x = TileX(tile);
y = TileY(tile);
@@ -1428,7 +1428,7 @@ int32 DoConvertStationRail(TileIndex tile, uint totype, bool exec)
if (_m[tile].m5 >= 8) return CMD_ERROR;
// tile is already of requested type?
- if ( (uint)(_m[tile].m3 & 0xF) == totype) return CMD_ERROR;
+ if ((_m[tile].m3 & 0xFU) == totype) return CMD_ERROR;
if (exec) {
// change type.