summaryrefslogtreecommitdiff
path: root/industry_cmd.c
AgeCommit message (Collapse)Author
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
2006-02-28(svn r3683) Get rid of another FindLandscapeHeight()tron
2006-02-20(svn r3627) - Change all hardcoded 255 max-saveload versions with the define ↵Darkvater
SL_MAX_VERSION
2006-02-05(svn r3554) Add accessors for the field type and fences of clear tilestron
2006-02-01(svn r3514) -Codechange: Replace direct fiddling of bits for the ground type ↵tron
and density of clear tiles with symbolic names and accessors. See clear.h for details
2006-02-01(svn r3511) More whitespace ([FS#46] by Rubidium)tron
2006-01-22(svn r3416) - Fix: Disallow building an oil rig above sea level.peter1138
2006-01-05(svn r3365) Staticise 36 functionstron
2005-12-10(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()peter1138
2005-11-16(svn r3205) Some more uses for GB/SBtron
2005-11-16(svn r3195) Use bitfields instead of explicit shifting/maskingtron
2005-11-14(svn r3181) -Bracingtron
-Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if
2005-11-14(svn r3180) Replace some magic numbers by symbolic namestron
2005-11-14(svn r3179) - RandomRange() and RandomTile() instead of home brewed versionstron
- CHANCE*() instead of mumbling strange numbers
2005-11-13(svn r3172) static, consttron
2005-11-04(svn r3135) Use symbolic names in the tables, which hold the information ↵tron
about accepted goods of industry tiles, instead of magic numbers
2005-10-23(svn r3078) Some more stuff, which piled up:tron
- const, whitespace, indentation, bracing, GB/SB, pointless casts - use the trinary operator where appropriate - data types (uint[] -> AcceptedCargo, ...) - if cascade -> switch - if (ptr) -> if (ptr != NULL) - DeMorgan's Law - Fix some comments - 0 -> '\0', change magic numbers to symbolic constants
2005-10-22(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in ↵tron
comments, excess empty lines, minor other changes nothing spectacular, just some stuff, which piled up
2005-10-19(svn r3066) Constify the parameter of GetSlopeZ_*()tron
2005-10-19(svn r3064) Replace some numbers by sprite namestron
2005-10-07(svn r3024) -Codechange: Another batch of replacements of ↵tron
int/uint/int16/byte/-1 with proper types and constants
2005-10-05(svn r3019) -Codechange: Replace explicit shifting/anding/oring with GB and SBtron
2005-10-05(svn r3018) -Fix: Fixed industry colour issue introduced in r3010.peter1138
2005-10-03(svn r3010) Get rid of quite some dubious casts, either by using GB(), ↵tron
proper types or just removing them
2005-09-28(svn r2995) Replace 0xFF/0xFFFF with ↵tron
CT_INVALID/OWNER_SPECTATOR/INVALID_STATION where appropriate