Commit Graph

450 Commits

Author SHA1 Message Date
truebrain
af1b3cc070 (svn r23355) -Codechange: rename all AI* to Script* (Rubidium) 2011-11-29 23:15:35 +00:00
rubidium
9fe11f3283 (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
2635be0549 (svn r23323) -Fix: when you fund a town, it should grow; goals reached or not 2011-11-25 11:35:15 +00:00
peter1138
0043123c33 (svn r23319) -Fix (r23316): Offsets of viewport signs were not scaled up. 2011-11-24 17:37:20 +00:00
truebrain
08efac8549 (svn r23303) -Add: economy.fund_buildings, to disallow funding buildings 2011-11-23 16:10:18 +00:00
truebrain
2306f2ab6d (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
19791d3189 (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
56a592dcbd (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
4874c83694 (svn r23183) -Codechange: merge BRIBE_FAILED and BRIBE_FAILED_2 messages (monoid) 2011-11-10 18:09:09 +00:00
yexo
36e61e08b3 (svn r23160) -Fix: wrong comments in a lot of TileTypeProcs definitions 2011-11-08 17:37:32 +00:00
frosch
ebf19d6219 (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
6365d92776 (svn r23142) -Change: [NewGRF v8] Unify the return values of callbacks returning D0xx texts. 2011-11-08 17:24:43 +00:00
rubidium
0e2d2b2317 (svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z related variables 2011-11-04 11:52:19 +00:00
rubidium
fb9fb416a1 (svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type functions use int z as well 2011-11-04 11:36:10 +00:00
rubidium
70faeeaba9 (svn r23106) -Codechange: pass int* to GetTileSlope and friends 2011-11-04 11:30:37 +00:00
rubidium
25b3869c3b (svn r23101) -Codechange: remove pointless multiplications by TILE_HEIGHT from the station/object building code 2011-11-04 10:31:13 +00:00
rubidium
5d7acba5d3 (svn r23100) -Codechange: remove pointless multiplications by TILE_HEIGHT for the terraform code 2011-11-04 10:30:10 +00:00
rubidium
a70fdbcf2f (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
f7297d5c3a (svn r23094) -Codechange: add a default NULL to GetFoundationSlope and use it 2011-11-04 10:23:48 +00:00
rubidium
bcb93b3b75 (svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and use it 2011-11-04 10:22:27 +00:00
rubidium
de980ef0f9 (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
c465c79f09 (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
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 2011-09-11 11:47:18 +00:00
terkhen
3b4976dbb2 (svn r22899) -Add: Allow towns to build bridges over canals and rivers. 2011-09-06 13:32:37 +00:00
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. 2011-08-22 12:41:24 +00:00
rubidium
440b6221d1 (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
5fbd3eba42 (svn r22706) -Cleanup: A loop is no loop, if it never iterates. 2011-07-31 09:42:05 +00:00
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 2011-07-30 12:17:46 +00:00
terkhen
e8a8b6dae5 (svn r22569) -Feature: [NewGRF] Persistent storage for towns. 2011-06-12 20:50:03 +00:00
frosch
62b6d0eb0e (svn r22482) -Codechange: Add some contants for the number of ticks between certain cyclical tasks. 2011-05-21 11:26:37 +00:00
alberth
a70556dac2 (svn r22459) -Doc: Typo fixes and doxygen markup improvements. 2011-05-14 18:35:40 +00:00
smatz
c85e1c3089 (svn r22116) -Codechange: use PoolBase::Clean() at more places 2011-02-19 23:05:47 +00:00
terkhen
98a9c1f91c (svn r22087) -Fix: When deleting towns, only relocate objects during DC_EXEC. 2011-02-15 13:27:41 +00:00
rubidium
aa333aeff2 (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
b778cc61d1 (svn r22065) -Fix [FS#4500]: pool allocation checks triggered when towns could not be built 2011-02-12 18:41:24 +00:00
rubidium
cb2c7f871f (svn r22018) -Cleanup: remove some (now) unneeded includes of functions.h 2011-02-07 22:37:22 +00:00
terkhen
67ce7c5c41 (svn r21974) -Feature: Add a setting to enable/disable funding local road reconstruction. 2011-02-05 13:46:09 +00:00
rubidium
ec4f688ca0 (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
c5597c44c4 (svn r21664) -Add: [NoAI] AIEventTownFounded 2010-12-29 23:44:39 +00:00
rubidium
eafc316342 (svn r21414) -Codechange: limit town name by amount of characters, not bytes 2010-12-05 22:25:21 +00:00
rubidium
dd618051a7 (svn r21412) -Codechange: limit company name by amount of characters, not bytes 2010-12-05 22:24:50 +00:00
frosch
0ebd5af86f (svn r21291) -Fix: Treat objects on water like water in more cases. 2010-11-21 18:39:12 +00:00
terkhen
ef588232c9 (svn r21191) -Doc: Add missing information for a parameter of CmdFoundTown. 2010-11-14 16:13:07 +00:00
alberth
b698045b82 (svn r21156) -Codechange: Introduce EconomyIsInRecession(). 2010-11-13 09:45:20 +00:00
yexo
30b29ae060 (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
548a3747e9 (svn r20860) -Cleanup: remove some unused functions and variables 2010-10-01 16:42:28 +00:00
frosch
98cd443735 (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
f3015ee820 (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
f768485e1d (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
e55b006a86 (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
fa47477d0d (svn r20710) -Codechange: Clarify the name of some town generation variables. 2010-09-01 18:52:27 +00:00
rubidium
360d6daf34 (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 2010-08-26 22:01:16 +00:00
rubidium
7107eef4de (svn r20627) -Codechange: unify the animation code of station, airport, house and industry tiles 2010-08-26 17:01:17 +00:00
smatz
ca2d4c5d6e (svn r20540) -Fix [FS#4049](r20480): use CmdDeleteTown instead of direct use of operator delete 2010-08-18 15:22:40 +00:00
rubidium
f336f61104 (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
0fd9d4ba1d (svn r20481) -Fix: statues were not removed when towns would be removed 2010-08-13 11:58:45 +00:00
rubidium
cf8062c3bd (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
662900c113 (svn r20473) -Codechange: pass Town instead of TownID to BuildObject 2010-08-12 19:18:58 +00:00
frosch
399818e96f (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
1f2276b785 (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
92767f454e (svn r20409) -Codechange: reduce the number of includes needed by newgrf.h 2010-08-08 09:07:40 +00:00
rubidium
da8c058b89 (svn r20401) -Codechange: let HouseSpec use GRFFileProps 2010-08-07 21:03:38 +00:00
rubidium
d7921b24e6 (svn r20337) -Codechange: unify the construction of objects on the map 2010-08-03 08:58:12 +00:00
terkhen
ec6cba6b92 (svn r20323) -Codechange: Move Delete town code to a command. 2010-08-02 21:07:23 +00:00
terkhen
014771848d (svn r20322) -Codechange: Move Expand town code to a command. 2010-08-02 21:06:06 +00:00
alberth
91eba89331 (svn r20320) -Doc: Small Doxygen and normal comment fixes, and an missed addition. 2010-08-02 20:47:27 +00:00
frosch
c18839704b (svn r20286) -Codechange: Unify end of doxygen comments. 2010-08-01 19:44:49 +00:00
frosch
5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
alberth
e5b703ddf9 (svn r20279) -Doc: Doxygen additions/improvements. 2010-08-01 17:45:53 +00:00
alberth
1743c86610 (svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements. 2010-07-31 21:02:56 +00:00
terkhen
a6c7630e82 (svn r20227) -Fix [FS#3985]: Don't spend cash when building a statue fails. 2010-07-27 16:40:16 +00:00
alberth
137e2b64c9 (svn r20211) -Codechange: Indented code should have curly braces around it. 2010-07-24 10:14:39 +00:00
rubidium
9fd2afb147 (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
a8c6eaeb4a (svn r20048) -Feature: Add a setting to forbid towns building level crossings. 2010-07-02 16:34:07 +00:00
michi_cc
9745b96dcf (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
a5bea603ea (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
ee53807e51 (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
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. 2010-05-01 13:09:49 +00:00
frosch
dc1a95a9fd (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
cb92cdf975 (svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables 2010-04-24 13:39:11 +00:00
frosch
ed80045221 (svn r19654) -Codechange: Use Extract<> in more places. 2010-04-17 13:31:41 +00:00
smatz
258b128a56 (svn r19614) -Codechange: "it's" => "its" where appropriate 2010-04-12 14:12:47 +00:00
alberth
68ee4aa7d6 (svn r19482) -Doc: Doxygen additions/updates. 2010-03-20 15:23:26 +00:00
alberth
a7619c7fb3 (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
b0f3fff54b (svn r19478) -Codechange: Resolve TS_ prefix clash between TileSource and TownSize enums. 2010-03-20 10:55:08 +00:00
alberth
ae5b11321b (svn r19400) -Codechange: CheckforTownRating returns a CommandCost. 2010-03-13 15:33:07 +00:00
yexo
23af928ce9 (svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info 2010-02-28 20:28:08 +00:00
alberth
87c09ddcc0 (svn r19279) -Codechange: CheckIfAuthorityAllowsNewStation() returns CommandCost. 2010-02-27 17:42:55 +00:00
alberth
01562e2dfc (svn r19272) -Doc: successfull -> successful. 2010-02-27 12:29:44 +00:00
smatz
5504b1105e (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 2010-02-24 14:46:15 +00:00
rubidium
f618acfb7d (svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions 2010-01-18 22:57:21 +00:00
rubidium
9467b7c6d6 (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
e202a26990 (svn r18715) -Codechange: make StationFinder a subclass of TileArea 2010-01-04 18:12:10 +00:00
rubidium
0bff19e869 (svn r18567) -Fix [FS#2613]: [NewGRF] House property 15 did not work 2009-12-20 14:53:32 +00:00
smatz
e0a28e8c54 (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
d66fe90ad0 (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
73136f78b3 (svn r18302) -Fix [FS#3328](r18281): city size multiplier was ignored when generating new game 2009-11-26 22:04:11 +00:00
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.
2009-11-24 22:15:42 +00:00
smatz
f7466979b9 (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
2c63d0d323 (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