station_cmd.c
changeset 1067 a083a6dd1419
parent 1059 c28c6be74291
child 1078 326bae748bcb
equal deleted inserted replaced
1066:aad3c6ad147f 1067:a083a6dd1419
  2186 	uint16 station_id;
  2186 	uint16 station_id;
  2187 	byte dir;
  2187 	byte dir;
  2188 	uint16 spd;
  2188 	uint16 spd;
  2189 
  2189 
  2190 	if (v->type == VEH_Train) {
  2190 	if (v->type == VEH_Train) {
  2191 		if (IS_BYTE_INSIDE(_map5[tile], 0, 8) && v->subtype == 0 &&
  2191 		if (IS_BYTE_INSIDE(_map5[tile], 0, 8) && v->subtype == TS_Front_Engine &&
  2192 			!IsTrainStationTile(tile + TileOffsByDir(v->direction >> 1))) {
  2192 			!IsTrainStationTile(tile + TileOffsByDir(v->direction >> 1))) {
  2193 
  2193 
  2194 			station_id = _map2[tile];
  2194 			station_id = _map2[tile];
  2195 			if ((!(v->current_order.flags & OF_NON_STOP) && !_patches.new_nonstop) ||
  2195 			if ((!(v->current_order.flags & OF_NON_STOP) && !_patches.new_nonstop) ||
  2196 					(v->current_order.type == OT_GOTO_STATION && v->current_order.station == station_id)) {
  2196 					(v->current_order.type == OT_GOTO_STATION && v->current_order.station == station_id)) {