Commit Graph

510 Commits

Author SHA1 Message Date
frosch 6347e5f11e (svn r27932) -Fix (r0) [FS#6639]: Forest, candyfloss forest and battery farm skipped the first animation frame. 2017-11-25 16:50:28 +00:00
peter1138 27033a2231 (svn r27841) -Fix: Don't consider locks or ship depots as clear water when placing industries. 2017-04-02 17:36:53 +00:00
rubidium 9daf7e749c (svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the data is now always accessible 2014-09-21 11:24:51 +00:00
alberth 87dd209784 (svn r26729) -Feature: Warn about missing industries after generating a map. 2014-08-13 19:31:45 +00:00
rubidium 0463dbdc9e (svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values 2014-04-23 20:13:33 +00:00
planetmaker 2aa545a842 (svn r26457) -Codechange: Remove unused parameter from SetIndustryCompleted 2014-04-12 11:43:04 +00:00
frosch 03169121c2 (svn r26328) -Fix: Warnings and compilation failures. 2014-02-10 17:13:54 +00:00
rubidium c7629735a3 (svn r26312) -Codechange: iterate the nearby tiles instead of the industry list for a conflicting industry when the number of industries is really large (MJP) 2014-02-06 21:05:00 +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
zuu e50478c053 (svn r25853) -Codechange: Simplify SetupFarmFieldFence by replacing the Axis and north parameter with a direction parameter and taking adventage of the new unified SetFence function (cirdan, LordAro) 2013-10-12 22:28:38 +00:00
zuu fb5dc7762b (svn r25852) -Codechange: Merge GetFenceXX/SetFenceXX into one common GetFonce/SetFence for all directions that take an extra direction parameter (cirdan, LordAro) 2013-10-12 22:23:43 +00:00
zuu e7c6786016 (svn r25850) -Codechange: Merge IsBadFarmFieldTile and IsValidFarmFieldTile into IsSuitableForFarmField (cirdan, LordAro) 2013-10-12 22:17:11 +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
alberth 1b5b4db690 (svn r25238) -Feature: Display imminent closure of an industry in its view window. 2013-05-12 19:38:30 +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
frosch 3ce8d2ce70 (svn r24846) -Add: Advanced settings to disable certain sound effects. 2012-12-23 21:09:09 +00:00
zuu 0826994821 (svn r24623) -Feature: Allow GameScripts to construct and prospect industries without having a sponsor 2012-10-22 18:56:21 +00:00
frosch bcac3d16b6 (svn r24513) -Add: [Script] ScriptIndustryType::IsProcessingIndustry. 2012-09-08 12:14:00 +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 16b310d8ce (svn r24186) -Feature: [NewGRF] Callback to set industry production level on construction. (andythenorth) 2012-04-28 16:44:01 +00:00
frosch 789c95d4b8 (svn r24185) -Codechange: Deduplicate some only partly deduplicated code. 2012-04-28 16:07:28 +00:00
rubidium 41e5c839e0 (svn r24179) -Codechange: move some variables of Town to TownCache 2012-04-25 20:50:13 +00:00
frosch c425368a17 (svn r24107) -Fix [FS#5143] (r3181): Glass-sprite of bubble-generator was not drawn anymore for completely constructed tiles. 2012-04-09 10:18:10 +00:00
frosch a1f2ad880d (svn r24040) -Fix [FS#5095]: Improve error messages wrt. the placement restrictions of banks, water towers and toy shops. 2012-03-17 19:48:26 +00:00
rubidium 6d6be50ae0 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 2012-01-03 21:32:51 +00:00
alberth 4af8c2d5e1 (svn r23704) -Doc: Doxygen comment fixes and additions. 2012-01-01 17:22:32 +00:00
truebrain 77b7366c29 (svn r23622) -Add: a set of events to trigger in a GameScript 2011-12-19 20:59:36 +00:00
rubidium 3d88c74389 (svn r23526) -Codechange: unify cargos vs cargoes 2011-12-15 21:56:00 +00:00
yexo 2b1a380902 (svn r23458) -Fix: don't assume all industries that cut trees have tile 0,0
-Fix: wait until all tiles of an industry are completed before starting to cut trees
2011-12-09 16:12:38 +00:00
truebrain 98103121d4 (svn r23355) -Codechange: rename all AI* to Script* (Rubidium) 2011-11-29 23:15:35 +00:00
yexo 5c838ff1c3 (svn r23168) -Feature [FS#1824]: always draw fences around field tiles 2011-11-08 19:48:47 +00:00
frosch 52774235eb (svn r23148) -Change: [NewGRF] Check the results of various callbacks for validness. 2011-11-08 17:27:13 +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 b98c7763de (svn r23146) -Change: [NewGRF v8] Make callback 22 return a probability to use instead of property 18. 2011-11-08 17:26:13 +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 798f5a8608 (svn r23102) -Codechange: remove the remaining pointless multiplications by TILE_HEIGHT 2011-11-04 10:31:46 +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 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
frosch 3eddb9c23f (svn r23049) -Fix [FS#4810]: Use the same forest-check for the vegetation-map colour as for nearby station names. 2011-10-21 19:10:35 +00:00
planetmaker dfa45e79fe (svn r22673) -Add #4690: Provide random bits in var 0x10 for callback 0x3B in all cases (Hirundo) 2011-07-19 16:52:30 +00:00
terkhen 00e5c1df18 (svn r22567) -Codechange: Store persistent storages inside a pool. 2011-06-12 20:47:45 +00:00
terkhen d7ec492887 (svn r22556) -Codechange: Remove constness from the town pointer at industries. 2011-06-12 20:31:44 +00:00
planetmaker e5a88a1077 (svn r22548) -Codechange: Name also the magic number for the lumber mill's tree cutting action (FeyFre) 2011-06-09 16:35:09 +00:00
frosch 71822b6f1b (svn r22505) -Add: Separate EffectVehicleTypes for broken aircraft and smoke at copper ore mine, to make them distinguishable from each other and from smoke due to disasters. (only affects newly spawned effects) 2011-05-28 09:45:12 +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
smatz 756cc6cf65 (svn r22116) -Codechange: use PoolBase::Clean() at more places 2011-02-19 23:05:47 +00:00
rubidium bc3ce1e53b (svn r22018) -Cleanup: remove some (now) unneeded includes of functions.h 2011-02-07 22:37:22 +00:00
planetmaker 68d03b66e3 (svn r22012) -Add: [NewGRF] Test all industry layouts also when prospecting 2011-02-07 20:47:58 +00:00
planetmaker 44495f8dba (svn r22011) -Codechange: Rename a few variables and enhance code clearity 2011-02-07 20:47:06 +00:00
planetmaker 64280e63fb (svn r22010) -Feature-ette [FS#4131]: [NewGRF] Test all possible industry layouts during construction and add another pony to andy's stables 2011-02-07 20:45:31 +00:00
alberth 4364cec392 (svn r22001) -Codechange: Rename difficulty.number_industries to difficulty.industry_density. 2011-02-06 18:26:50 +00:00
alberth d84502c432 (svn r22000) -Codechange: Introduce an enum for the industry density setting. 2011-02-06 18:11:39 +00:00
alberth a5921c0514 (svn r21999) -Fix [FS#4474] (r21969): Use 'very low' industry density for generating industries in the SE. 2011-02-06 17:21:49 +00:00
alberth 870d2eafbf (svn r21998) -Fix (r21969): Number of industries difficulty setting should not affect the SE. 2011-02-06 17:19:56 +00:00
alberth bdf5a1c2f7 (svn r21969) -Feature: Introduce 'minimal' number of industries as a replacment for the old 'none' setting in the newgame window. 2011-02-05 10:28:31 +00:00
terkhen 734994c9ba (svn r21924) -Codechange: Unify some parts of the articulated vehicle code.
-Cleanup: Avoid conversions to Train and RoadVehicle that are no longer required.
2011-01-29 17:30:25 +00:00
rubidium 7eba2bf4d3 (svn r21890) -Cleanup: remove some unneeded includes 2011-01-22 14:52:20 +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
rubidium cdd35c6a51 (svn r21490) -Codechange: abstract/encapsulate the map area iterating a bit 2010-12-12 20:58:33 +00:00
rubidium e0351ab414 (svn r21489) -Codechange: replace the last instances of TILE_LOOP with TILE_AREA_LOOP 2010-12-12 20:11:46 +00:00
alberth 3b0ee65571 (svn r21270) -Doc: Doxyment updates and additions. Removal of doxyment in code. 2010-11-20 14:15:02 +00:00
alberth d6afbd025c (svn r21265) -Fix [FS#4245]: Don't setup target industry type counts if there are no industry types available. 2010-11-20 12:20:59 +00:00
alberth 2c4564c7dd (svn r21175) -Add: Forced construction of missing industries. 2010-11-13 15:21:55 +00:00
alberth 0c775e5750 (svn r21174) -Add: Use a progressive back-off mechanism to reduce wasting build attempts at unbuildable industries. 2010-11-13 15:20:57 +00:00
alberth a245db6360 (svn r21173) -Codechange: Don't recompute target industry counts each time. 2010-11-13 15:19:43 +00:00
alberth eb4ab0091a (svn r21172) -Feature: Better control over how many new industries are created during the game. 2010-11-13 15:17:55 +00:00
alberth f22fb0d53d (svn r21171) -Change: Reset industry build data at game start or load. 2010-11-13 15:15:25 +00:00
alberth 67549a206c (svn r21169) -Feature: Do not build industries during economic recession. 2010-11-13 15:08:47 +00:00
alberth 3211ab301e (svn r21168) -Feature: Use desired industry counts rather than relative probability to decide which industry to build. 2010-11-13 15:07:34 +00:00
alberth e861487bcb (svn r21167) -Codechange: Use IndustryBuildData::builddata instead of a local variable. 2010-11-13 15:04:58 +00:00
alberth 1bf94674df (svn r21166) -Codechange: Move MaybeNewIndustry() to IndustryBuildData::TryBuildNewIndustry(). 2010-11-13 15:02:31 +00:00
alberth 239fcc8ccd (svn r21159) -Codechange: AdvertiseIndustryOpening() also works with a const pointer. 2010-11-13 10:17:16 +00:00
alberth 6c088543c1 (svn r21158) -Codechange: Assert boundary inside the loop rather than afterwards. 2010-11-13 10:11:47 +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
rubidium 0b67a7ccd5 (svn r20942) -Feature [NewGRF]: make it possible to distinguish player built/randomly placed industries in the location and land slope check callbacks 2010-10-16 13:15:54 +00:00
frosch 8a5571a264 (svn r20900) -Codechange: Move ProductionLevels enum to industry.h 2010-10-04 20:10:31 +00:00
frosch 7f060bdaf5 (svn r20896) -Codechange: Split recompution of productionrates for non-smooth economy to separate function. 2010-10-04 19:23:50 +00:00
frosch b65f463e33 (svn r20850) -Codechange: Add IndustrySpec::UsesSmoothEconomy() to deduplicate code. 2010-09-26 11:04:30 +00:00
smatz a09bc6c366 (svn r20764) -Codechange: minor coding style fix 2010-09-07 20:38:26 +00:00
yexo 8cc43828e8 (svn r20754) -Fix [FS#4112]: assert when an industry previously build on water was flooded because it's grf changed/is missing 2010-09-06 15:23:16 +00:00
yexo 323c526a4d (svn r20747) -Fix: overbuilding an object with water under it succeeded even for industries that can't be build on water 2010-09-05 16:00:04 +00:00
frosch 42a996ec23 (svn r20743) -Fix: Make testruns of clearing an object tile not influence repeated testruns resp. the exec run. 2010-09-05 13:31:39 +00:00
alberth 4f435d9256 (svn r20738) -Codechange: Introduce a function for getting the number of industries that should be build. 2010-09-04 12:09:12 +00:00
alberth 21a80e0a0e (svn r20737) -Codechange: Introduce a function for advertising opening of a new industry. 2010-09-04 12:01:55 +00:00
alberth fcf92a20e2 (svn r20736) -Codechange: Introduce a new function for trying to create a new industry. 2010-09-04 11:59:12 +00:00
alberth 6c34a044c8 (svn r20735) -Codechange: Introduce GetIndustryGamePlayProbability(). 2010-09-04 11:29:42 +00:00
alberth 03f7733f83 (svn r20734) -Codechange: Rename GetScaledIndustryProbability() to GetScaledIndustryGenerationProbability(). 2010-09-04 11:16:40 +00:00
yexo 2d30613c3a (svn r20733) -Fix: when overbuilding an object with an industry, clear the complete object 2010-09-04 00:16:33 +00:00
terkhen 5df8e6abcf (svn r20712) -Fix [FS#4094]: Do not use new game settings when creating many random industries in the scenario editor. 2010-09-01 19:04:06 +00:00
rubidium 8fd9728e19 (svn r20659) -Feature: make the (flat) area around an industry configurable (Eddi|zuHause) 2010-08-28 18:37:49 +00:00
frosch 4901d42140 (svn r20636) -Codechange: Move MarkTileDirtyByTile() and DeleteAnimatedTile() into MakeWaterKeepingClass(). 2010-08-27 20:46:36 +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 08a41c6ee5 (svn r20631) -Codechange: generalise IsIndustryTileOnWater + simplify so related code 2010-08-26 19:29:20 +00:00
rubidium e2e26190d5 (svn r20623) -Codechange: unify the storing of animation related information 2010-08-26 15:31:40 +00:00