(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)

This commit is contained in:
rubidium
2008-10-25 13:51:47 +00:00
parent 9075a2bbfc
commit a14ad77a36
9 changed files with 64 additions and 10 deletions

View File

@@ -8,5 +8,6 @@
#include "direction_type.h"
void DrawRoadDepotSprite(int x, int y, DiagDirection dir, RoadType rt);
void InvalidateTownForRoadTile();
#endif /* ROAD_CMD_H */