summaryrefslogtreecommitdiff
path: root/industry_cmd.c
AgeCommit message (Collapse)Author
2006-08-20(svn r5966) -Fix: prevent that the industry placement's terraforming checks ↵rubidium
can leave the map on the southern side
2006-08-19(svn r5948) -Fix: inversed check caused oringal land-generator to put ↵truelight
industries on mountains (tnx Darkvater)
2006-08-19(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:truelight
- New optional landscape generator (TerraGenesis Perlin) - Load heightmaps (either BMP or PNG) - Progress dialog while generating worlds (no longer a 'hanging' screen) - New dialogs for NewGame, Create Scenario and Play Heightmap - Easier to configure your landscape - More things to configure (tree-placer, ..) - Speedup of world generation - New console command 'restart': restart the map EXACTLY as it was when you first started it (needs a game made after or with this commit) - New console command 'getseed': get the seed of your map and share it with others (of course only works with generated maps) - Many new, world generation related, things - Many internal cleanups and rewrites Many tnx to those people who helped making this: Belugas, DaleStan, glx, KUDr, RichK67, Rubidium, and TrueLight (alfabetic) Many tnx to those who helped testing: Arnau, Bjarni, and tokai (alfabetic) And to all other people who helped testing and sending comments / bugs Stats: 673 lines changed, 3534 new lines, 79 new strings
2006-08-17(svn r5934) -Cleanup: forgot some conversions to Year and to Daterubidium
-Cleanup: use _cur_year instead of _date for some (year based) comparisons -Cleanup: remove a magic number in favour of another (less) magic number
2006-08-16(svn r5926) -Codechange: make _cur_year contain the full year, instead of ↵rubidium
the offset since 1920 -Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year
2006-08-14(svn r5887) -Cleanup: move date related functions, defines and variables to ↵rubidium
date.[ch] -Cleanup: fix whitespace related coding style issues in date.[ch] -Cleanup: make original comments doxygen compatible and remove/change outdated comments
2006-08-06(svn r5794) Pass the TileIndex plus x and y coordinates into GetSlopeZ_* ↵tron
instead of a TileInfo
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-05-20(svn r4920) Remove parameters, which get only used in certain functions, by ↵tron
splitting those functions. At least in the case of checking for oil industry restrictions this makes the check conditions more clear.
2006-05-07(svn r4765) Add GetTileMaxZ(), which returns the height of the highest ↵tron
corner of a tile, and use it to simplify the code in a few places
2006-04-28(svn r4614) CodeChange : Cleanup of industry_cmd (Step-4).belugas
Removing the _industry_type_costs in favor of IndustrySpec.cost_multiplier; In order to let industry_gui use the GetIndustrySpec accessor, some structs had to be moved in industry.h
2006-04-26(svn r4584) CodeChange : Cleanup of industry_cmd (Step-3).belugas
Renaming GetIndustrySpecification to GetIndustrySpec. Looks better. Removing the _industry_prod_up/down/close_strings in favor of IndustrySpec.closure/production_up/down_text; A few reformatting along the way. Work of tfc_team
2006-04-26(svn r4578) CodeChange : Cleanup of industry_cmd (Step-2).belugas
Removing the _industry_min_cargo[] in favor of IndustrySpec.minimal_cargo, IndustrySpec.a,b,c are now conflicting[], add an enum for IndustrySpec.checkproc Work of tfc_team
2006-04-26(svn r4577) CodeChange : Cleanup of industry_cmd (Step-1).belugas
Add an accessor to _industry_specs array. Work of tfc_team
2006-04-26(svn r4576) Fix : Temperate bank will no longer appear (during game) in ↵belugas
tropic landscape. This bug is from the original game.
2006-04-25(svn r4572) Remove vehicle_leave_tile_proctron
There's exactly one implemented function (unbarring a level crossing) and one place where it can be triggered (a train leaves a level crossing) It's a bit overkill, so just handle this one case where it can happen
2006-04-24(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures ↵belugas
toguether.
2006-04-23(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}tron
2006-04-23(svn r4541) Add a type for slopes and replace many magic numbers by the ↵tron
appropriate enums
2006-04-18(svn r4471) - Pools: Add a facility for calling a custom function during ↵peter1138
pool block clean up.
2006-04-18(svn r4467) -Fix: New plantations now cause the correct ".. being planted ↵celestar
.." news item (MeusH)
2006-04-15(svn r4425) Fix bug introduced in r4411 : while IS_BYTE_INSIDE, max value is ↵belugas
STRICKLY LESS THEN. This caused airports animations to stay unanimated. Industries were similarly affected. Thanks to Richk67 for finding it. Also, more Gfx define and use.
2006-04-14(svn r4411) CodeChange : Define and use some Gfx for both stations and ↵belugas
industries. More are still to come Also, a bit of code cleaning, as pointed by Tron
2006-04-12(svn r4399) CodeChange : Add and make use of [G|S]etIndustryAnimationLoop ↵belugas
accessors.
2006-04-10(svn r4350) CodeChange : Add and use accessors [G|S]etIndustrype. Define and ↵belugas
use IndustryGfx type instead of uint
2006-04-10(svn r4347) CodeChange : Renamed IndustryType to IndustryLifeType. Cleanup ↵belugas
step toward bringing accessors [G|S]etIndustrype
2006-04-10(svn r4346) CodeChange : Add and Use Accessors to Industry's Stage and ↵belugas
Counter construction. Removed last direct map access from Disaster_cmd.c as well. Based on work from Rubidium in tfc_newmap
2006-04-10(svn r4345) -Codechange: Similar to airport tiles, rename _industry_map5_ ↵celestar
arrays to _industry_sections
2006-04-10(svn r4342) Change the first two parameters of commands - virtual pixel ↵tron
coordinates of the tile to operate on - to a TileIndex Remove DoCommandByTile(), because now it does the same as DoCommand()
2006-04-04(svn r4279) s/\<CL_/CLEAR_/tron
2006-04-04(svn r4270) Rename some bogus map5 to gfxtron
2006-04-03(svn r4249) -Codechange: Replace more occurences of 16 by TILE_SIZE and of 8 ↵celestar
by TILE_HEIGHT. Reverted one change from the previous commit because it was faulty
2006-04-03(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZEcelestar
2006-04-02(svn r4242) Pass TileIndex and slope to GetSlopeTileh_*() instead of TileInfotron
2006-03-30(svn r4181) CodeChange : Replaced [G/S]etMapExtraBits by [G/S]etTropicZone. ↵belugas
Although it was an accessor, nor his usage nor the values were clear.
2006-03-26(svn r4128) - CodeChange: Add proper semantics for CargoID for such ↵Darkvater
variables instead of using the general byte-type.
2006-03-26(svn r4120) Use the new station functions where appropriatetron
2006-03-25(svn r4108) Add [GS]etIndustryGfx()tron
2006-03-24(svn r4092) CodeChange : Named sprites instead of magic numbers plus ↵belugas
create/use helper macro/enum for recoloring scheme
2006-03-24(svn r4087) Add IsIndustryCompleted() to check if a industry tile is fully builttron
2006-03-24(svn r4086) Add MakeIndustry()tron
2006-03-24(svn r4077) Add GetIndustry{Index,ByTile}() to get the industry index resp. ↵tron
the industry from a tile
2006-03-22(svn r4027) Remove another call to FindLandscapeHeightByTile()tron
2006-03-22(svn r4007) Add a function to make a farm field tiletron
2006-03-21(svn r4004) -CodeChange : Renaming sprites and functionsbelugas
2006-03-21(svn r3996) -Fix: Slope and height information returned for some tile types ↵tron
is wrong This leads to graphical glitches when drawing foundations. This doesn't fix all problems, but at least some of them.
2006-03-16(svn r3895) - Add proper SLE(G)_CONDNULL macros for the empty space ↵Darkvater
reservation in savegames and update where used - Also add this capability to settings
2006-03-09(svn r3805) - [FS#62] Fix doxygen comments to refer to the correct ↵peter1138
parameter. (sulai)
2006-03-08(svn r3783) Replace further ints and magic numbers by Direction, ↵tron
DiagDirection and friends
2006-03-05(svn r3763) Adapt to the new 'map accessors go in foo_map.h'-schemetron