frosch
b4a9e9cadc
(svn r19701) -Fix [FS#3787]: Check for industry availability more thoroughly and cancel object placement when selecting not available industries.
2010-04-23 21:47:03 +00:00
frosch
a4413f4cf6
(svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding.
2010-04-18 14:56:05 +00:00
frosch
83bcde6da4
(svn r19652) -Fix: RandomRange() is used for bigger ranges in many cases, so generally extent it to handle 32 bits.
2010-04-17 11:49:25 +00:00
frosch
80db03aef7
(svn r19643) -Fix (r19120): Industry generation failed for large maps and lots of industry types.
2010-04-16 21:21:54 +00:00
rubidium
9204c5f1e4
(svn r19565) -Fix: some NewGRF callbacks were named incorrectly
2010-04-05 21:01:02 +00:00
frosch
a2bf2bfa87
(svn r19499) -Remove: same_industry_close setting did not do what it said and caused NewGRF trouble.
2010-03-21 15:16:05 +00:00
alberth
72d62fd6fc
(svn r19494) -Codechange: Remove _error_message.
2010-03-20 17:58:24 +00:00
frosch
be6c18454a
(svn r19481) -Codechange: Turn _industry_counts into a static member of Industry.
2010-03-20 14:30:16 +00:00
yexo
d72dfea800
(svn r19476) -Codechange: simplify the 'is conflicting industry nearby' check a bit
2010-03-19 21:23:54 +00:00
frosch
a1e4139025
(svn r19443) -Fix [FS#3701]: Mark industry windows dirty more often.
2010-03-17 18:52:56 +00:00
alberth
fba4bed6bf
(svn r19362) -Fix [FS#3667] (r19270): Failure to prospect an industry should not cause a crash.
2010-03-07 12:20:17 +00:00
alberth
4c0d4990f5
(svn r19319) -Codechange: EnsureNoVehicleOnGround() returns a CommandCost.
2010-03-05 21:20:22 +00:00
frosch
1cd347bfc9
(svn r19297) -Codechange: Variable scope and documentation of DoCreateNewIndustry().
2010-03-01 19:34:04 +00:00
yexo
23af928ce9
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
2010-02-28 20:28:08 +00:00
alberth
3338efed28
(svn r19287) -Fix [FS#3650] (r19263): Don't store a boolean in a CommandCost.
2010-02-28 09:44:35 +00:00
alberth
4ec812b147
(svn r19270) -Codechange: Forward CommandCost results through CreateNewIndustryHelper().
2010-02-27 12:12:01 +00:00
alberth
fbbf22da32
(svn r19269) -Codechange: PerformIndustryTileSlopeCheck() returns a succeeded or failed command.
2010-02-27 10:21:59 +00:00
rubidium
7721a5cc51
(svn r19265) -Fix [FS#3618]: "Can't build <industry> here... <industry> in the way" showed the to-be-built industry twice, instead of the to-be-built industry and the industry that's in the way
2010-02-26 10:08:16 +00:00
rubidium
a88f57efde
(svn r19263) -Fix (r19184): some specific industry creation errors got replaced by 'site unsuitable'.
2010-02-26 09:55:53 +00:00
alberth
19f5b6f7b6
(svn r19185) -Codechange: Return succeeded or failed CommandCost from CheckIfCallBackAllowsCreation().
2010-02-21 17:01:23 +00:00
alberth
b882106956
(svn r19184) -Codechange: Return succeeded/failed command from CheckIfIndustryTilesAreFree().
2010-02-21 15:27:11 +00:00
alberth
fe35b9d8e7
(svn r19183) -Codechange: Return CommandCost from FindTownForIndustry().
2010-02-21 14:57:27 +00:00
alberth
368976f395
(svn r19182) -Codechange: Use CommandCost return value in CheckIfIndustryIsAllowed() and CheckIfFarEnoughFromIndustry().
2010-02-21 13:32:14 +00:00
frosch
eb64024984
(svn r19167) -Fix [FS#3631](r19120): Industry 0 could be choosen even if not available.
2010-02-20 16:17:45 +00:00
alberth
f2adc37cc8
(svn r19146) -Codechange: Use CommandCost in industry checking routines.
2010-02-16 22:01:23 +00:00
alberth
d2fbf654df
(svn r19138) -Codechange: Rename CheckMultipleIndustryInTown() to FindTownForIndustry().
2010-02-15 11:04:27 +00:00
alberth
e4986c8430
(svn r19137) -Add: Report a more useful error when failing to build a bubble generator.
2010-02-15 10:28:40 +00:00
alberth
f94c030837
(svn r19136) -Doc: Added Doxygen comments for industry checking procedures.
2010-02-15 09:49:10 +00:00
frosch
09ce2f49b5
(svn r19126) -Codechange: Silence a warning.
2010-02-14 13:01:07 +00:00
frosch
3fe58a2250
(svn r19120) -Fix: [NewGRF] Industry property 0x17 was interpreted incorrectly and in some cases circumvented the density difficulty setting.
...
-Change: Do not scale the number of industry creations during map creation with the number of available industry types.
-Feature: [NewGRF] Implement special industry flag 0x10000.
2010-02-13 14:06:01 +00:00
frosch
87cf1f75ff
(svn r19051) -Codechange: Variable scope.
2010-02-06 20:50:50 +00:00
frosch
75a55bbb85
(svn r19050) -Fix: Don't call callbacks for disabled industrytypes.
2010-02-06 20:41:27 +00:00
frosch
b0a60e1f2b
(svn r19049) -Codechange: Deduplicate computing number of initial industries.
2010-02-06 20:19:59 +00:00
frosch
b1603d0d2c
(svn r18938) -Fix: Industrylayout's special water tile check did not properly check for crossing north border of map. Also don't consider MP_VOID tiles as water.
2010-01-28 19:41:45 +00:00
frosch
8b9e5140ab
(svn r18889) -Codechange: Use (GroundSprite|SpriteLayout)PaletteTransform() also for drawing of default industries. They are compatible since the bubblegenerator is also randomly recoloured.
2010-01-22 21:52:20 +00:00
rubidium
7127338414
(svn r18872) -Codechange: introduce PaletteID and use it
2010-01-21 01:38:13 +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
21b4eb70c3
(svn r18726) -Fix [FS#3463]: with non-uniform industries the 'supplies' text when building a station could be incorrect (missing a cargo)
...
-Change [NoAI]: AITile::GetCargoProduction now returns the number of producers and not the number of tiles of producers.
-Fix [NoAI]: AITileList_IndustryProducing would omit some tiles for at which a station would get cargo.
2010-01-04 21:10:20 +00:00
rubidium
e48416ad4e
(svn r18718) -Codechange: make a wrapper macro for looping TileAreas
2010-01-04 18:30:10 +00:00
rubidium
6cac8be361
(svn r18717) -Codechange: use TileArea in industry instead of three separate variables. Also make use of TileArea functions for determining the 'width' and 'height' of an industry.
2010-01-04 18:21:07 +00:00
rubidium
0213d47594
(svn r18716) -Codechange: pass a TileArea to FindStationsAroundTiles
2010-01-04 18:16:32 +00:00
rubidium
e202a26990
(svn r18715) -Codechange: make StationFinder a subclass of TileArea
2010-01-04 18:12:10 +00:00
yexo
3e1d76a69c
(svn r18701) -Fix (r18700): always compile before making a commit
2010-01-03 20:14:50 +00:00
yexo
a5d00a4713
(svn r18700) -Fix: when deleting an industry on water (oil rigs) the tiles on water were not marked dirty
2010-01-03 19:33:12 +00:00
frosch
77d19dc5af
(svn r18554) -Change: Forbid industries to clear sea/river when leveling land.
2009-12-19 22:17:02 +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
frosch
dc71450b0f
(svn r18282) -Codechange: Remove IndustrySpec::raw_industry_cost_multiplier and use 8 * cost_multiplier instead.
2009-11-24 22:02:23 +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
rubidium
224f4e0197
(svn r18028) -Codechange: unglobalise some functions
2009-11-09 10:40:33 +00:00