Age | Commit message (Collapse) | Author |
|
if a header require a header make it include that header
|
|
remove some unused variables
|
|
town name before its creation (original patch by Terkhen)
|
|
|
|
header file to allow sharing.
|
|
|
|
subsidy's destination is in station's catchment area and cargo packets originate from subsidy's source
-Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost
-Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
|
|
UpdateAll[Type]VirtCoords.
|
|
clean construct for invalidating nearest town for road tiles
|
|
Town::GetRandom() and Industry::GetRandom()
|
|
|
|
town_type.h to separate files
|
|
|
|
|
|
GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
|
|
time, binary size and run time (with asserts disabled) should be improved
|
|
variable instead of var->index
|
|
|
|
with < .. - 1 (both caused due to wrapper functions)
|
|
that we allow removing towns now, but better not have desync prone code lingering around)
|
|
PoolItem::IsValidID(index)
|
|
PoolItem::GetPoolSize()
|
|
|
|
for testing town rating
|
|
define proper additional tiles. (instead of crashing later)
|
|
were incorrect after 0xFF had been reached and could desync clients joining afterwards.
|
|
|
|
generated in the generate world window to be customized.
Some warnings:
-the maximum number of towns to be accepted is set to 5000
-the minimum number of towns to be accepted is set to 1
-the number that is specified is NOT guaranteed to be the exact number of towns generated. The normal mechanism of town creation has not been modified. So town placement can still fail.
-setting a custom number of town will change your difficulty settings to custom as well
|
|
|
|
CalcClosestTownFromTile
|
|
appropriate headers.
|
|
|
|
|
|
|
|
town a bit more readable
|
|
|
|
road networks
-Fix: use a flag instead of TL_NO_ROADS to forbid towns to build roads. The flag is ignored during world generation, so there won't be 'ghost' towns anymore
-Feature: town layout is now stored per town, so it is possible to (manually) set different layout for each town
|
|
therefore it does not belong in _gui.
|
|
'CheckIfAuthorityAllowsNewStation' and unduplicate a tiny bit of code.
|
|
|
|
|
|
depots, industries, towns and waypoints
|
|
constants and use the proper type for a few variables.
|
|
|
|
|
|
|
|
client so it is immediatelly clear which one you are working with.
|
|
named typedefs and replace a few magic numbers.
|
|
is queried for.
|
|
|