# HG changeset patch # User tron # Date 1144479343 0 # Node ID 1d130c5ed5e074363429b89201ece3c756e347dd # Parent 1b68d263ae0e09825941b35ed4429c48ef553dcb (svn r4321) For ships check the ship state, not the road state. This bug was harmless, because both states are at the same byte in the vehicle type specific union. diff -r 1b68d263ae0e -r 1d130c5ed5e0 ship_cmd.c --- a/ship_cmd.c Sat Apr 08 05:44:37 2006 +0000 +++ b/ship_cmd.c Sat Apr 08 06:55:43 2006 +0000 @@ -913,7 +913,7 @@ SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES); - if (!IsTileDepotType(v->tile, TRANSPORT_WATER) || v->u.road.state != 0x80 || !(v->vehstatus&VS_STOPPED)) + if (!IsTileDepotType(v->tile, TRANSPORT_WATER) || v->u.ship.state != 0x80 || !(v->vehstatus&VS_STOPPED)) return_cmd_error(STR_980B_SHIP_MUST_BE_STOPPED_IN); if (flags & DC_EXEC) {