equal
deleted
inserted
replaced
72 TileIndex end_tile; |
72 TileIndex end_tile; |
73 uint32 type; |
73 uint32 type; |
74 GUIBridgeList *bridges; |
74 GUIBridgeList *bridges; |
75 |
75 |
76 /** Sort the bridges by their index */ |
76 /** Sort the bridges by their index */ |
77 static int BridgeIndexSorter(const BuildBridgeData *a, const BuildBridgeData *b) |
77 static int CDECL BridgeIndexSorter(const BuildBridgeData *a, const BuildBridgeData *b) |
78 { |
78 { |
79 return a->index - b->index; |
79 return a->index - b->index; |
80 } |
80 } |
81 |
81 |
82 /** Sort the bridges by their price */ |
82 /** Sort the bridges by their price */ |
83 static int BridgePriceSorter(const BuildBridgeData *a, const BuildBridgeData *b) |
83 static int CDECL BridgePriceSorter(const BuildBridgeData *a, const BuildBridgeData *b) |
84 { |
84 { |
85 return a->cost - b->cost; |
85 return a->cost - b->cost; |
86 } |
86 } |
87 |
87 |
88 /** Sort the bridges by their maximum speed */ |
88 /** Sort the bridges by their maximum speed */ |
89 static int BridgeSpeedSorter(const BuildBridgeData *a, const BuildBridgeData *b) |
89 static int CDECL BridgeSpeedSorter(const BuildBridgeData *a, const BuildBridgeData *b) |
90 { |
90 { |
91 return a->spec->speed - b->spec->speed; |
91 return a->spec->speed - b->spec->speed; |
92 } |
92 } |
93 |
93 |
94 void BuildBridge(uint8 i) |
94 void BuildBridge(uint8 i) |