From 8f104a2e971822e548d210bcd83f84057e54702d Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 24 May 2008 19:36:20 +0000 Subject: (svn r13233) -Fix: Replace some (incorrect) evaluations of TileOwner by RoadOwner. -Fix: Before evaluating RoadOwner, check if the roadtype is present. -Fix: Some places assumed that MP_ROAD means normal street. --- src/smallmap_gui.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/smallmap_gui.cpp') diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 2094397ed..b6ba2037a 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -490,6 +490,10 @@ static inline uint32 GetSmallMapOwnerPixels(TileIndex tile) case MP_INDUSTRY: o = OWNER_END; break; case MP_HOUSE: o = OWNER_TOWN; break; default: o = GetTileOwner(tile); break; + /* FIXME: For MP_ROAD there are multiple owners. + * GetTileOwner returns the rail owner (level crossing) resp. the owner of ROADTYPE_ROAD (normal road), + * even if there are no ROADTYPE_ROAD bits on the tile. + */ } return _owner_colors[o]; -- cgit v1.2.3-54-g00ecf