summaryrefslogtreecommitdiff
path: root/ship_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-14 08:09:57 +0000
committertron <tron@openttd.org>2005-11-14 08:09:57 +0000
commit833032adc09ce95c68d4a4b412221a0b3f88e670 (patch)
tree80b15078ff5a1c09815ccb23f4c9e7629774dae4 /ship_cmd.c
parent357aba747578ecd3b8cc1a29bc740634211ada37 (diff)
downloadopenttd-833032adc09ce95c68d4a4b412221a0b3f88e670.tar.xz
(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT
Diffstat (limited to 'ship_cmd.c')
-rw-r--r--ship_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ship_cmd.c b/ship_cmd.c
index 28d04c0bc..bd2bb2b6b 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -356,8 +356,8 @@ static void CheckShipLeaveDepot(Vehicle *v)
} else {
return;
}
- v->direction = (byte)m;
- v->u.ship.state = (byte)(m >> 8);
+ v->direction = GB(m, 0, 8);
+ v->u.ship.state = GB(m, 8, 8);
v->vehstatus &= ~VS_HIDDEN;
v->cur_speed = 0;