summaryrefslogtreecommitdiff
path: root/src/road_cmd.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-10-25 13:51:47 +0000
committerrubidium <rubidium@openttd.org>2008-10-25 13:51:47 +0000
commita14ad77a36c836fd3f6940eadeb8161e7ad02f92 (patch)
treeba7c12966aad60d82c8e03bb0593bce949ec2b86 /src/road_cmd.h
parent9075a2bbfc7c33a089fe100c42b96b831521d6d8 (diff)
downloadopenttd-a14ad77a36c836fd3f6940eadeb8161e7ad02f92.tar.xz
(svn r14528) -Codechange: cache the closest town for all road tiles instead of only roads owned by tiles. This replaces a O(n) search over all towns from the road's tileloop with a O(1) lookup (PhilSophus)
Diffstat (limited to 'src/road_cmd.h')
-rw-r--r--src/road_cmd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/road_cmd.h b/src/road_cmd.h
index 6597bb1b0..df92ecb3f 100644
--- a/src/road_cmd.h
+++ b/src/road_cmd.h
@@ -8,5 +8,6 @@
#include "direction_type.h"
void DrawRoadDepotSprite(int x, int y, DiagDirection dir, RoadType rt);
+void InvalidateTownForRoadTile();
#endif /* ROAD_CMD_H */