rubidium
908d3bcfe6
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
18 years ago
rubidium
43af0ced5f
(svn r6005) -Cleanup: introduce IndustryID and use it
...
-Cleanup: use TownID and StationID for two instances of uint16
18 years ago
rubidium
db397d5a75
(svn r6002) -Cleanup: remove the now redundant BASE_YEAR constant.
18 years ago
truelight
0c760998b3
(svn r6001) -Feature: when removing a farm, his farmland is removed too (over time) (based on peter1138's patch, FS#82)
...
To make this to work, in older games farmland is removed on load, and replanted
18 years ago
rubidium
6fb092aa7a
(svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0.
...
The game date subsystem now allows someone to start in the year 0 and continue
up to the year 5 000 000. However, you currently cannot build anything before
1920 as there is no newgrf support for dates before 1920 or after 2090 yet.
18 years ago
rubidium
5ae6080913
(svn r5966) -Fix: prevent that the industry placement's terraforming checks can leave the map on the southern side
18 years ago
truelight
626788756e
(svn r5948) -Fix: inversed check caused oringal land-generator to put industries on mountains (tnx Darkvater)
18 years ago
truelight
7abad2b20e
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
...
- 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
18 years ago
rubidium
894d9fc12f
(svn r5934) -Cleanup: forgot some conversions to Year and to Date
...
-Cleanup: use _cur_year instead of _date for some (year based) comparisons
-Cleanup: remove a magic number in favour of another (less) magic number
18 years ago
rubidium
e87e065e41
(svn r5926) -Codechange: make _cur_year contain the full year, instead of 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
18 years ago
rubidium
9fc837ad85
(svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
...
-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments
18 years ago
tron
d8b8035f9f
(svn r5794) Pass the TileIndex plus x and y coordinates into GetSlopeZ_* instead of a TileInfo
18 years ago
tron
772fbda3e3
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
18 years ago
tron
d508e76ada
(svn r4920) Remove parameters, which get only used in certain functions, by splitting those functions.
...
At least in the case of checking for oil industry restrictions this makes the check conditions more clear.
19 years ago
tron
ebcf2ee3b1
(svn r4765) Add GetTileMaxZ(), which returns the height of the highest corner of a tile, and use it to simplify the code in a few places
19 years ago
belugas
910825b1d5
(svn r4614) CodeChange : Cleanup of industry_cmd (Step-4).
...
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
19 years ago
belugas
4cd5c56e84
(svn r4584) CodeChange : Cleanup of industry_cmd (Step-3).
...
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
19 years ago
belugas
dbb73b9c98
(svn r4578) CodeChange : Cleanup of industry_cmd (Step-2).
...
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
19 years ago
belugas
5ea5ceaab4
(svn r4577) CodeChange : Cleanup of industry_cmd (Step-1).
...
Add an accessor to _industry_specs array.
Work of tfc_team
19 years ago
belugas
1903832c98
(svn r4576) Fix : Temperate bank will no longer appear (during game) in tropic landscape.
...
This bug is from the original game.
19 years ago
tron
b57640e28a
(svn r4572) Remove vehicle_leave_tile_proc
...
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
19 years ago
belugas
31c0641bd3
(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.
19 years ago
tron
6dbc9c9ced
(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}
19 years ago
tron
dd180a1e18
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
19 years ago
peter1138
100cc6fea7
(svn r4471) - Pools: Add a facility for calling a custom function during pool block clean up.
19 years ago
celestar
b5fa656a30
(svn r4467) -Fix: New plantations now cause the correct ".. being planted .." news item (MeusH)
19 years ago
belugas
ccfeb13047
(svn r4425) Fix bug introduced in r4411 : while IS_BYTE_INSIDE, max value is 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.
19 years ago
belugas
c09109cc67
(svn r4411) CodeChange : Define and use some Gfx for both stations and industries. More are still to come
...
Also, a bit of code cleaning, as pointed by Tron
19 years ago
belugas
b0906708a0
(svn r4399) CodeChange : Add and make use of [G|S]etIndustryAnimationLoop accessors.
19 years ago
belugas
ddd96570ca
(svn r4350) CodeChange : Add and use accessors [G|S]etIndustrype. Define and use IndustryGfx type instead of uint
19 years ago
belugas
f555554cf8
(svn r4347) CodeChange : Renamed IndustryType to IndustryLifeType. Cleanup step toward bringing accessors [G|S]etIndustrype
19 years ago
belugas
43101bd2d1
(svn r4346) CodeChange : Add and Use Accessors to Industry's Stage and Counter construction. Removed last direct map access from Disaster_cmd.c as well. Based on work from Rubidium in tfc_newmap
19 years ago
celestar
24f871deba
(svn r4345) -Codechange: Similar to airport tiles, rename _industry_map5_ arrays to _industry_sections
19 years ago
tron
35e93e451f
(svn r4342) Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex
...
Remove DoCommandByTile(), because now it does the same as DoCommand()
19 years ago
tron
aa5777c874
(svn r4279) s/\<CL_/CLEAR_/
19 years ago
tron
ced23db3dc
(svn r4270) Rename some bogus map5 to gfx
19 years ago
celestar
69e1c716e8
(svn r4249) -Codechange: Replace more occurences of 16 by TILE_SIZE and of 8 by TILE_HEIGHT. Reverted one change from the previous commit because it was faulty
19 years ago
celestar
6443c14ebd
(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZE
19 years ago
tron
7163a64c25
(svn r4242) Pass TileIndex and slope to GetSlopeTileh_*() instead of TileInfo
19 years ago
belugas
1b28d92fc8
(svn r4181) CodeChange : Replaced [G/S]etMapExtraBits by [G/S]etTropicZone. Although it was an accessor, nor his usage nor the values were clear.
19 years ago
Darkvater
e91fa54a15
(svn r4128) - CodeChange: Add proper semantics for CargoID for such variables instead of using the general byte-type.
19 years ago
tron
c40740e058
(svn r4120) Use the new station functions where appropriate
19 years ago
tron
a77e3bd855
(svn r4108) Add [GS]etIndustryGfx()
19 years ago
belugas
ed86c3d818
(svn r4092) CodeChange : Named sprites instead of magic numbers plus create/use helper macro/enum for recoloring scheme
19 years ago
tron
d1bd1a7035
(svn r4087) Add IsIndustryCompleted() to check if a industry tile is fully built
19 years ago
tron
662885ecd1
(svn r4086) Add MakeIndustry()
19 years ago
tron
8ce4bdfad9
(svn r4077) Add GetIndustry{Index,ByTile}() to get the industry index resp. the industry from a tile
19 years ago
tron
ef42b6cc7c
(svn r4027) Remove another call to FindLandscapeHeightByTile()
19 years ago
tron
1184811bc0
(svn r4007) Add a function to make a farm field tile
19 years ago
belugas
fc6874a52e
(svn r4004) -CodeChange : Renaming sprites and functions
19 years ago