Commit Graph

420 Commits

Author SHA1 Message Date
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