Merge tag '14.0-beta2' into jgrpp
# Conflicts: # CMakeLists.txt # src/cargotype.cpp # src/console_cmds.cpp # src/graph_gui.cpp # src/industry_cmd.cpp # src/industrytype.h # src/misc_gui.cpp # src/network/network_client.cpp # src/newgrf.cpp # src/newgrf_town.cpp # src/object_cmd.cpp # src/openttd.cpp # src/pathfinder/water_regions.cpp # src/saveload/saveload.cpp # src/saveload/saveload.h # src/table/build_industry.h # src/table/engines.h # src/vehicle.cpp # src/vehicle_cmd.cpp # src/vehicle_gui.cpp
This commit is contained in:
@@ -110,7 +110,11 @@ struct Town : TownPool::PoolItem<&_town_pool> {
|
||||
|
||||
std::string text; ///< General text with additional information.
|
||||
|
||||
inline byte GetPercentTransported(CargoID cid) const { return this->supplied[cid].old_act * 256 / (this->supplied[cid].old_max + 1); }
|
||||
inline byte GetPercentTransported(CargoID cid) const
|
||||
{
|
||||
if (!IsValidCargoID(cid)) return 0;
|
||||
return this->supplied[cid].old_act * 256 / (this->supplied[cid].old_max + 1);
|
||||
}
|
||||
|
||||
StationList stations_near; ///< NOSAVE: List of nearby stations.
|
||||
|
||||
|
Reference in New Issue
Block a user