src/tunnelbridge_cmd.cpp
changeset 7885 4eb9b01e37ff
parent 7866 e19fda04e8d3
child 7899 3b6a66b414ec
equal deleted inserted replaced
7884:79fa68c2a6ae 7885:4eb9b01e37ff
   885 	static const SpriteID front_offsets[6]   =   {  97,  98, 103, 106, 104, 105 };
   885 	static const SpriteID front_offsets[6]   =   {  97,  98, 103, 106, 104, 105 };
   886 
   886 
   887 	static const uint size_x[6] = { 11, 16, 16, 16, 16, 16 };
   887 	static const uint size_x[6] = { 11, 16, 16, 16, 16, 16 };
   888 	static const uint size_y[6] = { 16, 11, 16, 16, 16, 16 };
   888 	static const uint size_y[6] = { 16, 11, 16, 16, 16, 16 };
   889 
   889 
   890 	AddSortableSpriteToDraw(SPR_TRAMWAY_BASE + tram_offsets[overlay][offset], PAL_NONE, x, y, size_x[offset], size_y[offset], offset >= 2 ? 1 : 0, z);
   890 	AddSortableSpriteToDraw(SPR_TRAMWAY_BASE + tram_offsets[overlay][offset], PAL_NONE, x, y, size_x[offset], size_y[offset], offset >= 2 ? 1 : 0, z, HASBIT(_transparent_opt, TO_BRIDGES));
   891 
   891 
   892 	AddSortableSpriteToDraw(SPR_TRAMWAY_BASE + back_offsets[offset],  PAL_NONE, x, y, size_x[offset], size_y[offset], 0, z, HASBIT(_transparent_opt, TO_BUILDINGS));
   892 	AddSortableSpriteToDraw(SPR_TRAMWAY_BASE + back_offsets[offset],  PAL_NONE, x, y, size_x[offset], size_y[offset], 0, z, HASBIT(_transparent_opt, TO_BUILDINGS));
   893 	/* For sloped sprites the bounding box needs to be higher, as the pylons stop on a higher point */
   893 	/* For sloped sprites the bounding box needs to be higher, as the pylons stop on a higher point */
   894 	AddSortableSpriteToDraw(SPR_TRAMWAY_BASE + front_offsets[offset], PAL_NONE, x, y, size_x[offset], size_y[offset], offset >= 2 ? 0x30 : 0x10, z, HASBIT(_transparent_opt, TO_BUILDINGS));
   894 	AddSortableSpriteToDraw(SPR_TRAMWAY_BASE + front_offsets[offset], PAL_NONE, x, y, size_x[offset], size_y[offset], offset >= 2 ? 0x30 : 0x10, z, HASBIT(_transparent_opt, TO_BUILDINGS));
   895 }
   895 }