(svn r12346) -Fix [FS#1748, FS#1825](r9874, r11872): Remove duplicated and inconsistent code wrt. autoreplace with rules in both vehicles' group and ALL_GROUP.
/* $Id$ *//** @file bridge.h Header file for bridges */#ifndef BRIDGE_H#define BRIDGE_H#include"gfx_type.h"#include"direction_type.h"#include"tile_cmd.h"enum{MAX_BRIDGES=13};typedefuintBridgeType;/** Struct containing information about a single bridge type */structBridgeSpec{Yearavail_year;///< the year where it becomes availablebytemin_length;///< the minimum length (not counting start and end tile)bytemax_length;///< the maximum length (not counting start and end tile)uint16price;///< the price multiplieruint16speed;///< maximum travel speedSpriteIDsprite;///< the sprite which is used in the GUISpriteIDpal;///< the palette which is used in the GUIStringIDmaterial;///< the string that contains the bridge descriptionStringIDtransport_name[2];///< description of the bridge, when built for road or railPalSpriteID**sprite_table;///< table of sprites for drawing the bridgebyteflags;///< bit 0 set: disable drawing of far pillars.};externBridgeSpec_bridge[MAX_BRIDGES];FoundationGetBridgeFoundation(Slopetileh,Axisaxis);boolHasBridgeFlatRamp(Slopetileh,Axisaxis);staticinlineconstBridgeSpec*GetBridgeSpec(BridgeTypei){assert(i<lengthof(_bridge));return&_bridge[i];}voidDrawBridgeMiddle(constTileInfo*ti);boolCheckBridge_Stuff(BridgeTypebridge_type,uintbridge_len);intCalcBridgeLenCostFactor(intx);voidResetBridges();#endif /* BRIDGE_H */