(svn r10698) -Codechange [FS#1082]: simplify the code related to foundations. Primarily removal of (duplicated|magic) code and introduction of few helper functions to ease foundation determination. Patch by frosch.
This commit is contained in:
		@@ -27,7 +27,7 @@ struct Bridge {
 | 
			
		||||
extern const Bridge orig_bridge[MAX_BRIDGES];
 | 
			
		||||
extern Bridge _bridge[MAX_BRIDGES];
 | 
			
		||||
 | 
			
		||||
uint GetBridgeFoundation(Slope tileh, Axis axis);
 | 
			
		||||
Foundation GetBridgeFoundation(Slope tileh, Axis axis);
 | 
			
		||||
 | 
			
		||||
static inline const Bridge *GetBridge(uint i)
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user