tunnelbridge_cmd.c
changeset 3518 c1e19f08fc25
parent 3517 f57c12df9a26
child 3533 05537e42e2dc
equal deleted inserted replaced
3517:f57c12df9a26 3518:c1e19f08fc25
    82 	BRIDGE_FULL_LEVELED_FOUNDATION = 1 << 7 | 1 << 11 | 1 << 13 | 1 << 14,
    82 	BRIDGE_FULL_LEVELED_FOUNDATION = 1 << 7 | 1 << 11 | 1 << 13 | 1 << 14,
    83 	// foundation, tile is partly leveled up (tileh's 1, 2, 4, 8) --> 1 corner raised
    83 	// foundation, tile is partly leveled up (tileh's 1, 2, 4, 8) --> 1 corner raised
    84 	BRIDGE_PARTLY_LEVELED_FOUNDATION = 1 << 1 | 1 << 2 | 1 << 4 | 1 << 8,
    84 	BRIDGE_PARTLY_LEVELED_FOUNDATION = 1 << 1 | 1 << 2 | 1 << 4 | 1 << 8,
    85 	// no foundations (X,Y direction) (tileh's 0, 3, 6, 9, 12)
    85 	// no foundations (X,Y direction) (tileh's 0, 3, 6, 9, 12)
    86 	BRIDGE_NO_FOUNDATION = 1 << 0 | 1 << 3 | 1 << 6 | 1 << 9 | 1 << 12,
    86 	BRIDGE_NO_FOUNDATION = 1 << 0 | 1 << 3 | 1 << 6 | 1 << 9 | 1 << 12,
    87 	BRIDGE_HORZ_RAMP = (BRIDGE_PARTLY_LEVELED_FOUNDATION | BRIDGE_NO_FOUNDATION) & ~0
    87 	BRIDGE_HORZ_RAMP = (BRIDGE_PARTLY_LEVELED_FOUNDATION | BRIDGE_NO_FOUNDATION) & ~(1 << 0)
    88 };
    88 };
    89 
    89 
    90 static inline const PalSpriteID *GetBridgeSpriteTable(int index, byte table)
    90 static inline const PalSpriteID *GetBridgeSpriteTable(int index, byte table)
    91 {
    91 {
    92 	const Bridge *bridge = &_bridge[index];
    92 	const Bridge *bridge = &_bridge[index];