diff options
author | rubidium <rubidium@openttd.org> | 2012-04-25 20:50:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2012-04-25 20:50:13 +0000 |
commit | 41e5c839e08bfc811b1e8d7272996567776b788f (patch) | |
tree | eb8a74437dd42a7a57e157c6218e96b9df7fbd87 /src/tunnelbridge_cmd.cpp | |
parent | cd50c862944098753c959cc272d62a2ddc212ca8 (diff) | |
download | openttd-41e5c839e08bfc811b1e8d7272996567776b788f.tar.xz |
(svn r24179) -Codechange: move some variables of Town to TownCache
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 945563fb5..1fd812134 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -251,7 +251,7 @@ CommandCost CmdBuildBridge(TileIndex end_tile, DoCommandFlag flags, uint32 p1, u company = OWNER_TOWN; /* If we are not within a town, we are not owned by the town */ - if (town == NULL || DistanceSquare(tile_start, town->xy) > town->squared_town_zone_radius[HZB_TOWN_EDGE]) { + if (town == NULL || DistanceSquare(tile_start, town->xy) > town->cache.squared_town_zone_radius[HZB_TOWN_EDGE]) { company = OWNER_NONE; } } @@ -560,7 +560,7 @@ CommandCost CmdBuildTunnel(TileIndex start_tile, DoCommandFlag flags, uint32 p1, company = OWNER_TOWN; /* If we are not within a town, we are not owned by the town */ - if (town == NULL || DistanceSquare(start_tile, town->xy) > town->squared_town_zone_radius[HZB_TOWN_EDGE]) { + if (town == NULL || DistanceSquare(start_tile, town->xy) > town->cache.squared_town_zone_radius[HZB_TOWN_EDGE]) { company = OWNER_NONE; } } |