station_cmd.c
changeset 497 4d1c889526ee
parent 494 45acd6b1fd21
child 500 8e52f7797b48
equal deleted inserted replaced
496:221efd270762 497:4d1c889526ee
  1948 	foreach_draw_tile_seq(dtss, t->seq) {
  1948 	foreach_draw_tile_seq(dtss, t->seq) {
  1949 		image =	dtss->image + relocation;
  1949 		image =	dtss->image + relocation;
  1950 		// For custom sprites, there's no railtype-based pitching.
  1950 		// For custom sprites, there's no railtype-based pitching.
  1951 		image += railtype * ((image & 0x3FFF) < _custom_sprites_base ? TRACKTYPE_SPRITE_PITCH : 0);
  1951 		image += railtype * ((image & 0x3FFF) < _custom_sprites_base ? TRACKTYPE_SPRITE_PITCH : 0);
  1952 		if (_display_opt & DO_TRANS_BUILDINGS) {
  1952 		if (_display_opt & DO_TRANS_BUILDINGS) {
       
  1953 			image = (image & 0x3FFF) | 0x03224000;
       
  1954 		} else {
  1953 			if (image&0x8000) image |= image_or_modificator;	
  1955 			if (image&0x8000) image |= image_or_modificator;	
  1954 		} else {
       
  1955 			image = (image & 0x3FFF) | 0x03224000;
       
  1956 		}
  1956 		}
  1957 
  1957 
  1958 		if ((byte)dtss->delta_z != 0x80) {
  1958 		if ((byte)dtss->delta_z != 0x80) {
  1959 			AddSortableSpriteToDraw(image, ti->x + dtss->delta_x, ti->y + dtss->delta_y, dtss->width, dtss->height, dtss->unk, ti->z + dtss->delta_z);
  1959 			AddSortableSpriteToDraw(image, ti->x + dtss->delta_x, ti->y + dtss->delta_y, dtss->width, dtss->height, dtss->unk, ti->z + dtss->delta_z);
  1960 		} else {
  1960 		} else {