rubidium
9f6b8aea49
(svn r26313) -Codechange: use a set for finding unique town names instead of iterating all just created town names (MJP)
2014-02-06 21:06:59 +00:00
rubidium
d05ff6e77b
(svn r26311) -Codechange: use a different method for finding whether there is a nearby town when the map has thousands of towns (MJP)
2014-02-06 21:01:50 +00:00
rubidium
fcb122124b
(svn r26310) -Codechange: clean up some caches during town generation to keep memory usage significantly lower (MJP)
2014-02-06 20:55:49 +00:00
rubidium
30a95966ec
(svn r26308) -Fix-ish: do not try to build more towns/industries than the pool can hold (MJP)
2014-02-06 20:42:09 +00:00
rubidium
c143ca729a
(svn r26104) -Fix: do not attempt to do stuff with an invalid direction, especially using it as index into a table
2013-11-25 13:13:35 +00:00
rubidium
8e27031492
(svn r26051) -Fix: out of bounds access in CmdTownCargoGoal
2013-11-22 21:44:23 +00:00
frosch
9a41aefcc4
(svn r25968) -Add: [Script] ScriptTown::TOWN_GROWTH_NONE to indicate no town growth via ScriptTown::SetGrowthRate and GetGrowthRate.
2013-11-12 17:57:12 +00:00
frosch
cef342d57c
(svn r25931) -Fix [FS#5786-ish]: [NoGo] Preserve the relative town growth progress when changing the town growth rate.
2013-10-30 10:01:49 +00:00
frosch
12b30103b1
(svn r25922) -Codechange: Rename TOWN_IS_FUNDED to TOWN_IS_GROWING. It is not tied to funding a town.
2013-10-28 10:55:34 +00:00
zuu
dfb5663313
(svn r25849) -Codechange: Introduce IsTileFlat to not compute full slope information for situations when we only want to know if a tile is flat or not (cirdan, LordAro)
2013-10-12 22:07:58 +00:00
frosch
6a0439a789
(svn r25838) -Codechange: Rename HOUSE_MAX to NUM_HOUSES.
2013-10-12 16:33:19 +00:00
frosch
35d7e8bca4
(svn r25833) -Codechange: Move ObjectType from map array into pool item.
2013-10-12 16:30:42 +00:00
zuu
ffec9b41e8
(svn r25789) -Fix (r25783): Calling GSTown.FoundTown in world gen caused world gen to terminate and start the game
2013-09-21 15:09:00 +00:00
zuu
67ab3108d6
(svn r25785) -Feature: [Script] Allow AIs and GS to found towns. Allow GS to rename towns
2013-09-19 18:48:05 +00:00
frosch
87fae6ba57
(svn r25140) -Fix [FS#5519]: Towns are build as OWNER_TOWN, so they also need to be removed as OWNER_TOWN.
2013-04-03 20:24:10 +00:00
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
2013-01-08 22:46:42 +00:00
alberth
732e073261
(svn r24776) -Doc: Typo fixes, additions, and additional dots collected from various sources (including Eagle_rainbow, MinchinWeb)
2012-12-01 13:12:39 +00:00
frosch
6c2e201133
(svn r24391) -Change [FS#5229]: Disallow original and better road layouts to build roads under bridges along the bridge direction.
2012-07-09 19:43:22 +00:00
frosch
95d3d6fdef
(svn r24291) -Add: [Script] ScriptEventRoadReconstruction.
2012-05-26 14:16:45 +00:00
frosch
8dc553a039
(svn r24290) -Add: [Script] ScriptEventExclusiveTransportRights.
2012-05-26 14:16:38 +00:00
frosch
ec91dc5ffc
(svn r24287) -Feature [FS#2688]: News item for exclusive transport rights. (based on patch by Grantovich)
2012-05-26 14:16:23 +00:00
frosch
a8c88f43b6
(svn r24284) -Codechange: Remove NewsSubtypes and directly use NewsTypes and NewsFlag instead.
2012-05-26 14:16:03 +00:00
frosch
a0be398da9
(svn r24283) -Codechange: Add AddTileNewsItem function to preemptively deduplicate code.
2012-05-26 14:15:57 +00:00
frosch
477a09d13e
(svn r24205) -Feature [FS#5178-ish]: Show a hint in the supplies tab of station windows, if the station is affected by exclusive transport rights.
2012-05-06 11:38:52 +00:00
frosch
cc1e4ca5ad
(svn r24183) -Fix [FS#5169]: Town radii were not updated immediatelly after construction/destruction of houses, resulting in desyncs.
2012-04-26 21:04:18 +00:00
rubidium
41e5c839e0
(svn r24179) -Codechange: move some variables of Town to TownCache
2012-04-25 20:50:13 +00:00
alberth
0d74c074dd
(svn r24105) -Feature: Be more careful with the population of a small town while placing a statue.
2012-04-08 17:30:20 +00:00
alberth
2911732841
(svn r24104) -Codechange: Output the resulting tile through the user data.
2012-04-08 17:29:00 +00:00
alberth
a01948dbf3
(svn r24103) -Codechange: Handle clear tiles separately from house tiles.
2012-04-08 17:27:47 +00:00
alberth
c876d18320
(svn r24102) -Codechange: Refactor tile clearability test out of the statue callback.
2012-04-08 17:26:59 +00:00
alberth
f607538882
(svn r24101) -Codechange: Reverse a condition for increased readability.
2012-04-08 17:26:01 +00:00
rubidium
c8ce0faca4
(svn r24064) -Fix [FS#5121]: make the full snowedness level of houses the same as roads and rails
2012-03-25 18:19:21 +00:00
frosch
5486e05f65
(svn r23953) -Fix [FS#5062]: When the population of a town changes the town view might even have to change size due to different cargo requirements.
2012-02-15 21:34:58 +00:00
frosch
2458a29fd0
(svn r23819) -Fix [FS#4951]: Removal of towns with 0 population failed during map generation.
2012-01-17 18:46:09 +00:00
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
2012-01-03 21:32:51 +00:00
truebrain
ad48ab9237
(svn r23626) -Add: ScriptTown::SetText, which adds custom text to the Town GUI
2011-12-19 21:00:55 +00:00
truebrain
77b7366c29
(svn r23622) -Add: a set of events to trigger in a GameScript
2011-12-19 20:59:36 +00:00
truebrain
afcf07ac8a
(svn r23620) -Add: ScriptTown::SetCargoGoal and ScriptTown::SetGrowthRate (GameScript only)
2011-12-19 20:59:19 +00:00
truebrain
5ff98b45c1
(svn r23617) -Add: ScriptTown::ExpandTown, to grow a town (GameScript only)
2011-12-19 20:57:51 +00:00
rubidium
3d88c74389
(svn r23526) -Codechange: unify cargos vs cargoes
2011-12-15 21:56:00 +00:00
rubidium
2bf0fc3c5c
(svn r23476) -Codechange: use the error queue to replace switch mode error strings, again making it possible to return multiple errors
2011-12-10 15:16:58 +00:00
rubidium
58423b26d1
(svn r23474) -Codechange: move the declaration error related functions to error.h
2011-12-10 13:54:10 +00:00
terkhen
de0bf0663a
(svn r23407) -Codechange: Keep a bitmap of all cargos accepted by towns.
2011-12-03 22:23:10 +00:00
terkhen
59d8b0204f
(svn r23405) -Codechange: Keep a matrix of cargos accepted by houses for each town (michi_cc).
2011-12-03 22:21:27 +00:00
truebrain
98103121d4
(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
2011-11-29 23:15:35 +00:00
rubidium
04c40aa04d
(svn r23342) -Fix (r23300): for arctic and desert towns you were required to deliver more than 4 billion units, instead of one or more units
2011-11-27 11:42:52 +00:00
truebrain
7ff6daee80
(svn r23323) -Fix: when you fund a town, it should grow; goals reached or not
2011-11-25 11:35:15 +00:00
peter1138
3e1d070413
(svn r23319) -Fix (r23316): Offsets of viewport signs were not scaled up.
2011-11-24 17:37:20 +00:00
truebrain
e30256692f
(svn r23303) -Add: economy.fund_buildings, to disallow funding buildings
2011-11-23 16:10:18 +00:00
truebrain
f906ebd2a5
(svn r23300) -Add: show on the GUI when a town grows and make a general framework to store goals of a town
2011-11-23 16:07:14 +00:00
truebrain
229e572663
(svn r23298) -Add: track statistics of all incoming and outgoing goods. Incoming based on TownEffect, outgoing based on CargoType (based on patch by Terkhen)
2011-11-23 16:05:19 +00:00
michi_cc
6548ec6e9e
(svn r23233) -Codechange: Refactor maximum and actually transported cargo amount of towns into a reusable struct.
2011-11-15 20:47:53 +00:00
rubidium
d4e1efc78b
(svn r23183) -Codechange: merge BRIBE_FAILED and BRIBE_FAILED_2 messages (monoid)
2011-11-10 18:09:09 +00:00
yexo
6a272233b3
(svn r23160) -Fix: wrong comments in a lot of TileTypeProcs definitions
2011-11-08 17:37:32 +00:00
frosch
30874b5e81
(svn r23147) -Change: [NewGRF v8] Unify the return values of boolean callbacks, and check the results for validity.
2011-11-08 17:26:49 +00:00
frosch
d8f8909f85
(svn r23142) -Change: [NewGRF v8] Unify the return values of callbacks returning D0xx texts.
2011-11-08 17:24:43 +00:00
rubidium
2a2c102b0b
(svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z related variables
2011-11-04 11:52:19 +00:00
rubidium
459c9523e8
(svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type functions use int z as well
2011-11-04 11:36:10 +00:00
rubidium
19eabdba2c
(svn r23106) -Codechange: pass int* to GetTileSlope and friends
2011-11-04 11:30:37 +00:00
rubidium
a8c4efcff4
(svn r23101) -Codechange: remove pointless multiplications by TILE_HEIGHT from the station/object building code
2011-11-04 10:31:13 +00:00
rubidium
1dc685aeea
(svn r23100) -Codechange: remove pointless multiplications by TILE_HEIGHT for the terraform code
2011-11-04 10:30:10 +00:00
rubidium
69162621d8
(svn r23096) -Codechange: remove useless divisions and multiplications by TILE_HEIGHT for the snow line code
2011-11-04 10:25:58 +00:00
rubidium
ecbc56a677
(svn r23094) -Codechange: add a default NULL to GetFoundationSlope and use it
2011-11-04 10:23:48 +00:00
rubidium
2ed0f93bfb
(svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and use it
2011-11-04 10:22:27 +00:00
rubidium
7757a2ed40
(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight)
2011-11-04 10:18:13 +00:00
rubidium
07cb2fd9a8
(svn r23082) -Fix: account for snow line table when determining the snow line for building houses
2011-11-02 22:09:07 +00:00
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
2011-09-11 11:47:18 +00:00
terkhen
b0439aff59
(svn r22899) -Add: Allow towns to build bridges over canals and rivers.
2011-09-06 13:32:37 +00:00
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.
2011-08-22 12:41:24 +00:00
rubidium
4c030468e1
(svn r22809) -Fix [FS#4731]: towns expanding from the "wrong" side of a tunnel or bridge
2011-08-22 11:47:15 +00:00
frosch
ae8f53a403
(svn r22706) -Cleanup: A loop is no loop, if it never iterates.
2011-07-31 09:42:05 +00:00
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
2011-07-30 12:17:46 +00:00
terkhen
a619ad3789
(svn r22569) -Feature: [NewGRF] Persistent storage for towns.
2011-06-12 20:50:03 +00:00
frosch
474b4799e8
(svn r22482) -Codechange: Add some contants for the number of ticks between certain cyclical tasks.
2011-05-21 11:26:37 +00:00
alberth
28092366ec
(svn r22459) -Doc: Typo fixes and doxygen markup improvements.
2011-05-14 18:35:40 +00:00
smatz
756cc6cf65
(svn r22116) -Codechange: use PoolBase::Clean() at more places
2011-02-19 23:05:47 +00:00
terkhen
c36a22ba72
(svn r22087) -Fix: When deleting towns, only relocate objects during DC_EXEC.
2011-02-15 13:27:41 +00:00
rubidium
ece59dc0d1
(svn r22066) -Fix [FS#4502]: building a statue did not check whether the object pool is full
2011-02-12 18:45:05 +00:00
rubidium
2d4d43d00c
(svn r22065) -Fix [FS#4500]: pool allocation checks triggered when towns could not be built
2011-02-12 18:41:24 +00:00
rubidium
bc3ce1e53b
(svn r22018) -Cleanup: remove some (now) unneeded includes of functions.h
2011-02-07 22:37:22 +00:00
terkhen
a4b08dddd1
(svn r21974) -Feature: Add a setting to enable/disable funding local road reconstruction.
2011-02-05 13:46:09 +00:00
rubidium
7efd7e19ed
(svn r21845) -Codechange: move documentation towards the code to make it more likely to be updates [d-m].
2011-01-18 22:31:06 +00:00
yexo
703ff560c1
(svn r21664) -Add: [NoAI] AIEventTownFounded
2010-12-29 23:44:39 +00:00
rubidium
5c9c3f1acf
(svn r21414) -Codechange: limit town name by amount of characters, not bytes
2010-12-05 22:25:21 +00:00
rubidium
cf61c2f11f
(svn r21412) -Codechange: limit company name by amount of characters, not bytes
2010-12-05 22:24:50 +00:00
frosch
55d604e60d
(svn r21291) -Fix: Treat objects on water like water in more cases.
2010-11-21 18:39:12 +00:00
terkhen
1fe2ce42ca
(svn r21191) -Doc: Add missing information for a parameter of CmdFoundTown.
2010-11-14 16:13:07 +00:00
alberth
43f807a918
(svn r21156) -Codechange: Introduce EconomyIsInRecession().
2010-11-13 09:45:20 +00:00
yexo
9a07ebc382
(svn r21052) -Fix (r20435): house/airporttile/industrytile newgrfs that defined tiles that relied on the substitute being drawn were broken
2010-10-28 11:10:12 +00:00
smatz
77fe95f552
(svn r20860) -Cleanup: remove some unused functions and variables
2010-10-01 16:42:28 +00:00
frosch
3fb7f5aa87
(svn r20802) -Fix: Building bridges on water/watery objects behaved inconsistently for towns and the bridge selection GUI.
2010-09-13 19:45:39 +00:00
frosch
f0783d7e72
(svn r20791) -Fix (r12161): Building 2x2 houses did not work for 2x2 road layouts on all map sizes.
2010-09-12 19:40:47 +00:00
frosch
b249046364
(svn r20790) -Fix (r0)[FS#4118]: Remove a check which is wrong for NewGrf houses and serves no use for original houses.
2010-09-12 18:28:51 +00:00
terkhen
efef4becbd
(svn r20711) -Fix [FS#4094]: Do not use new game settings when creating many random towns at the scenario editor.
2010-09-01 19:00:32 +00:00
terkhen
c6db763781
(svn r20710) -Codechange: Clarify the name of some town generation variables.
2010-09-01 18:52:27 +00:00
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
2010-08-26 22:01:16 +00:00
rubidium
ddf1510a23
(svn r20627) -Codechange: unify the animation code of station, airport, house and industry tiles
2010-08-26 17:01:17 +00:00
smatz
d28985fe8e
(svn r20540) -Fix [FS#4049](r20480): use CmdDeleteTown instead of direct use of operator delete
2010-08-18 15:22:40 +00:00
rubidium
89b2b9370a
(svn r20482) -Codechange: move some object related information off the map and unify the relation objects have to towns
2010-08-13 12:45:26 +00:00
rubidium
c5ec910980
(svn r20481) -Fix: statues were not removed when towns would be removed
2010-08-13 11:58:45 +00:00
rubidium
a7beb897e2
(svn r20480) -Codechange: make CmdDeleteTown responsible for actually clearing tiles and such; ~Town still checks it though.
2010-08-13 11:57:59 +00:00
rubidium
089fc97387
(svn r20473) -Codechange: pass Town instead of TownID to BuildObject
2010-08-12 19:18:58 +00:00
frosch
b8c401f644
(svn r20469) -Fix (r20227): Building statues used different companys for CMD_LANDSCAPE_CLEAR during testrun and DC_EXEC.
2010-08-12 14:20:02 +00:00
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.
2010-08-08 10:59:30 +00:00
rubidium
412bb37f59
(svn r20409) -Codechange: reduce the number of includes needed by newgrf.h
2010-08-08 09:07:40 +00:00
rubidium
6d6939f844
(svn r20401) -Codechange: let HouseSpec use GRFFileProps
2010-08-07 21:03:38 +00:00
rubidium
3bfe26c69d
(svn r20337) -Codechange: unify the construction of objects on the map
2010-08-03 08:58:12 +00:00
terkhen
7a6df202d0
(svn r20323) -Codechange: Move Delete town code to a command.
2010-08-02 21:07:23 +00:00
terkhen
ca0751adb8
(svn r20322) -Codechange: Move Expand town code to a command.
2010-08-02 21:06:06 +00:00
alberth
0e900039f3
(svn r20320) -Doc: Small Doxygen and normal comment fixes, and an missed addition.
2010-08-02 20:47:27 +00:00
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
2010-08-01 19:44:49 +00:00
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
alberth
dc6ed2c2c0
(svn r20279) -Doc: Doxygen additions/improvements.
2010-08-01 17:45:53 +00:00
alberth
a825b4fa5f
(svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements.
2010-07-31 21:02:56 +00:00
terkhen
4f9b49653b
(svn r20227) -Fix [FS#3985]: Don't spend cash when building a statue fails.
2010-07-27 16:40:16 +00:00
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
2010-07-24 10:14:39 +00:00
rubidium
b8487afe54
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
2010-07-19 17:28:27 +00:00
michi_cc
a75583bbb6
(svn r20048) -Feature: Add a setting to forbid towns building level crossings.
2010-07-02 16:34:07 +00:00
michi_cc
ffdbb7ec81
(svn r20047) -Fix (rUnknown): Towns were not able to build level crossings when using original or better town layout.
2010-07-02 16:34:03 +00:00
frosch
1d3adb2b66
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
2010-06-05 12:16:12 +00:00
frosch
9db3cde73a
(svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration.
2010-05-31 20:22:57 +00:00
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.
2010-05-01 13:09:49 +00:00
frosch
7795303227
(svn r19743) -Fix: NewGrfs could access map bits of not yet constructed industries and houses during construction callbacks.
2010-05-01 13:01:21 +00:00
rubidium
f56ebd81c3
(svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables
2010-04-24 13:39:11 +00:00
frosch
75d4bc947d
(svn r19654) -Codechange: Use Extract<> in more places.
2010-04-17 13:31:41 +00:00
smatz
0ef33548c2
(svn r19614) -Codechange: "it's" => "its" where appropriate
2010-04-12 14:12:47 +00:00
alberth
073f627930
(svn r19482) -Doc: Doxygen additions/updates.
2010-03-20 15:23:26 +00:00
alberth
7ef97932d9
(svn r19479) -Codechange: Test range of town size and layout instead of against the current last value.
2010-03-20 10:59:06 +00:00
alberth
e89f154c0d
(svn r19478) -Codechange: Resolve TS_ prefix clash between TileSource and TownSize enums.
2010-03-20 10:55:08 +00:00
alberth
6b6ff9c52b
(svn r19400) -Codechange: CheckforTownRating returns a CommandCost.
2010-03-13 15:33:07 +00:00
yexo
404df87b1f
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
2010-02-28 20:28:08 +00:00
alberth
566f87b2de
(svn r19279) -Codechange: CheckIfAuthorityAllowsNewStation() returns CommandCost.
2010-02-27 17:42:55 +00:00
alberth
2ac558494c
(svn r19272) -Doc: successfull -> successful.
2010-02-27 12:29:44 +00:00
smatz
f051066bc4
(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
2010-02-24 14:46:15 +00:00
rubidium
4d93b704d9
(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions
2010-01-18 22:57:21 +00:00
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
31b325baaf
(svn r18715) -Codechange: make StationFinder a subclass of TileArea
2010-01-04 18:12:10 +00:00
rubidium
ee3a44e74f
(svn r18567) -Fix [FS#2613]: [NewGRF] House property 15 did not work
2009-12-20 14:53:32 +00:00
smatz
a62f16c86d
(svn r18550) -Fix (r18281): show expected price of town construction even when the company doesn't have enough money
2009-12-19 21:42:19 +00:00
rubidium
a68849fb56
(svn r18415) -Fix [FS#3332]: on slopes the original and better road layouts did not check their minimum distance requirements
2009-12-06 16:14:13 +00:00
smatz
421a24001c
(svn r18302) -Fix [FS#3328](r18281): city size multiplier was ignored when generating new game
2009-11-26 22:04:11 +00:00
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.
2009-11-24 22:15:42 +00:00
smatz
f0c64208cf
(svn r18281) -Feature: founding towns in-game (based on work by Belugas, TheJosh, GeekToo, Terkhen and others)
2009-11-24 21:18:11 +00:00
smatz
47660b984b
(svn r18110) -Codechange [FS#3316]: search for stations nearby only once per producer (instead of once pre produced cargo type) (fonsinchen)
2009-11-15 21:06:13 +00:00
rubidium
c2221885f4
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
2009-11-09 09:59:35 +00:00
frosch
ba1fc280e3
(svn r18005) -Codechange: Convert the Prices struct into an array and an enum.
2009-11-07 22:47:54 +00:00
alberth
44aacfc59f
(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
...
Gentlemen, swap your string parameters.
2009-10-31 19:46:51 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
smatz
8f45efa8dd
(svn r17615) -Fix (r17612): town sign could be glitchy when creating town with custom name (Terkhen)
2009-09-22 18:55:15 +00:00
smatz
de96f4d309
(svn r17614) -Fix: crash when deleting town while TownDirectory is open
2009-09-22 18:50:58 +00:00
smatz
1da745c9ad
(svn r17612) -Feature: possibility to choose (randomise or enter custom) town name before its creation (original patch by Terkhen)
2009-09-22 13:54:54 +00:00
smatz
665864e5b0
(svn r17611) -Fix: buffers used for verifying company and president name length were too short, possibly causing false positives
2009-09-22 12:42:56 +00:00
smatz
93d275f1be
(svn r17608) -Codechange: use CmdFoundTown when founding 'Random town' too
2009-09-21 20:22:56 +00:00
smatz
15511678e3
(svn r17603) -Codechange: since now, towns are 'founded' instead of 'built'
2009-09-21 18:16:00 +00:00
smatz
9225b3ba03
(svn r17589) -Codechange: rename town_acc to always_accepted
2009-09-20 17:44:33 +00:00
alberth
17a52eb852
(svn r17582) -Codechange: Move TownActions and _town_action_costs[] to a header file to allow sharing.
2009-09-20 10:08:10 +00:00
rubidium
ca91a97826
(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary
2009-09-19 15:17:47 +00:00
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
2009-09-19 09:51:14 +00:00
rubidium
04d5b67eb6
(svn r17567) -Fix: some doxygen warnings
2009-09-18 14:23:58 +00:00
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.
2009-09-16 19:10:50 +00:00
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
2009-09-13 19:15:59 +00:00
rubidium
55ddce8da2
(svn r17493) -Codechange: store the depot index on the map
2009-09-10 14:33:07 +00:00
rubidium
1474be7ea7
(svn r17444) -Fix [FS#3173]: when building roads isn't allowed for town, then don't build the initial piece either
2009-09-07 08:36:52 +00:00
smatz
22e9d59559
(svn r17439) -Fix (r17436): you weren't paid for cargo delivered to houses and headquarters anymore
2009-09-07 07:39:08 +00:00
rubidium
c539b59da3
(svn r17268) -Fix [FS#3143]: Station/Town window titles weren't updated when they got renamed
2009-08-22 20:28:30 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
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
2009-08-08 16:42:55 +00:00
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
2009-08-07 22:23:34 +00:00
rubidium
1fe3ad3288
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
2009-08-05 17:59:21 +00:00
belugas
bc1e027d16
(svn r16978) -Fix(r16977): tab indentation instead of space indentation at beginning of a line, please
2009-07-29 12:45:15 +00:00
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
2009-07-29 03:02:13 +00:00
rubidium
cb0409fe52
(svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h
2009-07-22 10:18:19 +00:00
rubidium
e3053660c6
(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
2009-07-20 11:21:57 +00:00
rubidium
8c17c6cb2b
(svn r16868) -Codechange: unify UpdateAll[Station|Waypoint]VirtCoords
2009-07-18 08:41:58 +00:00
smatz
1f29e38b83
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
2009-07-16 19:00:13 +00:00
rubidium
fd589b90e8
(svn r16841) -Cleanup: spaces/tabs where they don't belong
2009-07-16 10:01:32 +00:00
rubidium
2b1c43f81f
(svn r16825) -Codechange: unify dirtying when updating the viewport signs.
2009-07-13 23:15:13 +00:00
rubidium
e067d4a4b8
(svn r16821) -Codechange: unify the naming of type::UpdateVirtCoord and UpdateAll[Type]VirtCoords.
2009-07-13 22:33:25 +00:00
rubidium
b5b743bcba
(svn r16795) -Fix [FS#3025]: houses wouldn't get build on the map edge.
2009-07-12 09:39:30 +00:00
rubidium
8275a98e1f
(svn r16764) -Codechange: unify the way viewport signs are marked dirty
2009-07-08 08:30:35 +00:00
rubidium
3086383cdc
(svn r16761) -Codechange: make UpdateViewportSignPos(ition) a class function of ViewportSign
2009-07-07 16:51:20 +00:00
smatz
59f94619c7
(svn r16746) -Codechange: use Town::PostDestructor() instead of not very clean construct for invalidating nearest town for road tiles
2009-07-05 13:21:51 +00:00
smatz
76a50ce94d
(svn r16714) -Codechange: use pool-like accessors for Subsidy
2009-07-01 18:45:05 +00:00
frosch
a288e4d82f
(svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays.
2009-06-27 21:06:58 +00:00
frosch
812ad41f23
(svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its instances to more meaningful names.
2009-06-27 18:26:50 +00:00
smatz
50b5678e26
(svn r16673) -Codechange: rename GetProducedCargo() to AddProducedCargo() and change its behaviour accordingly
2009-06-27 17:05:20 +00:00
smatz
ff33ed94ce
(svn r16667) -Codechange: replace GetRandomTown() and GetRandomIndustry() by Town::GetRandom() and Industry::GetRandom()
2009-06-26 15:08:54 +00:00
smatz
b668c24d46
(svn r16666) -Codechange: replace GetHouseSpecs() by HouseSpec::Get(), hide _house_specs[]
2009-06-26 14:02:27 +00:00
smatz
af78d6a9bb
(svn r16665) -Codechange: replace GetTownByTile() by Town::GetByTile()
2009-06-26 13:46:23 +00:00
smatz
e6a165881c
(svn r16664) -Codechange: move house-related stuff from town.h and town_type.h to separate files
2009-06-26 13:44:14 +00:00
smatz
c0ac230e3e
(svn r16660) -Codechange: get rid of more dummy tile_type_procs
2009-06-25 20:08:59 +00:00
smatz
c30a87758f
(svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() and change its behaviour accordingly
...
-Codechange: remove dummy GetAcceptedCargo_*() handlers
2009-06-25 19:23:09 +00:00
smatz
a50ba1b8c1
(svn r16632) -Codechange: rename Town::flags12 to Town::flags
2009-06-23 09:52:26 +00:00
frosch
0d782b0f96
(svn r16498) -Codechange: Remove hardly used HASBITS.
2009-06-01 15:01:54 +00:00
alberth
bab70a823d
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
2009-06-01 11:43:36 +00:00
frosch
a4557c7da4
(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted.
2009-05-24 16:52:42 +00:00
smatz
b2aed51f8e
(svn r16403) -Codechange: move code related to subsidies to separate file
2009-05-23 15:46:00 +00:00
smatz
10d1ef5447
(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
2009-05-22 15:23:47 +00:00
smatz
62a7948af0
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
2009-05-22 15:13:50 +00:00
smatz
8808f3beea
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
2009-05-18 16:21:28 +00:00