tron
5622ad4b5e
(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
7ab8b20faf
(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
6a31b30a20
(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
8d622e04f8
(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
8443f43d1f
(svn r4577) CodeChange : Cleanup of industry_cmd (Step-1).
...
Add an accessor to _industry_specs array.
Work of tfc_team
19 years ago
belugas
5c7cf7d0e5
(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
18ad0ae50e
(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
ebf6797678
(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.
19 years ago
tron
c1dc517dab
(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}
19 years ago
tron
0347fb2ab6
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
19 years ago
peter1138
ae7ec5cd0d
(svn r4471) - Pools: Add a facility for calling a custom function during pool block clean up.
19 years ago
celestar
4287cfb640
(svn r4467) -Fix: New plantations now cause the correct ".. being planted .." news item (MeusH)
19 years ago
belugas
ea706f8ead
(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
e84d878213
(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
0a9d5f051f
(svn r4399) CodeChange : Add and make use of [G|S]etIndustryAnimationLoop accessors.
19 years ago
belugas
f1da549c10
(svn r4350) CodeChange : Add and use accessors [G|S]etIndustrype. Define and use IndustryGfx type instead of uint
19 years ago
belugas
8166a53179
(svn r4347) CodeChange : Renamed IndustryType to IndustryLifeType. Cleanup step toward bringing accessors [G|S]etIndustrype
19 years ago
belugas
a972760294
(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
eae5fcc455
(svn r4345) -Codechange: Similar to airport tiles, rename _industry_map5_ arrays to _industry_sections
19 years ago
tron
81e6d68f95
(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
99a6b9b8f2
(svn r4279) s/\<CL_/CLEAR_/
19 years ago
tron
5f7a0a748d
(svn r4270) Rename some bogus map5 to gfx
19 years ago
celestar
cc87f682b9
(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
3aa1e38be6
(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZE
19 years ago
tron
892a4c587d
(svn r4242) Pass TileIndex and slope to GetSlopeTileh_*() instead of TileInfo
19 years ago
belugas
80570009dd
(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
d5909f901a
(svn r4128) - CodeChange: Add proper semantics for CargoID for such variables instead of using the general byte-type.
19 years ago
tron
cda8934a55
(svn r4120) Use the new station functions where appropriate
19 years ago
tron
0c581f8361
(svn r4108) Add [GS]etIndustryGfx()
19 years ago
belugas
26a5b62865
(svn r4092) CodeChange : Named sprites instead of magic numbers plus create/use helper macro/enum for recoloring scheme
19 years ago
tron
0977a8a04e
(svn r4087) Add IsIndustryCompleted() to check if a industry tile is fully built
19 years ago
tron
05bae48ef8
(svn r4086) Add MakeIndustry()
19 years ago
tron
4b0e8947d5
(svn r4077) Add GetIndustry{Index,ByTile}() to get the industry index resp. the industry from a tile
19 years ago
tron
e8f5d89712
(svn r4027) Remove another call to FindLandscapeHeightByTile()
19 years ago
tron
9428ab372f
(svn r4007) Add a function to make a farm field tile
19 years ago
belugas
3b16ae365b
(svn r4004) -CodeChange : Renaming sprites and functions
19 years ago
tron
820b8ca230
(svn r3996) -Fix: Slope and height information returned for some tile types is wrong
...
This leads to graphical glitches when drawing foundations.
This doesn't fix all problems, but at least some of them.
19 years ago
Darkvater
d9ee10d3b8
(svn r3895) - Add proper SLE(G)_CONDNULL macros for the empty space reservation in savegames and update where used
...
- Also add this capability to settings
19 years ago
peter1138
9c7f09322e
(svn r3805) - [FS#62] Fix doxygen comments to refer to the correct parameter. (sulai)
19 years ago
tron
fbe939b31f
(svn r3783) Replace further ints and magic numbers by Direction, DiagDirection and friends
19 years ago
tron
cc4f5b4e6f
(svn r3763) Adapt to the new 'map accessors go in foo_map.h'-scheme
19 years ago
tron
673ce4e3e0
(svn r3683) Get rid of another FindLandscapeHeight()
19 years ago
Darkvater
45e85d2eb2
(svn r3627) - Change all hardcoded 255 max-saveload versions with the define SL_MAX_VERSION
19 years ago
tron
6132fcea44
(svn r3554) Add accessors for the field type and fences of clear tiles
19 years ago
tron
ac4f4e30d5
(svn r3514) -Codechange: Replace direct fiddling of bits for the ground type and density of clear tiles with symbolic names and accessors.
...
See clear.h for details
19 years ago
tron
84fb96fe85
(svn r3511) More whitespace ([FS#46] by Rubidium)
19 years ago
peter1138
128249e63e
(svn r3416) - Fix: Disallow building an oil rig above sea level.
19 years ago
tron
e272b03fee
(svn r3365) Staticise 36 functions
19 years ago
peter1138
809b03c81a
(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()
19 years ago
tron
ec57ef78a2
(svn r3205) Some more uses for GB/SB
19 years ago