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.
15 years ago
rubidium
f56ebd81c3
(svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables
15 years ago
frosch
ca9a015984
(svn r19701) -Fix [FS#3787]: Check for industry availability more thoroughly and cancel object placement when selecting not available industries.
15 years ago
frosch
2e90f7f8b9
(svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding.
15 years ago
frosch
184fa43df2
(svn r19652) -Fix: RandomRange() is used for bigger ranges in many cases, so generally extent it to handle 32 bits.
15 years ago
frosch
2141ca2368
(svn r19643) -Fix (r19120): Industry generation failed for large maps and lots of industry types.
15 years ago
rubidium
bc925c0016
(svn r19565) -Fix: some NewGRF callbacks were named incorrectly
15 years ago
frosch
475c2959bd
(svn r19499) -Remove: same_industry_close setting did not do what it said and caused NewGRF trouble.
15 years ago
alberth
05d705e077
(svn r19494) -Codechange: Remove _error_message.
15 years ago
frosch
116a5f56a4
(svn r19481) -Codechange: Turn _industry_counts into a static member of Industry.
15 years ago
yexo
aab8849661
(svn r19476) -Codechange: simplify the 'is conflicting industry nearby' check a bit
15 years ago
frosch
030ced4aec
(svn r19443) -Fix [FS#3701]: Mark industry windows dirty more often.
15 years ago
alberth
384e870be2
(svn r19362) -Fix [FS#3667] (r19270): Failure to prospect an industry should not cause a crash.
15 years ago
alberth
c395b93acd
(svn r19319) -Codechange: EnsureNoVehicleOnGround() returns a CommandCost.
15 years ago
frosch
5152cb1a26
(svn r19297) -Codechange: Variable scope and documentation of DoCreateNewIndustry().
15 years ago
yexo
404df87b1f
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
15 years ago
alberth
f73898a4ef
(svn r19287) -Fix [FS#3650] (r19263): Don't store a boolean in a CommandCost.
15 years ago
alberth
011ff40030
(svn r19270) -Codechange: Forward CommandCost results through CreateNewIndustryHelper().
15 years ago
alberth
b33264f30f
(svn r19269) -Codechange: PerformIndustryTileSlopeCheck() returns a succeeded or failed command.
15 years ago
rubidium
45f34a4203
(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
15 years ago
rubidium
425ac1ec1f
(svn r19263) -Fix (r19184): some specific industry creation errors got replaced by 'site unsuitable'.
15 years ago
alberth
82a4d532b6
(svn r19185) -Codechange: Return succeeded or failed CommandCost from CheckIfCallBackAllowsCreation().
15 years ago
alberth
c4f67de69c
(svn r19184) -Codechange: Return succeeded/failed command from CheckIfIndustryTilesAreFree().
15 years ago
alberth
676a8bda3e
(svn r19183) -Codechange: Return CommandCost from FindTownForIndustry().
15 years ago
alberth
50bdd29758
(svn r19182) -Codechange: Use CommandCost return value in CheckIfIndustryIsAllowed() and CheckIfFarEnoughFromIndustry().
15 years ago
frosch
e905cb57d8
(svn r19167) -Fix [FS#3631](r19120): Industry 0 could be choosen even if not available.
15 years ago
alberth
dec02fad59
(svn r19146) -Codechange: Use CommandCost in industry checking routines.
15 years ago
alberth
c0933e825a
(svn r19138) -Codechange: Rename CheckMultipleIndustryInTown() to FindTownForIndustry().
15 years ago
alberth
6553f49991
(svn r19137) -Add: Report a more useful error when failing to build a bubble generator.
15 years ago
alberth
bb5261a075
(svn r19136) -Doc: Added Doxygen comments for industry checking procedures.
15 years ago
frosch
d757f81646
(svn r19126) -Codechange: Silence a warning.
15 years ago
frosch
e7106d8121
(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.
15 years ago
frosch
3c7dff4270
(svn r19051) -Codechange: Variable scope.
15 years ago
frosch
69184fdc79
(svn r19050) -Fix: Don't call callbacks for disabled industrytypes.
15 years ago
frosch
0ab6f60c62
(svn r19049) -Codechange: Deduplicate computing number of initial industries.
15 years ago
frosch
294bc14652
(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.
15 years ago
frosch
bf65eb686e
(svn r18889) -Codechange: Use (GroundSprite|SpriteLayout)PaletteTransform() also for drawing of default industries. They are compatible since the bubblegenerator is also randomly recoloured.
15 years ago
rubidium
f94c83a387
(svn r18872) -Codechange: introduce PaletteID and use it
15 years ago
rubidium
4d93b704d9
(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
28fc7b47bd
(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.
15 years ago
rubidium
3e131e2fec
(svn r18718) -Codechange: make a wrapper macro for looping TileAreas
15 years ago
rubidium
87466a4ed0
(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.
15 years ago
rubidium
71f2789270
(svn r18716) -Codechange: pass a TileArea to FindStationsAroundTiles
15 years ago
rubidium
31b325baaf
(svn r18715) -Codechange: make StationFinder a subclass of TileArea
15 years ago
yexo
8a50a4112c
(svn r18701) -Fix (r18700): always compile before making a commit
15 years ago
yexo
47a11fff20
(svn r18700) -Fix: when deleting an industry on water (oil rigs) the tiles on water were not marked dirty
15 years ago
frosch
e46a9078e6
(svn r18554) -Change: Forbid industries to clear sea/river when leveling land.
15 years ago
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.
15 years ago
frosch
8da21d58a9
(svn r18282) -Codechange: Remove IndustrySpec::raw_industry_cost_multiplier and use 8 * cost_multiplier instead.
15 years ago