(svn r8884) -Fix

Replace SetSpeedLimitOnBridge() by something simpler
This commit is contained in:
tron
2007-02-24 18:44:30 +00:00
parent e3f60f716c
commit 12b1804d4e
4 changed files with 13 additions and 18 deletions

View File

@@ -28,6 +28,11 @@ extern const Bridge orig_bridge[MAX_BRIDGES];
extern Bridge _bridge[MAX_BRIDGES];
uint GetBridgeFoundation(Slope tileh, Axis axis);
uint SetSpeedLimitOnBridge(Vehicle *);
static inline const Bridge *GetBridge(uint i)
{
assert(i < lengthof(_bridge));
return &_bridge[i];
}
#endif /* BRIDGE_H */