ship_cmd.c
changeset 1266 eccd576e322f
parent 1247 3851739bfd09
child 1282 ea2ae881814c
equal deleted inserted replaced
1265:71ed55c20f6e 1266:eccd576e322f
   252 
   252 
   253 	if (order->type == OT_GOTO_STATION) {
   253 	if (order->type == OT_GOTO_STATION) {
   254 		const Station *st;
   254 		const Station *st;
   255 
   255 
   256 		if (order->station == v->last_station_visited)
   256 		if (order->station == v->last_station_visited)
   257 			v->last_station_visited = 0xFFFF;
   257 			v->last_station_visited = INVALID_STATION;
   258 
   258 
   259 		st = GetStation(order->station);
   259 		st = GetStation(order->station);
   260 		if (st->dock_tile != 0) {
   260 		if (st->dock_tile != 0) {
   261 			v->dest_tile = TILE_ADD(st->dock_tile, ToTileIndexDiff(_dock_offs[_map5[st->dock_tile]-0x4B]));
   261 			v->dest_tile = TILE_ADD(st->dock_tile, ToTileIndexDiff(_dock_offs[_map5[st->dock_tile]-0x4B]));
   262 		}
   262 		}
   917 		v->spritenum = svi->image_index;
   917 		v->spritenum = svi->image_index;
   918 		v->cargo_type = svi->cargo_type;
   918 		v->cargo_type = svi->cargo_type;
   919 		v->cargo_cap = svi->capacity;
   919 		v->cargo_cap = svi->capacity;
   920 		v->value = value;
   920 		v->value = value;
   921 
   921 
   922 		v->last_station_visited = 0xFFFF;
   922 		v->last_station_visited = INVALID_STATION;
   923 		v->max_speed = svi->max_speed;
   923 		v->max_speed = svi->max_speed;
   924 		v->engine_type = (byte)p1;
   924 		v->engine_type = (byte)p1;
   925 
   925 
   926 		e = &_engines[p1];
   926 		e = &_engines[p1];
   927 		v->reliability = e->reliability;
   927 		v->reliability = e->reliability;