Changeset - r2660:95d4080edbe8
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-11-16 12:29:37
tron@openttd.org
(svn r3202) If cascade -> switch
1 file changed with 18 insertions and 17 deletions:
0 comments (0 inline, 0 general)
station_cmd.c
Show inline comments
 
@@ -2170,25 +2170,26 @@ static uint32 GetTileTrackStatus_Station
 
	return j;
 
}
 

	
 

	
 
static void TileLoop_Station(TileIndex tile)
 
{
 
  //FIXME -- GetTileTrackStatus_Station -> animated stationtiles
 
  // hardcoded.....not good
 
  // 0x27 - large big airport (39)
 
  // 0x66 - radar metropolitan airport (102)
 
  // 0x5A - radar international airport (90)
 
  // 0x3A - flag small airport (58)
 
	if (_m[tile].m5 == 39 || _m[tile].m5 == 58 || _m[tile].m5 == 90 || _m[tile].m5 == 102)
 
		AddAnimatedTile(tile);
 

	
 
	// treat a bouy tile as water.
 
	else if (_m[tile].m5 == 0x52)
 
		TileLoop_Water(tile);
 

	
 
	// treat a oilrig (the station part) as water
 
	else if (_m[tile].m5 == 0x4B)
 
		TileLoop_Water(tile);
 

	
 
	// FIXME -- GetTileTrackStatus_Station -> animated stationtiles
 
	// hardcoded.....not good
 
	switch (_m[tile].m5) {
 
		case 0x27: // large big airport
 
		case 0x3A: // flag small airport
 
		case 0x5A: // radar international airport
 
		case 0x66: // radar metropolitan airport
 
			AddAnimatedTile(tile);
 
			break;
 

	
 
		case 0x4B: // oilrig (station part)
 
		case 0x52: // bouy
 
			TileLoop_Water(tile);
 
			break;
 

	
 
		default: break;
 
	}
 
}
 

	
 

	
0 comments (0 inline, 0 general)