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
commit524fd25cbd2b32fd8166e196c5eab1f2f7e82a8a (patch)
tree80b15078ff5a1c09815ccb23f4c9e7629774dae4 /ship_cmd.c
parentb34de09e627fc5f8d7579c96c8b4290593c1dd32 (diff)
downloadopenttd-524fd25cbd2b32fd8166e196c5eab1f2f7e82a8a.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;