src/smallmap_gui.cpp
changeset 6979 d194d25020e7
parent 6972 13887863c3f1
child 6981 5dfb8540e66a
equal deleted inserted replaced
6978:ba06504a1543 6979:d194d25020e7
   394 }
   394 }
   395 
   395 
   396 /**
   396 /**
   397  * Return the color a tile would be displayed with in the small map in mode "Vehicles".
   397  * Return the color a tile would be displayed with in the small map in mode "Vehicles".
   398  *
   398  *
   399  * @param t The tile of which we would like to get the color.
   399  * @param tile The tile of which we would like to get the color.
   400  * @return The color of tile in the small map in mode "Vehicles"
   400  * @return The color of tile in the small map in mode "Vehicles"
   401  */
   401  */
   402 static inline uint32 GetSmallMapVehiclesPixels(TileIndex tile)
   402 static inline uint32 GetSmallMapVehiclesPixels(TileIndex tile)
   403 {
   403 {
   404 	TileType t = GetEffectiveTileType(tile);
   404 	TileType t = GetEffectiveTileType(tile);
   424 }
   424 }
   425 
   425 
   426 /**
   426 /**
   427  * Return the color a tile would be displayed with in the small map in mode "Routes".
   427  * Return the color a tile would be displayed with in the small map in mode "Routes".
   428  *
   428  *
   429  * @param t The tile of which we would like to get the color.
   429  * @param tile The tile of which we would like to get the color.
   430  * @return The color of tile  in the small map in mode "Routes"
   430  * @return The color of tile  in the small map in mode "Routes"
   431  */
   431  */
   432 static inline uint32 GetSmallMapRoutesPixels(TileIndex tile)
   432 static inline uint32 GetSmallMapRoutesPixels(TileIndex tile)
   433 {
   433 {
   434 	TileType t = GetEffectiveTileType(tile);
   434 	TileType t = GetEffectiveTileType(tile);
   500 static uint32 _owner_colors[OWNER_END + 1];
   500 static uint32 _owner_colors[OWNER_END + 1];
   501 
   501 
   502 /**
   502 /**
   503  * Return the color a tile would be displayed with in the small map in mode "Owner".
   503  * Return the color a tile would be displayed with in the small map in mode "Owner".
   504  *
   504  *
   505  * @param t The tile of which we would like to get the color.
   505  * @param tile The tile of which we would like to get the color.
   506  * @return The color of tile in the small map in mode "Owner"
   506  * @return The color of tile in the small map in mode "Owner"
   507  */
   507  */
   508 static inline uint32 GetSmallMapOwnerPixels(TileIndex tile)
   508 static inline uint32 GetSmallMapOwnerPixels(TileIndex tile)
   509 {
   509 {
   510 	Owner o;
   510 	Owner o;