Merge remote-tracking branch 'upstream/master'
This commit is contained in:
+5
-1
@@ -116,7 +116,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