terkhen
2cd8b7054e
(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
4ad5ef5c43
(svn r20659) -Feature: make the (flat) area around an industry configurable (Eddi|zuHause)
2010-08-28 18:37:49 +00:00
frosch
3db0cc004b
(svn r20636) -Codechange: Move MarkTileDirtyByTile() and DeleteAnimatedTile() into MakeWaterKeepingClass().
2010-08-27 20:46:36 +00:00
rubidium
360d6daf34
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
2010-08-26 22:01:16 +00:00
rubidium
c462611488
(svn r20631) -Codechange: generalise IsIndustryTileOnWater + simplify so related code
2010-08-26 19:29:20 +00:00
rubidium
514f566d7c
(svn r20623) -Codechange: unify the storing of animation related information
2010-08-26 15:31:40 +00:00
rubidium
5a7d6249af
(svn r20622) -Codechange: unify [GS]et[Statation|Object|Industry|House]AnimationFrame
2010-08-26 14:45:45 +00:00
alberth
a51d34c048
(svn r20499) -Doc: Spelling fixes, and one doxygen comment addition.
2010-08-15 14:06:43 +00:00
rubidium
1f2276b785
(svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable.
2010-08-08 10:59:30 +00:00
yexo
5162f28c27
(svn r20396) -Codechange: introduce a helper function to test whether an industry temporarily refues to accept some cargo
2010-08-07 20:11:27 +00:00
alberth
91eba89331
(svn r20320) -Doc: Small Doxygen and normal comment fixes, and an missed addition.
2010-08-02 20:47:27 +00:00
frosch
c18839704b
(svn r20286) -Codechange: Unify end of doxygen comments.
2010-08-01 19:44:49 +00:00
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
rubidium
1c83b21e90
(svn r20282) -Codechange: add some spaces where they should've been
2010-08-01 19:01:09 +00:00
rubidium
8c85b4ce3d
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
alberth
e5b703ddf9
(svn r20279) -Doc: Doxygen additions/improvements.
2010-08-01 17:45:53 +00:00
alberth
3cd9351618
(svn r20241) -Codechange: Move variable declarations to their first use.
2010-07-30 10:39:24 +00:00
alberth
137e2b64c9
(svn r20211) -Codechange: Indented code should have curly braces around it.
2010-07-24 10:14:39 +00:00
rubidium
9fd2afb147
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
2010-07-19 17:28:27 +00:00
frosch
a5bea603ea
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
2010-06-05 12:16:12 +00:00
frosch
ee53807e51
(svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration.
2010-05-31 20:22:57 +00:00
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.
2010-05-30 12:26:32 +00:00
frosch
56103a62a4
(svn r19901) -Add: [NewGRF] Access to industry founder (var A7) during callbacks 28 and 2F. (yexo)
2010-05-29 13:08:50 +00:00
rubidium
a70fd540fc
(svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int
2010-05-13 10:14:29 +00:00
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.
2010-05-01 13:09:49 +00:00
rubidium
cb92cdf975
(svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables
2010-04-24 13:39:11 +00:00
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
frosch
040404c5d3
(svn r18005) -Codechange: Convert the Prices struct into an array and an enum.
2009-11-07 22:47:54 +00:00
frosch
3cb949a17d
(svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up including of newgrf_cargo.h
2009-11-05 19:46:17 +00:00
rubidium
ed8788d581
(svn r17682) -Codechange: remove erroneous space before some commas
2009-10-02 15:13:15 +00:00
rubidium
5ced4ad44b
(svn r17638) -Fix [FS#3235]: Crash when trying to build an industry that has no industry layout defined; yes, it's very similar to r17633 because one case was forgotten.
2009-09-25 21:08:45 +00:00
rubidium
a04f3950ec
(svn r17633) -Fix [FS#3233]: [NewGRF] Crash when trying to build an industry that has no industry layout defined.
2009-09-25 09:32:20 +00:00
smatz
6cb860e69e
(svn r17601) -Fix (r17592): don't mark cargo as 'accepted' when accepted amount is 0
2009-09-21 17:24:21 +00:00
smatz
581366f352
(svn r17592) -Fix [FS#3212](r17436): force all cargo being accepted when industry tiles accept it but industry itself doesn't
2009-09-20 18:52:12 +00:00
smatz
c3a80f1518
(svn r17589) -Codechange: rename town_acc to always_accepted
2009-09-20 17:44:33 +00:00
rubidium
06e490fadc
(svn r17567) -Fix: some doxygen warnings
2009-09-18 14:23:58 +00:00
rubidium
c2c0f4403e
(svn r17534) -Codechange: unify the naming of callback masks/flags
2009-09-14 12:22:57 +00:00
frosch
0e36260337
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
2009-09-13 19:15:59 +00:00
rubidium
7fd584a95b
(svn r17521) -Change: don't assume that there is always 'another' industry tile after two '0x18' industry tiles
2009-09-13 10:58:41 +00:00
rubidium
6b25288ba1
(svn r17472) -Fix [FS#3182]: industry list was rebuilt too early during industry removal causing the removed industry to be still in the list after removal
2009-09-08 12:22:28 +00:00
smatz
5d622fd840
(svn r17439) -Fix (r17436): you weren't paid for cargo delivered to houses and headquarters anymore
2009-09-07 07:39:08 +00:00
rubidium
f3372f6bc1
(svn r17414) -Codechange: only send/read the number of bits that can be actually useful when building industries
2009-09-04 20:04:54 +00:00
rubidium
ebe53440be
(svn r17413) -Fix: assert when trying to build an invalid industry type it did
2009-09-04 20:02:35 +00:00
smatz
09e1ecc8ac
(svn r17316) -Codechange: use Industry::GetByTile() instead of GetIndustryByTile()
2009-08-30 11:47:41 +00:00
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
smatz
073e163b7f
(svn r17131) -Codechange: apply coding style to some switch statements
2009-08-09 14:40:34 +00:00
smatz
0502a6df42
(svn r17113) -Change [FS#265][FS#2094][FS#2589]: apply the subsidy when subsidy's destination is in station's catchment area and cargo packets originate from subsidy's source
...
-Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost
-Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
2009-08-08 16:42:55 +00:00
smatz
738d7fde53
(svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed
2009-08-07 22:23:34 +00:00
rubidium
d61be2637e
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
2009-08-05 17:59:21 +00:00
rubidium
30d9e54279
(svn r16966) -Codechange: BEGIN_TILE_LOOP and END_TILE_LOOP reworked into TILE_LOOP, which means no more duplication of parameters between BEGIN_TILE_LOOP and END_TILE_LOOP
2009-07-26 21:50:30 +00:00
rubidium
39e6dbd5e3
(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
2009-07-20 11:21:57 +00:00