Commit Graph

353 Commits (1c83b21e90eafd3d102e7c35fa4455d5470b5768)

Author SHA1 Message Date
rubidium 1c83b21e90 (svn r20282) -Codechange: add some spaces where they should've been 14 years ago
rubidium 8c85b4ce3d (svn r20281) -Codechange: unify case scope closure + break coding style 14 years ago
alberth e5b703ddf9 (svn r20279) -Doc: Doxygen additions/improvements. 14 years ago
alberth 3cd9351618 (svn r20241) -Codechange: Move variable declarations to their first use. 14 years ago
alberth 137e2b64c9 (svn r20211) -Codechange: Indented code should have curly braces around it. 14 years ago
rubidium 9fd2afb147 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 14 years ago
frosch a5bea603ea (svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation. 14 years ago
frosch ee53807e51 (svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration. 14 years ago
frosch 4ecd7e1f00 (svn r19907) -Fix: [NewGRF] Call callbacks 14A, 14B and 14C after all industry variables have been assigned, so more variables are valid during the callbacks. 14 years ago
frosch 56103a62a4 (svn r19901) -Add: [NewGRF] Access to industry founder (var A7) during callbacks 28 and 2F. (yexo) 14 years ago
rubidium a70fd540fc (svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int 14 years ago
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. 14 years ago
rubidium cb92cdf975 (svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables 14 years ago
frosch b4a9e9cadc (svn r19701) -Fix [FS#3787]: Check for industry availability more thoroughly and cancel object placement when selecting not available industries. 14 years ago
frosch a4413f4cf6 (svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding. 14 years ago
frosch 83bcde6da4 (svn r19652) -Fix: RandomRange() is used for bigger ranges in many cases, so generally extent it to handle 32 bits. 14 years ago
frosch 80db03aef7 (svn r19643) -Fix (r19120): Industry generation failed for large maps and lots of industry types. 14 years ago
rubidium 9204c5f1e4 (svn r19565) -Fix: some NewGRF callbacks were named incorrectly 14 years ago
frosch a2bf2bfa87 (svn r19499) -Remove: same_industry_close setting did not do what it said and caused NewGRF trouble. 14 years ago
alberth 72d62fd6fc (svn r19494) -Codechange: Remove _error_message. 14 years ago
frosch be6c18454a (svn r19481) -Codechange: Turn _industry_counts into a static member of Industry. 14 years ago
yexo d72dfea800 (svn r19476) -Codechange: simplify the 'is conflicting industry nearby' check a bit 14 years ago
frosch a1e4139025 (svn r19443) -Fix [FS#3701]: Mark industry windows dirty more often. 14 years ago
alberth fba4bed6bf (svn r19362) -Fix [FS#3667] (r19270): Failure to prospect an industry should not cause a crash. 14 years ago
alberth 4c0d4990f5 (svn r19319) -Codechange: EnsureNoVehicleOnGround() returns a CommandCost. 15 years ago
frosch 1cd347bfc9 (svn r19297) -Codechange: Variable scope and documentation of DoCreateNewIndustry(). 15 years ago
yexo 23af928ce9 (svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info 15 years ago
alberth 3338efed28 (svn r19287) -Fix [FS#3650] (r19263): Don't store a boolean in a CommandCost. 15 years ago
alberth 4ec812b147 (svn r19270) -Codechange: Forward CommandCost results through CreateNewIndustryHelper(). 15 years ago
alberth fbbf22da32 (svn r19269) -Codechange: PerformIndustryTileSlopeCheck() returns a succeeded or failed command. 15 years ago
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 15 years ago
rubidium a88f57efde (svn r19263) -Fix (r19184): some specific industry creation errors got replaced by 'site unsuitable'. 15 years ago
alberth 19f5b6f7b6 (svn r19185) -Codechange: Return succeeded or failed CommandCost from CheckIfCallBackAllowsCreation(). 15 years ago
alberth b882106956 (svn r19184) -Codechange: Return succeeded/failed command from CheckIfIndustryTilesAreFree(). 15 years ago
alberth fe35b9d8e7 (svn r19183) -Codechange: Return CommandCost from FindTownForIndustry(). 15 years ago
alberth 368976f395 (svn r19182) -Codechange: Use CommandCost return value in CheckIfIndustryIsAllowed() and CheckIfFarEnoughFromIndustry(). 15 years ago
frosch eb64024984 (svn r19167) -Fix [FS#3631](r19120): Industry 0 could be choosen even if not available. 15 years ago
alberth f2adc37cc8 (svn r19146) -Codechange: Use CommandCost in industry checking routines. 15 years ago
alberth d2fbf654df (svn r19138) -Codechange: Rename CheckMultipleIndustryInTown() to FindTownForIndustry(). 15 years ago
alberth e4986c8430 (svn r19137) -Add: Report a more useful error when failing to build a bubble generator. 15 years ago
alberth f94c030837 (svn r19136) -Doc: Added Doxygen comments for industry checking procedures. 15 years ago
frosch 09ce2f49b5 (svn r19126) -Codechange: Silence a warning. 15 years ago
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.
15 years ago
frosch 87cf1f75ff (svn r19051) -Codechange: Variable scope. 15 years ago
frosch 75a55bbb85 (svn r19050) -Fix: Don't call callbacks for disabled industrytypes. 15 years ago
frosch b0a60e1f2b (svn r19049) -Codechange: Deduplicate computing number of initial industries. 15 years ago
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. 15 years ago
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. 15 years ago
rubidium 7127338414 (svn r18872) -Codechange: introduce PaletteID and use it 15 years ago
rubidium f618acfb7d (svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions 15 years ago