yexo
6a272233b3
(svn r23160) -Fix: wrong comments in a lot of TileTypeProcs definitions
13 years ago
frosch
ebf19d6219
(svn r23147) -Change: [NewGRF v8] Unify the return values of boolean callbacks, and check the results for validity.
13 years ago
frosch
30874b5e81
(svn r23147) -Change: [NewGRF v8] Unify the return values of boolean callbacks, and check the results for validity.
13 years ago
frosch
6365d92776
(svn r23142) -Change: [NewGRF v8] Unify the return values of callbacks returning D0xx texts.
13 years ago
frosch
d8f8909f85
(svn r23142) -Change: [NewGRF v8] Unify the return values of callbacks returning D0xx texts.
13 years ago
rubidium
0e2d2b2317
(svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z related variables
13 years ago
rubidium
2a2c102b0b
(svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z related variables
13 years ago
rubidium
fb9fb416a1
(svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type functions use int z as well
13 years ago
rubidium
459c9523e8
(svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type functions use int z as well
13 years ago
rubidium
70faeeaba9
(svn r23106) -Codechange: pass int* to GetTileSlope and friends
13 years ago
rubidium
19eabdba2c
(svn r23106) -Codechange: pass int* to GetTileSlope and friends
13 years ago
rubidium
25b3869c3b
(svn r23101) -Codechange: remove pointless multiplications by TILE_HEIGHT from the station/object building code
13 years ago
rubidium
a8c4efcff4
(svn r23101) -Codechange: remove pointless multiplications by TILE_HEIGHT from the station/object building code
13 years ago
rubidium
5d7acba5d3
(svn r23100) -Codechange: remove pointless multiplications by TILE_HEIGHT for the terraform code
13 years ago
rubidium
1dc685aeea
(svn r23100) -Codechange: remove pointless multiplications by TILE_HEIGHT for the terraform code
13 years ago
rubidium
a70fdbcf2f
(svn r23096) -Codechange: remove useless divisions and multiplications by TILE_HEIGHT for the snow line code
13 years ago
rubidium
69162621d8
(svn r23096) -Codechange: remove useless divisions and multiplications by TILE_HEIGHT for the snow line code
13 years ago
rubidium
f7297d5c3a
(svn r23094) -Codechange: add a default NULL to GetFoundationSlope and use it
13 years ago
rubidium
ecbc56a677
(svn r23094) -Codechange: add a default NULL to GetFoundationSlope and use it
13 years ago
rubidium
bcb93b3b75
(svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and use it
13 years ago
rubidium
2ed0f93bfb
(svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and use it
13 years ago
rubidium
de980ef0f9
(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight)
13 years ago
rubidium
7757a2ed40
(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight)
13 years ago
rubidium
c465c79f09
(svn r23082) -Fix: account for snow line table when determining the snow line for building houses
13 years ago
rubidium
07cb2fd9a8
(svn r23082) -Fix: account for snow line table when determining the snow line for building houses
13 years ago
yexo
72500ddedf
(svn r22920) -Cleanup: replace two very old town variables taht were rarely used by small functions that compute there value on-the-fly when necessary
13 years ago
yexo
40d5419cd2
(svn r22920) -Cleanup: replace two very old town variables taht were rarely used by small functions that compute there value on-the-fly when necessary
13 years ago
terkhen
3b4976dbb2
(svn r22899) -Add: Allow towns to build bridges over canals and rivers.
13 years ago
terkhen
b0439aff59
(svn r22899) -Add: Allow towns to build bridges over canals and rivers.
13 years ago
michi_cc
6ea9fc644c
(svn r22810) -Fix: Growth a town on both ends of a tunnel/bridge if the town centre tile is a bridge ramp/tunnel portal.
13 years ago
michi_cc
9c73f15cde
(svn r22810) -Fix: Growth a town on both ends of a tunnel/bridge if the town centre tile is a bridge ramp/tunnel portal.
13 years ago
rubidium
440b6221d1
(svn r22809) -Fix [FS#4731]: towns expanding from the "wrong" side of a tunnel or bridge
13 years ago
rubidium
4c030468e1
(svn r22809) -Fix [FS#4731]: towns expanding from the "wrong" side of a tunnel or bridge
13 years ago
frosch
5fbd3eba42
(svn r22706) -Cleanup: A loop is no loop, if it never iterates.
13 years ago
frosch
ae8f53a403
(svn r22706) -Cleanup: A loop is no loop, if it never iterates.
13 years ago
rubidium
47836bb412
(svn r22697) -Fix [FS#4694-ish]: when building a house it could be built at the wrong place if multitile houses failed some tests
13 years ago
rubidium
059d43fca8
(svn r22697) -Fix [FS#4694-ish]: when building a house it could be built at the wrong place if multitile houses failed some tests
13 years ago
terkhen
e8a8b6dae5
(svn r22569) -Feature: [NewGRF] Persistent storage for towns.
14 years ago
terkhen
a619ad3789
(svn r22569) -Feature: [NewGRF] Persistent storage for towns.
14 years ago
frosch
62b6d0eb0e
(svn r22482) -Codechange: Add some contants for the number of ticks between certain cyclical tasks.
14 years ago
frosch
474b4799e8
(svn r22482) -Codechange: Add some contants for the number of ticks between certain cyclical tasks.
14 years ago
alberth
a70556dac2
(svn r22459) -Doc: Typo fixes and doxygen markup improvements.
14 years ago
alberth
28092366ec
(svn r22459) -Doc: Typo fixes and doxygen markup improvements.
14 years ago
smatz
c85e1c3089
(svn r22116) -Codechange: use PoolBase::Clean() at more places
14 years ago
smatz
756cc6cf65
(svn r22116) -Codechange: use PoolBase::Clean() at more places
14 years ago
terkhen
98a9c1f91c
(svn r22087) -Fix: When deleting towns, only relocate objects during DC_EXEC.
14 years ago
terkhen
c36a22ba72
(svn r22087) -Fix: When deleting towns, only relocate objects during DC_EXEC.
14 years ago
rubidium
aa333aeff2
(svn r22066) -Fix [FS#4502]: building a statue did not check whether the object pool is full
14 years ago
rubidium
ece59dc0d1
(svn r22066) -Fix [FS#4502]: building a statue did not check whether the object pool is full
14 years ago
rubidium
b778cc61d1
(svn r22065) -Fix [FS#4500]: pool allocation checks triggered when towns could not be built
14 years ago
rubidium
2d4d43d00c
(svn r22065) -Fix [FS#4500]: pool allocation checks triggered when towns could not be built
14 years ago
rubidium
cb2c7f871f
(svn r22018) -Cleanup: remove some (now) unneeded includes of functions.h
14 years ago
rubidium
bc3ce1e53b
(svn r22018) -Cleanup: remove some (now) unneeded includes of functions.h
14 years ago
terkhen
67ce7c5c41
(svn r21974) -Feature: Add a setting to enable/disable funding local road reconstruction.
14 years ago
terkhen
a4b08dddd1
(svn r21974) -Feature: Add a setting to enable/disable funding local road reconstruction.
14 years ago
rubidium
ec4f688ca0
(svn r21845) -Codechange: move documentation towards the code to make it more likely to be updates [d-m].
14 years ago
rubidium
7efd7e19ed
(svn r21845) -Codechange: move documentation towards the code to make it more likely to be updates [d-m].
14 years ago
yexo
c5597c44c4
(svn r21664) -Add: [NoAI] AIEventTownFounded
14 years ago
yexo
703ff560c1
(svn r21664) -Add: [NoAI] AIEventTownFounded
14 years ago
rubidium
eafc316342
(svn r21414) -Codechange: limit town name by amount of characters, not bytes
14 years ago
rubidium
5c9c3f1acf
(svn r21414) -Codechange: limit town name by amount of characters, not bytes
14 years ago
rubidium
dd618051a7
(svn r21412) -Codechange: limit company name by amount of characters, not bytes
14 years ago
rubidium
cf61c2f11f
(svn r21412) -Codechange: limit company name by amount of characters, not bytes
14 years ago
frosch
0ebd5af86f
(svn r21291) -Fix: Treat objects on water like water in more cases.
14 years ago
frosch
55d604e60d
(svn r21291) -Fix: Treat objects on water like water in more cases.
14 years ago
terkhen
ef588232c9
(svn r21191) -Doc: Add missing information for a parameter of CmdFoundTown.
14 years ago
terkhen
1fe2ce42ca
(svn r21191) -Doc: Add missing information for a parameter of CmdFoundTown.
14 years ago
alberth
b698045b82
(svn r21156) -Codechange: Introduce EconomyIsInRecession().
14 years ago
alberth
43f807a918
(svn r21156) -Codechange: Introduce EconomyIsInRecession().
14 years ago
yexo
30b29ae060
(svn r21052) -Fix (r20435): house/airporttile/industrytile newgrfs that defined tiles that relied on the substitute being drawn were broken
14 years ago
yexo
9a07ebc382
(svn r21052) -Fix (r20435): house/airporttile/industrytile newgrfs that defined tiles that relied on the substitute being drawn were broken
14 years ago
smatz
548a3747e9
(svn r20860) -Cleanup: remove some unused functions and variables
14 years ago
smatz
77fe95f552
(svn r20860) -Cleanup: remove some unused functions and variables
14 years ago
frosch
98cd443735
(svn r20802) -Fix: Building bridges on water/watery objects behaved inconsistently for towns and the bridge selection GUI.
14 years ago
frosch
3fb7f5aa87
(svn r20802) -Fix: Building bridges on water/watery objects behaved inconsistently for towns and the bridge selection GUI.
14 years ago
frosch
f3015ee820
(svn r20791) -Fix (r12161): Building 2x2 houses did not work for 2x2 road layouts on all map sizes.
14 years ago
frosch
f0783d7e72
(svn r20791) -Fix (r12161): Building 2x2 houses did not work for 2x2 road layouts on all map sizes.
14 years ago
frosch
f768485e1d
(svn r20790) -Fix (r0)[FS#4118]: Remove a check which is wrong for NewGrf houses and serves no use for original houses.
14 years ago
frosch
b249046364
(svn r20790) -Fix (r0)[FS#4118]: Remove a check which is wrong for NewGrf houses and serves no use for original houses.
14 years ago
terkhen
e55b006a86
(svn r20711) -Fix [FS#4094]: Do not use new game settings when creating many random towns at the scenario editor.
14 years ago
terkhen
efef4becbd
(svn r20711) -Fix [FS#4094]: Do not use new game settings when creating many random towns at the scenario editor.
14 years ago
terkhen
fa47477d0d
(svn r20710) -Codechange: Clarify the name of some town generation variables.
14 years ago
terkhen
c6db763781
(svn r20710) -Codechange: Clarify the name of some town generation variables.
14 years ago
rubidium
360d6daf34
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
rubidium
7107eef4de
(svn r20627) -Codechange: unify the animation code of station, airport, house and industry tiles
14 years ago
rubidium
ddf1510a23
(svn r20627) -Codechange: unify the animation code of station, airport, house and industry tiles
14 years ago
smatz
ca2d4c5d6e
(svn r20540) -Fix [FS#4049](r20480): use CmdDeleteTown instead of direct use of operator delete
14 years ago
smatz
d28985fe8e
(svn r20540) -Fix [FS#4049](r20480): use CmdDeleteTown instead of direct use of operator delete
14 years ago
rubidium
f336f61104
(svn r20482) -Codechange: move some object related information off the map and unify the relation objects have to towns
14 years ago
rubidium
89b2b9370a
(svn r20482) -Codechange: move some object related information off the map and unify the relation objects have to towns
14 years ago
rubidium
0fd9d4ba1d
(svn r20481) -Fix: statues were not removed when towns would be removed
14 years ago
rubidium
c5ec910980
(svn r20481) -Fix: statues were not removed when towns would be removed
14 years ago
rubidium
cf8062c3bd
(svn r20480) -Codechange: make CmdDeleteTown responsible for actually clearing tiles and such; ~Town still checks it though.
14 years ago
rubidium
a7beb897e2
(svn r20480) -Codechange: make CmdDeleteTown responsible for actually clearing tiles and such; ~Town still checks it though.
14 years ago
rubidium
662900c113
(svn r20473) -Codechange: pass Town instead of TownID to BuildObject
14 years ago
rubidium
089fc97387
(svn r20473) -Codechange: pass Town instead of TownID to BuildObject
14 years ago
frosch
399818e96f
(svn r20469) -Fix (r20227): Building statues used different companys for CMD_LANDSCAPE_CLEAR during testrun and DC_EXEC.
14 years ago
frosch
b8c401f644
(svn r20469) -Fix (r20227): Building statues used different companys for CMD_LANDSCAPE_CLEAR during testrun and DC_EXEC.
14 years ago
rubidium
1f2276b785
(svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable.
14 years ago
rubidium
3da3d131c6
(svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable.
14 years ago
rubidium
92767f454e
(svn r20409) -Codechange: reduce the number of includes needed by newgrf.h
14 years ago
rubidium
412bb37f59
(svn r20409) -Codechange: reduce the number of includes needed by newgrf.h
14 years ago
rubidium
da8c058b89
(svn r20401) -Codechange: let HouseSpec use GRFFileProps
14 years ago
rubidium
6d6939f844
(svn r20401) -Codechange: let HouseSpec use GRFFileProps
14 years ago
rubidium
d7921b24e6
(svn r20337) -Codechange: unify the construction of objects on the map
14 years ago
rubidium
3bfe26c69d
(svn r20337) -Codechange: unify the construction of objects on the map
14 years ago
terkhen
ec6cba6b92
(svn r20323) -Codechange: Move Delete town code to a command.
14 years ago
terkhen
7a6df202d0
(svn r20323) -Codechange: Move Delete town code to a command.
14 years ago
terkhen
014771848d
(svn r20322) -Codechange: Move Expand town code to a command.
14 years ago
terkhen
ca0751adb8
(svn r20322) -Codechange: Move Expand town code to a command.
14 years ago
alberth
91eba89331
(svn r20320) -Doc: Small Doxygen and normal comment fixes, and an missed addition.
14 years ago
alberth
0e900039f3
(svn r20320) -Doc: Small Doxygen and normal comment fixes, and an missed addition.
14 years ago
frosch
c18839704b
(svn r20286) -Codechange: Unify end of doxygen comments.
14 years ago
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
14 years ago
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
alberth
e5b703ddf9
(svn r20279) -Doc: Doxygen additions/improvements.
14 years ago
alberth
dc6ed2c2c0
(svn r20279) -Doc: Doxygen additions/improvements.
14 years ago
alberth
1743c86610
(svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements.
14 years ago
alberth
a825b4fa5f
(svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements.
14 years ago
terkhen
a6c7630e82
(svn r20227) -Fix [FS#3985]: Don't spend cash when building a statue fails.
14 years ago
terkhen
4f9b49653b
(svn r20227) -Fix [FS#3985]: Don't spend cash when building a statue fails.
14 years ago
alberth
137e2b64c9
(svn r20211) -Codechange: Indented code should have curly braces around it.
14 years ago
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
14 years ago
rubidium
9fd2afb147
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
14 years ago
rubidium
b8487afe54
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
14 years ago
michi_cc
a8c6eaeb4a
(svn r20048) -Feature: Add a setting to forbid towns building level crossings.
14 years ago
michi_cc
a75583bbb6
(svn r20048) -Feature: Add a setting to forbid towns building level crossings.
14 years ago
michi_cc
9745b96dcf
(svn r20047) -Fix (rUnknown): Towns were not able to build level crossings when using original or better town layout.
14 years ago
michi_cc
ffdbb7ec81
(svn r20047) -Fix (rUnknown): Towns were not able to build level crossings when using original or better town layout.
14 years ago
frosch
a5bea603ea
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
15 years ago
frosch
1d3adb2b66
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
15 years ago
frosch
ee53807e51
(svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration.
15 years ago
frosch
9db3cde73a
(svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration.
15 years ago
frosch
bca1abe146
(svn r19744) -Add [FS#3477]: [NewGRF] Access to random bits of houses and industries from construction callbacks 17, 28 and 2F. That is: The randombits the house/industry will start with, if construction succeeds.
15 years ago
frosch
910aade284
(svn r19744) -Add [FS#3477]: [NewGRF] Access to random bits of houses and industries from construction callbacks 17, 28 and 2F. That is: The randombits the house/industry will start with, if construction succeeds.
15 years ago
frosch
dc1a95a9fd
(svn r19743) -Fix: NewGrfs could access map bits of not yet constructed industries and houses during construction callbacks.
15 years ago
frosch
7795303227
(svn r19743) -Fix: NewGrfs could access map bits of not yet constructed industries and houses during construction callbacks.
15 years ago
rubidium
cb92cdf975
(svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables
15 years ago
rubidium
f56ebd81c3
(svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables
15 years ago
frosch
ed80045221
(svn r19654) -Codechange: Use Extract<> in more places.
15 years ago
frosch
75d4bc947d
(svn r19654) -Codechange: Use Extract<> in more places.
15 years ago
smatz
258b128a56
(svn r19614) -Codechange: "it's" => "its" where appropriate
15 years ago
smatz
0ef33548c2
(svn r19614) -Codechange: "it's" => "its" where appropriate
15 years ago
alberth
68ee4aa7d6
(svn r19482) -Doc: Doxygen additions/updates.
15 years ago
alberth
073f627930
(svn r19482) -Doc: Doxygen additions/updates.
15 years ago
alberth
a7619c7fb3
(svn r19479) -Codechange: Test range of town size and layout instead of against the current last value.
15 years ago
alberth
7ef97932d9
(svn r19479) -Codechange: Test range of town size and layout instead of against the current last value.
15 years ago
alberth
b0f3fff54b
(svn r19478) -Codechange: Resolve TS_ prefix clash between TileSource and TownSize enums.
15 years ago
alberth
e89f154c0d
(svn r19478) -Codechange: Resolve TS_ prefix clash between TileSource and TownSize enums.
15 years ago
alberth
ae5b11321b
(svn r19400) -Codechange: CheckforTownRating returns a CommandCost.
15 years ago
alberth
6b6ff9c52b
(svn r19400) -Codechange: CheckforTownRating returns a CommandCost.
15 years ago
yexo
23af928ce9
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
15 years ago
yexo
404df87b1f
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
15 years ago
alberth
87c09ddcc0
(svn r19279) -Codechange: CheckIfAuthorityAllowsNewStation() returns CommandCost.
15 years ago
alberth
566f87b2de
(svn r19279) -Codechange: CheckIfAuthorityAllowsNewStation() returns CommandCost.
15 years ago
alberth
01562e2dfc
(svn r19272) -Doc: successfull -> successful.
15 years ago
alberth
2ac558494c
(svn r19272) -Doc: successfull -> successful.
15 years ago
smatz
5504b1105e
(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
15 years ago
smatz
f051066bc4
(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
15 years ago
rubidium
f618acfb7d
(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions
15 years ago
rubidium
4d93b704d9
(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions
15 years ago
rubidium
9467b7c6d6
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
e202a26990
(svn r18715) -Codechange: make StationFinder a subclass of TileArea
15 years ago
rubidium
31b325baaf
(svn r18715) -Codechange: make StationFinder a subclass of TileArea
15 years ago
rubidium
0bff19e869
(svn r18567) -Fix [FS#2613]: [NewGRF] House property 15 did not work
15 years ago
rubidium
ee3a44e74f
(svn r18567) -Fix [FS#2613]: [NewGRF] House property 15 did not work
15 years ago
smatz
e0a28e8c54
(svn r18550) -Fix (r18281): show expected price of town construction even when the company doesn't have enough money
15 years ago
smatz
a62f16c86d
(svn r18550) -Fix (r18281): show expected price of town construction even when the company doesn't have enough money
15 years ago
rubidium
d66fe90ad0
(svn r18415) -Fix [FS#3332]: on slopes the original and better road layouts did not check their minimum distance requirements
15 years ago
rubidium
a68849fb56
(svn r18415) -Fix [FS#3332]: on slopes the original and better road layouts did not check their minimum distance requirements
15 years ago
smatz
73136f78b3
(svn r18302) -Fix [FS#3328](r18281): city size multiplier was ignored when generating new game
15 years ago
smatz
421a24001c
(svn r18302) -Fix [FS#3328](r18281): city size multiplier was ignored when generating new game
15 years ago
frosch
13a72bb345
(svn r18283) -Feature: [NewGRF] Add new price bases for removing industries, building/removing unmovables (new objects), building/removing rail-waypoints/buoys, interacting with town-authority, building foundations, funding primary industries (when not prospecting) and towns.
...
If a GRF does not set price multipliers for these new prices, but for the previously used ones, the old modifiers will be propagated to the new bases.
15 years ago
frosch
830231e2bd
(svn r18283) -Feature: [NewGRF] Add new price bases for removing industries, building/removing unmovables (new objects), building/removing rail-waypoints/buoys, interacting with town-authority, building foundations, funding primary industries (when not prospecting) and towns.
...
If a GRF does not set price multipliers for these new prices, but for the previously used ones, the old modifiers will be propagated to the new bases.
15 years ago
smatz
f7466979b9
(svn r18281) -Feature: founding towns in-game (based on work by Belugas, TheJosh, GeekToo, Terkhen and others)
15 years ago
smatz
f0c64208cf
(svn r18281) -Feature: founding towns in-game (based on work by Belugas, TheJosh, GeekToo, Terkhen and others)
15 years ago
smatz
2c63d0d323
(svn r18110) -Codechange [FS#3316]: search for stations nearby only once per producer (instead of once pre produced cargo type) (fonsinchen)
15 years ago
smatz
47660b984b
(svn r18110) -Codechange [FS#3316]: search for stations nearby only once per producer (instead of once pre produced cargo type) (fonsinchen)
15 years ago
rubidium
b2d7edddfa
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
15 years ago
rubidium
c2221885f4
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
15 years ago
frosch
040404c5d3
(svn r18005) -Codechange: Convert the Prices struct into an array and an enum.
15 years ago
frosch
ba1fc280e3
(svn r18005) -Codechange: Convert the Prices struct into an array and an enum.
15 years ago
alberth
5a97b64d73
(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
...
Gentlemen, swap your string parameters.
15 years ago
alberth
44aacfc59f
(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
...
Gentlemen, swap your string parameters.
15 years ago
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
smatz
29dc97afb6
(svn r17615) -Fix (r17612): town sign could be glitchy when creating town with custom name (Terkhen)
15 years ago
smatz
8f45efa8dd
(svn r17615) -Fix (r17612): town sign could be glitchy when creating town with custom name (Terkhen)
15 years ago
smatz
e5204575bb
(svn r17614) -Fix: crash when deleting town while TownDirectory is open
15 years ago
smatz
de96f4d309
(svn r17614) -Fix: crash when deleting town while TownDirectory is open
15 years ago
smatz
ad2c641bca
(svn r17612) -Feature: possibility to choose (randomise or enter custom) town name before its creation (original patch by Terkhen)
15 years ago
smatz
1da745c9ad
(svn r17612) -Feature: possibility to choose (randomise or enter custom) town name before its creation (original patch by Terkhen)
15 years ago
smatz
499b6df23b
(svn r17611) -Fix: buffers used for verifying company and president name length were too short, possibly causing false positives
15 years ago
smatz
665864e5b0
(svn r17611) -Fix: buffers used for verifying company and president name length were too short, possibly causing false positives
15 years ago
smatz
a2f43040af
(svn r17608) -Codechange: use CmdFoundTown when founding 'Random town' too
15 years ago
smatz
93d275f1be
(svn r17608) -Codechange: use CmdFoundTown when founding 'Random town' too
15 years ago
smatz
13437a998e
(svn r17603) -Codechange: since now, towns are 'founded' instead of 'built'
15 years ago
smatz
15511678e3
(svn r17603) -Codechange: since now, towns are 'founded' instead of 'built'
15 years ago
smatz
c3a80f1518
(svn r17589) -Codechange: rename town_acc to always_accepted
15 years ago
smatz
9225b3ba03
(svn r17589) -Codechange: rename town_acc to always_accepted
15 years ago
alberth
ba5e072881
(svn r17582) -Codechange: Move TownActions and _town_action_costs[] to a header file to allow sharing.
15 years ago
alberth
17a52eb852
(svn r17582) -Codechange: Move TownActions and _town_action_costs[] to a header file to allow sharing.
15 years ago
rubidium
2e5596025c
(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary
15 years ago
rubidium
ca91a97826
(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary
15 years ago
rubidium
310465da07
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
rubidium
06e490fadc
(svn r17567) -Fix: some doxygen warnings
15 years ago
rubidium
04d5b67eb6
(svn r17567) -Fix: some doxygen warnings
15 years ago
rubidium
0c2f375230
(svn r17558) -Feature [NewGRF]: callbacks for houses to disable drawing foundations and to disable slope changes, like industry tile callbacks 30 and 3C.
15 years ago
rubidium
430ce19418
(svn r17558) -Feature [NewGRF]: callbacks for houses to disable drawing foundations and to disable slope changes, like industry tile callbacks 30 and 3C.
15 years ago
frosch
0e36260337
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
rubidium
10c3af4642
(svn r17493) -Codechange: store the depot index on the map
15 years ago
rubidium
55ddce8da2
(svn r17493) -Codechange: store the depot index on the map
15 years ago
rubidium
33e1a11aa9
(svn r17444) -Fix [FS#3173]: when building roads isn't allowed for town, then don't build the initial piece either
15 years ago
rubidium
1474be7ea7
(svn r17444) -Fix [FS#3173]: when building roads isn't allowed for town, then don't build the initial piece either
15 years ago
smatz
5d622fd840
(svn r17439) -Fix (r17436): you weren't paid for cargo delivered to houses and headquarters anymore
15 years ago
smatz
22e9d59559
(svn r17439) -Fix (r17436): you weren't paid for cargo delivered to houses and headquarters anymore
15 years ago
rubidium
1cfc262fb0
(svn r17268) -Fix [FS#3143]: Station/Town window titles weren't updated when they got renamed
15 years ago
rubidium
c539b59da3
(svn r17268) -Fix [FS#3143]: Station/Town window titles weren't updated when they got renamed
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
smatz
0502a6df42
(svn r17113) -Change [FS#265][FS#2094][FS#2589]: apply the subsidy when 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
15 years ago
smatz
2a430d981f
(svn r17113) -Change [FS#265][FS#2094][FS#2589]: apply the subsidy when 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
15 years ago
smatz
738d7fde53
(svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed
15 years ago
smatz
74d3382b94
(svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed
15 years ago
rubidium
d61be2637e
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
rubidium
1fe3ad3288
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
belugas
96f9567fbb
(svn r16978) -Fix(r16977): tab indentation instead of space indentation at beginning of a line, please
15 years ago
belugas
bc1e027d16
(svn r16978) -Fix(r16977): tab indentation instead of space indentation at beginning of a line, please
15 years ago
belugas
e83102f78b
(svn r16977) -Fix(r1772)[FS#3059]: make it so that failing to generate many random towns in scenario editor returns a failing message.
...
Fix by therken
Doxygen comments by me
15 years ago
belugas
482732c08a
(svn r16977) -Fix(r1772)[FS#3059]: make it so that failing to generate many random towns in scenario editor returns a failing message.
...
Fix by therken
Doxygen comments by me
15 years ago
rubidium
6435dc89fe
(svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h
15 years ago
rubidium
cb0409fe52
(svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h
15 years ago
rubidium
39e6dbd5e3
(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
15 years ago
rubidium
e3053660c6
(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
15 years ago
rubidium
b4f5a1eebb
(svn r16868) -Codechange: unify UpdateAll[Station|Waypoint]VirtCoords
15 years ago
rubidium
8c17c6cb2b
(svn r16868) -Codechange: unify UpdateAll[Station|Waypoint]VirtCoords
15 years ago
smatz
8718babe90
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
15 years ago
smatz
1f29e38b83
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
15 years ago
rubidium
e39646d93b
(svn r16841) -Cleanup: spaces/tabs where they don't belong
15 years ago
rubidium
fd589b90e8
(svn r16841) -Cleanup: spaces/tabs where they don't belong
15 years ago
rubidium
873adde908
(svn r16825) -Codechange: unify dirtying when updating the viewport signs.
15 years ago
rubidium
2b1c43f81f
(svn r16825) -Codechange: unify dirtying when updating the viewport signs.
15 years ago
rubidium
79deeee323
(svn r16821) -Codechange: unify the naming of type::UpdateVirtCoord and UpdateAll[Type]VirtCoords.
15 years ago
rubidium
e067d4a4b8
(svn r16821) -Codechange: unify the naming of type::UpdateVirtCoord and UpdateAll[Type]VirtCoords.
15 years ago
rubidium
8cad64558f
(svn r16795) -Fix [FS#3025]: houses wouldn't get build on the map edge.
15 years ago
rubidium
b5b743bcba
(svn r16795) -Fix [FS#3025]: houses wouldn't get build on the map edge.
15 years ago
rubidium
bb78e5bb14
(svn r16764) -Codechange: unify the way viewport signs are marked dirty
15 years ago
rubidium
8275a98e1f
(svn r16764) -Codechange: unify the way viewport signs are marked dirty
15 years ago
rubidium
4989b4afb9
(svn r16761) -Codechange: make UpdateViewportSignPos(ition) a class function of ViewportSign
15 years ago
rubidium
3086383cdc
(svn r16761) -Codechange: make UpdateViewportSignPos(ition) a class function of ViewportSign
15 years ago
smatz
8786ebbad7
(svn r16746) -Codechange: use Town::PostDestructor() instead of not very clean construct for invalidating nearest town for road tiles
15 years ago
smatz
59f94619c7
(svn r16746) -Codechange: use Town::PostDestructor() instead of not very clean construct for invalidating nearest town for road tiles
15 years ago
smatz
93557ba4e9
(svn r16714) -Codechange: use pool-like accessors for Subsidy
15 years ago
smatz
76a50ce94d
(svn r16714) -Codechange: use pool-like accessors for Subsidy
15 years ago
frosch
523cde0798
(svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays.
15 years ago
frosch
a288e4d82f
(svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays.
15 years ago
frosch
4c3f480f92
(svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its instances to more meaningful names.
15 years ago
frosch
812ad41f23
(svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its instances to more meaningful names.
15 years ago
smatz
837b3628d9
(svn r16673) -Codechange: rename GetProducedCargo() to AddProducedCargo() and change its behaviour accordingly
15 years ago
smatz
50b5678e26
(svn r16673) -Codechange: rename GetProducedCargo() to AddProducedCargo() and change its behaviour accordingly
15 years ago
smatz
873a205ae6
(svn r16667) -Codechange: replace GetRandomTown() and GetRandomIndustry() by Town::GetRandom() and Industry::GetRandom()
15 years ago
smatz
ff33ed94ce
(svn r16667) -Codechange: replace GetRandomTown() and GetRandomIndustry() by Town::GetRandom() and Industry::GetRandom()
15 years ago
smatz
0e5af86ead
(svn r16666) -Codechange: replace GetHouseSpecs() by HouseSpec::Get(), hide _house_specs[]
15 years ago
smatz
b668c24d46
(svn r16666) -Codechange: replace GetHouseSpecs() by HouseSpec::Get(), hide _house_specs[]
15 years ago
smatz
7b78bae8e7
(svn r16665) -Codechange: replace GetTownByTile() by Town::GetByTile()
15 years ago
smatz
af78d6a9bb
(svn r16665) -Codechange: replace GetTownByTile() by Town::GetByTile()
15 years ago
smatz
d39c08fd9d
(svn r16664) -Codechange: move house-related stuff from town.h and town_type.h to separate files
15 years ago
smatz
e6a165881c
(svn r16664) -Codechange: move house-related stuff from town.h and town_type.h to separate files
15 years ago
smatz
bd208c30e0
(svn r16660) -Codechange: get rid of more dummy tile_type_procs
15 years ago
smatz
c0ac230e3e
(svn r16660) -Codechange: get rid of more dummy tile_type_procs
15 years ago
smatz
5d301445a2
(svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() and change its behaviour accordingly
...
-Codechange: remove dummy GetAcceptedCargo_*() handlers
15 years ago
smatz
c30a87758f
(svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() and change its behaviour accordingly
...
-Codechange: remove dummy GetAcceptedCargo_*() handlers
15 years ago
smatz
45312433b6
(svn r16632) -Codechange: rename Town::flags12 to Town::flags
16 years ago
smatz
a50ba1b8c1
(svn r16632) -Codechange: rename Town::flags12 to Town::flags
16 years ago
frosch
c9eac207ea
(svn r16498) -Codechange: Remove hardly used HASBITS.
16 years ago
frosch
0d782b0f96
(svn r16498) -Codechange: Remove hardly used HASBITS.
16 years ago
alberth
580e478e4e
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
16 years ago
alberth
bab70a823d
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
16 years ago
frosch
eeb3f75cfe
(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted.
16 years ago
frosch
a4557c7da4
(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted.
16 years ago
smatz
1eb48cdded
(svn r16403) -Codechange: move code related to subsidies to separate file
16 years ago
smatz
b2aed51f8e
(svn r16403) -Codechange: move code related to subsidies to separate file
16 years ago
smatz
d6e203ebe2
(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
16 years ago
smatz
10d1ef5447
(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
16 years ago
smatz
50624d5c0f
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
16 years ago
smatz
62a7948af0
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
16 years ago
smatz
512db5248e
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
16 years ago
smatz
8808f3beea
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
16 years ago
rubidium
c0204dc186
(svn r16329) -Fix: possible desync when removing lots of towns in-game (not that we allow removing towns now, but better not have desync prone code lingering around)
16 years ago
rubidium
f457cff73c
(svn r16329) -Fix: possible desync when removing lots of towns in-game (not that we allow removing towns now, but better not have desync prone code lingering around)
16 years ago
smatz
0c10daa243
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
871107f529
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
smatz
7126bcd0e1
(svn r16308) -Fix: parameter is invalid when it's equal to length of an array (Yexo)
16 years ago
smatz
683a6ca039
(svn r16308) -Fix: parameter is invalid when it's equal to length of an array (Yexo)
16 years ago
smatz
a43f7ad823
(svn r16277) -Codechange: enumerize values and remove unneeded values used for testing town rating
16 years ago
smatz
e1e6687bfd
(svn r16277) -Codechange: enumerize values and remove unneeded values used for testing town rating
16 years ago
frosch
af12760722
(svn r16268) -Fix (r9876): When callback 2E returns an amount of 0, do not transport 1 unit to the station.
16 years ago
frosch
552f10bb09
(svn r16268) -Fix (r9876): When callback 2E returns an amount of 0, do not transport 1 unit to the station.
16 years ago
rubidium
27e87d1adc
(svn r16147) -Feature [FS#2635]: give the town generator a slight tendency to build towns near water by not discarding watery random tiles but by searching for near land (db48x)
16 years ago
rubidium
dec40e5501
(svn r16147) -Feature [FS#2635]: give the town generator a slight tendency to build towns near water by not discarding watery random tiles but by searching for near land (db48x)
16 years ago
rubidium
5c5b357043
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
16 years ago
rubidium
59d45a04d6
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
16 years ago
frosch
d582747919
(svn r16101) -Cleanup (r14591): Remove an assertion to increase performance.
16 years ago
frosch
f0a4bbda6d
(svn r16101) -Cleanup (r14591): Remove an assertion to increase performance.
16 years ago
smatz
d046fea1b9
(svn r15890) -Codechange: unify the way 'can a town be placed here?' checks are done
...
-Change: the requirements for location of 'random' town are now a bit less strict
16 years ago
smatz
a052191aca
(svn r15890) -Codechange: unify the way 'can a town be placed here?' checks are done
...
-Change: the requirements for location of 'random' town are now a bit less strict
16 years ago
smatz
fa0b0a5eb7
(svn r15831) -Fix: make sure house class/ID counters don't overflow
16 years ago
smatz
abff5eacbc
(svn r15831) -Fix: make sure house class/ID counters don't overflow
16 years ago
smatz
f32f1a78f2
(svn r15744) -Fix (r9667): when town generator failed to create requested number of towns, there were too many cities
16 years ago
smatz
f62e71ba8e
(svn r15744) -Fix (r9667): when town generator failed to create requested number of towns, there were too many cities
16 years ago
rubidium
6487883084
(svn r15729) -Fix: silence MSVC warning
16 years ago
rubidium
5648ea3058
(svn r15729) -Fix: silence MSVC warning
16 years ago
smatz
e0fe28fdc9
(svn r15726) -Codechange: unify coding style for const pointers
16 years ago
smatz
8585aa71ed
(svn r15726) -Codechange: unify coding style for const pointers
16 years ago
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
b25a4f8231
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
3a3607862d
(svn r15697) -Fix (r15695): warning about comparing signed vs unsigned.
16 years ago
rubidium
2adbf67968
(svn r15697) -Fix (r15695): warning about comparing signed vs unsigned.
16 years ago
belugas
aa441cd4d7
(svn r15695) -Feature [FS#2672]: Allow the number of towns that will be 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
16 years ago
belugas
f6e4bc765a
(svn r15695) -Feature [FS#2672]: Allow the number of towns that will be 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
16 years ago
rubidium
e27d12d788
(svn r15689) -Fix [FS#2720]: do not crash when the generate map doesn't contain a suitable location for a town.
16 years ago
rubidium
d5a2dc1d0b
(svn r15689) -Fix [FS#2720]: do not crash when the generate map doesn't contain a suitable location for a town.
16 years ago
peter1138
88e641282c
(svn r15662) -Fix (r11795): Don't mark a company as having ratings in a town when querying the cost of a command.
16 years ago
peter1138
0564d52d99
(svn r15662) -Fix (r11795): Don't mark a company as having ratings in a town when querying the cost of a command.
16 years ago
smatz
f5b24edc1e
(svn r15642) -Codechange: use a default parameter value in CalcClosestTownFromTile
16 years ago
smatz
7c8474da13
(svn r15642) -Codechange: use a default parameter value in CalcClosestTownFromTile
16 years ago
yexo
47803bc3a7
(svn r15639) -Change: When you disable "Towns are allowed to build roads", pressing "Expand" in the town window in the scenario editor will no longer build roads.
16 years ago
yexo
3f73152b7f
(svn r15639) -Change: When you disable "Towns are allowed to build roads", pressing "Expand" in the town window in the scenario editor will no longer build roads.
16 years ago
rubidium
56b6d78bf7
(svn r15604) -Fix [FS#2661]: towns would only build houses where the grid would not be, even when they aren't allowed to build roads and the user 'implements' another layout.
16 years ago
rubidium
f1a96c5577
(svn r15604) -Fix [FS#2661]: towns would only build houses where the grid would not be, even when they aren't allowed to build roads and the user 'implements' another layout.
16 years ago
yexo
894d61ca47
(svn r15585) -Codechange: Remove TILE_ASSERT and replace all instances with assert(tile < MapSize()).
16 years ago
yexo
a0c4f1156a
(svn r15585) -Codechange: Remove TILE_ASSERT and replace all instances with assert(tile < MapSize()).
16 years ago
yexo
b8601d903d
(svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers.
16 years ago
yexo
fb7b0536e7
(svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers.
16 years ago
smatz
2f63571203
(svn r15572) -Fix (r13730): theoretical buffer overflow when company with too long name funded a road reconstruction
16 years ago
smatz
13f390be3e
(svn r15572) -Fix (r13730): theoretical buffer overflow when company with too long name funded a road reconstruction
16 years ago
smatz
b8438555df
(svn r15505) -Codechange: pass name of new town as parameter to CMD_BUILD_TOWN
16 years ago
smatz
0878541cf2
(svn r15505) -Codechange: pass name of new town as parameter to CMD_BUILD_TOWN
16 years ago
rubidium
6a4ab97d36
(svn r15454) -Fix [FS#2614]: towns did not know about build_on_slopes in some cases, or made decisions on the 'original' slope instead the slope after applying the foundation..
16 years ago
rubidium
e8dbf62761
(svn r15454) -Fix [FS#2614]: towns did not know about build_on_slopes in some cases, or made decisions on the 'original' slope instead the slope after applying the foundation..
16 years ago
frosch
d5525b8f2d
(svn r15452) -Codechange: Add DC_NO_MODIFY_TOWN_RATING.
16 years ago
frosch
032346cf8a
(svn r15452) -Codechange: Add DC_NO_MODIFY_TOWN_RATING.
16 years ago
frosch
f9feb4a0e6
(svn r15449) -Codechange: Rename DC_NO_TOWN_RATING to DC_NO_TEST_TOWN_RATING as that is what it does.
16 years ago
frosch
3e3a158610
(svn r15449) -Codechange: Rename DC_NO_TOWN_RATING to DC_NO_TEST_TOWN_RATING as that is what it does.
16 years ago
rubidium
5c8cf85613
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
16 years ago
rubidium
d846eef0b6
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
16 years ago
rubidium
4431e82beb
(svn r15397) -Fix [FS#2618]: a town could build a statue under a bridge.
16 years ago
rubidium
e31e514474
(svn r15397) -Fix [FS#2618]: a town could build a statue under a bridge.
16 years ago
frosch
6f9d6ffe80
(svn r15381) -Fix (r11091): When testing for parallel road two tiles away, do not move more than one tile along the road.
16 years ago
frosch
c52680a131
(svn r15381) -Fix (r11091): When testing for parallel road two tiles away, do not move more than one tile along the road.
16 years ago
frosch
78fc8aa93c
(svn r15380) -Fix (r15190)[FS#2603]: Do not use TileY() on negative TileIndexDiffs. But the test was not needed anyway, as those tiles were already tested in previous iterations.
16 years ago
frosch
5a369e1b50
(svn r15380) -Fix (r15190)[FS#2603]: Do not use TileY() on negative TileIndexDiffs. But the test was not needed anyway, as those tiles were already tested in previous iterations.
16 years ago
smatz
f561fa2891
(svn r15352) -Codechange: make the arguments passed around while founding a town a bit more readable
16 years ago
smatz
aa692a99a9
(svn r15352) -Codechange: make the arguments passed around while founding a town a bit more readable
16 years ago
smatz
e80255c4ae
(svn r15342) -Feature: allow changing town layout in the 'Found new town' window
16 years ago
smatz
df2a387fc3
(svn r15342) -Feature: allow changing town layout in the 'Found new town' window
16 years ago
smatz
3a8d57816a
(svn r15340) -Fix [FS#2121]: changing town road layout in-game caused ugly 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
16 years ago
smatz
832e392855
(svn r15340) -Fix [FS#2121]: changing town road layout in-game caused ugly 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
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
Yexo
e3c69b7c4e
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
16 years ago
Yexo
db3ee34b44
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
16 years ago
belugas
9bd7b6bd0c
(svn r15172) -Feature: Allow a grf to customize house name via callback 0x14D, during Tile Inquiry process
16 years ago
belugas
cef4103137
(svn r15172) -Feature: Allow a grf to customize house name via callback 0x14D, during Tile Inquiry process
16 years ago
peter1138
b85389dca5
(svn r15149) -Codechange: GetMaskOfTownActions() is used by a Cmd handler, therefore it does not belong in _gui.
16 years ago
peter1138
481c2164d0
(svn r15149) -Codechange: GetMaskOfTownActions() is used by a Cmd handler, therefore it does not belong in _gui.
16 years ago
truebrain
c2406cd42d
(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
...
NoAI is an API (a framework) to build your own AIs in. See:
http://wiki.openttd.org/wiki/index.php/AI:Main_Page
With many thanks to:
- glx and Rubidium for their syncing, feedback and hard work
- Yexo for his feedback, patches, and AIs which tested the system very deep
- Morloth for his feedback and patches
- TJIP for hosting a challenge which kept NoAI on track
- All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
16 years ago
truebrain
a3dd7506d3
(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
...
NoAI is an API (a framework) to build your own AIs in. See:
http://wiki.openttd.org/wiki/index.php/AI:Main_Page
With many thanks to:
- glx and Rubidium for their syncing, feedback and hard work
- Yexo for his feedback, patches, and AIs which tested the system very deep
- Morloth for his feedback and patches
- TJIP for hosting a challenge which kept NoAI on track
- All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
16 years ago
frosch
b58cdfc294
(svn r14992) -Codechange: Rename 'CheckIfAuthorityAllows' to 'CheckIfAuthorityAllowsNewStation' and unduplicate a tiny bit of code.
16 years ago
frosch
f5cff71284
(svn r14992) -Codechange: Rename 'CheckIfAuthorityAllows' to 'CheckIfAuthorityAllowsNewStation' and unduplicate a tiny bit of code.
16 years ago
smatz
c5db2ea181
(svn r14958) -Codechange [FS#1923]: when checking for unique names, compare only with manually set names
...
There are situations that aren't solvable (because of different language files), so if the user really wants to have duplicated name, allow him to do so. It solves desyncs between server and clients using different languages. It behaves the same in SP and MP, so users won't see the different behaviour as a bug (and even checking in SP could be worked around by the user).
16 years ago
smatz
0cd41d1dc6
(svn r14958) -Codechange [FS#1923]: when checking for unique names, compare only with manually set names
...
There are situations that aren't solvable (because of different language files), so if the user really wants to have duplicated name, allow him to do so. It solves desyncs between server and clients using different languages. It behaves the same in SP and MP, so users won't see the different behaviour as a bug (and even checking in SP could be worked around by the user).
16 years ago
rubidium
d197060137
(svn r14933) -Codechange: check the whether a pool item can be constructed instead of trying to make it and check for NULL.
16 years ago
rubidium
f0b0691bfe
(svn r14933) -Codechange: check the whether a pool item can be constructed instead of trying to make it and check for NULL.
16 years ago
smatz
91233ea596
(svn r14828) -Codechange: move most of save/load-specific code to separate files
16 years ago
smatz
7368c740a6
(svn r14828) -Codechange: move most of save/load-specific code to separate files
16 years ago
rubidium
d44ba26cd7
(svn r14821) -Change [FS#2390]: make the road grids of town match, when all are using the same road layout ofcourse (cirdan)
16 years ago
rubidium
e15231c4a4
(svn r14821) -Change [FS#2390]: make the road grids of town match, when all are using the same road layout ofcourse (cirdan)
16 years ago
smatz
b00e510140
(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints
16 years ago
smatz
254e19da91
(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints
16 years ago
rubidium
d3144b6f04
(svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo)
16 years ago
rubidium
1357b0a4c2
(svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo)
16 years ago
rubidium
e83cca7d13
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
rubidium
87e5a8b52b
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
smatz
bd92143e7b
(svn r14742) -Codechange: use SmallMap in two cases to reduce compilation time and binary size
16 years ago
smatz
2e2086f3f8
(svn r14742) -Codechange: use SmallMap in two cases to reduce compilation time and binary size
16 years ago
rubidium
bf6ec8b19f
(svn r14735) -Codechange: remove a bit of bit-waste in the map array (without changing the map array) and make the CompanyIDs contiguous.
...
-Note: 15 should be enough for now... making it any more means adding more bytes to the map array and thus wasting more bits instead of reducing the bit waste.
16 years ago
rubidium
d1bb5e5f36
(svn r14735) -Codechange: remove a bit of bit-waste in the map array (without changing the map array) and make the CompanyIDs contiguous.
...
-Note: 15 should be enough for now... making it any more means adding more bytes to the map array and thus wasting more bits instead of reducing the bit waste.
16 years ago
frosch
70f2b95bda
(svn r14611) -Fix (r13437)[FS#2421]: Store the age of a house in the map array instead of the construction year.
...
Note: Savegames from r13437 to now are broken and have a age of 255 years for a lot houses.
16 years ago
frosch
3d467cabe5
(svn r14611) -Fix (r13437)[FS#2421]: Store the age of a house in the map array instead of the construction year.
...
Note: Savegames from r13437 to now are broken and have a age of 255 years for a lot houses.
16 years ago
frosch
f61b577652
(svn r14596) -Fix (r14591): Missing 'return'.
16 years ago
frosch
1e991548ac
(svn r14596) -Fix (r14591): Missing 'return'.
16 years ago
smatz
698f05e756
(svn r14591) -Fix [FS#2388](r14528): cached nearest town could be invalid after importing older savegame and during town generation
...
-Codechange: rewrite parts of code responsible for caching index of nearest town
16 years ago