ship_cmd.c
changeset 817 4f9377b7fd2b
parent 812 79c99885ad00
child 842 ebfd36603ab9
equal deleted inserted replaced
816:e1c4b6f5742e 817:4f9377b7fd2b
   239 
   239 
   240 	v->current_order = order;
   240 	v->current_order = order;
   241 
   241 
   242 	if (order.type == OT_GOTO_STATION) {
   242 	if (order.type == OT_GOTO_STATION) {
   243 		if (order.station == v->last_station_visited)
   243 		if (order.station == v->last_station_visited)
   244 			v->last_station_visited = 0xFF;
   244 			v->last_station_visited = 0xFFFF;
   245 
   245 
   246 		st = DEREF_STATION(order.station);
   246 		st = DEREF_STATION(order.station);
   247 		if (st->dock_tile != 0) {
   247 		if (st->dock_tile != 0) {
   248 			v->dest_tile = TILE_ADD(st->dock_tile, _dock_offs[_map5[st->dock_tile]-0x4B]);
   248 			v->dest_tile = TILE_ADD(st->dock_tile, _dock_offs[_map5[st->dock_tile]-0x4B]);
   249 		}
   249 		}
   844 		v->spritenum = svi->image_index;
   844 		v->spritenum = svi->image_index;
   845 		v->cargo_type = svi->cargo_type;
   845 		v->cargo_type = svi->cargo_type;
   846 		v->cargo_cap = svi->capacity;
   846 		v->cargo_cap = svi->capacity;
   847 		v->value = value;
   847 		v->value = value;
   848 
   848 
   849 		v->last_station_visited = 255;
   849 		v->last_station_visited = 0xFFFF;
   850 		v->max_speed = svi->max_speed;
   850 		v->max_speed = svi->max_speed;
   851 		v->engine_type = (byte)p1;
   851 		v->engine_type = (byte)p1;
   852 
   852 
   853 		e = &_engines[p1];
   853 		e = &_engines[p1];
   854 		v->reliability = e->reliability;
   854 		v->reliability = e->reliability;