Changeset - r14185:144a5978b372
[Not reviewed]
master
0 1 0
frosch - 15 years ago 2010-01-06 20:23:06
frosch@openttd.org
(svn r18745) -Codechange: Assemble custom station foundations into a single bounding box.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -2397,11 +2397,13 @@ static void DrawTile_Station(TileInfo *t
 
				if (!HasFoundationNW(ti->tile, slope, z)) ClrBit(parts, 6);
 
				if (!HasFoundationNE(ti->tile, slope, z)) ClrBit(parts, 7);
 

	
 
				StartSpriteCombine();
 
				for (int i = 0; i < 8; i++) {
 
					if (HasBit(parts, i)) {
 
						AddSortableSpriteToDraw(image + i, PAL_NONE, ti->x, ti->y, 16, 16, 7, ti->z);
 
					}
 
				}
 
				EndSpriteCombine();
 
			}
 

	
 
			OffsetGroundSprite(31, 1);
0 comments (0 inline, 0 general)