summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-02-11 17:35:15 +0000
committerbelugas <belugas@openttd.org>2008-02-11 17:35:15 +0000
commitcc2b8b574a7df99a4e2912ddca06d227cd62c570 (patch)
treebb6d4544cc26e45639a2159c483064afedebca6d /src/tunnelbridge_cmd.cpp
parent1011ac353b30d33945c5e5ad5f3d52186c829afc (diff)
downloadopenttd-cc2b8b574a7df99a4e2912ddca06d227cd62c570.tar.xz
(svn r12111) -Codechange: Rename Bridge to BridgeSpec, out of consistensy with other Specs in used.
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r--src/tunnelbridge_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index 53ac0012b..0773497a1 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -38,7 +38,7 @@
#include "table/strings.h"
#include "table/bridge_land.h"
-Bridge _bridge[MAX_BRIDGES];
+BridgeSpec _bridge[MAX_BRIDGES];
/** Reset the data been eventually changed by the grf loaded. */
void ResetBridges()
@@ -99,7 +99,7 @@ bool HasBridgeFlatRamp(Slope tileh, Axis axis)
static inline const PalSpriteID *GetBridgeSpriteTable(int index, byte table)
{
- const Bridge *bridge = GetBridgeSpec(index);
+ const BridgeSpec *bridge = GetBridgeSpec(index);
assert(table < 7);
if (bridge->sprite_table == NULL || bridge->sprite_table[table] == NULL) {
return _bridge_sprite_table[index][table];
@@ -153,7 +153,7 @@ static CommandCost CheckBridgeSlopeSouth(Axis axis, Slope *tileh, uint *z)
bool CheckBridge_Stuff(BridgeType bridge_type, uint bridge_len)
{
- const Bridge *b = GetBridgeSpec(bridge_type);
+ const BridgeSpec *b = GetBridgeSpec(bridge_type);
uint max; // max possible length of a bridge (with patch 100)
if (bridge_type >= MAX_BRIDGES) return false;