Age | Commit message (Collapse) | Author | |
---|---|---|---|
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'-scheme | tron | |
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 tiles | tron | |
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 functions | tron | |
2005-12-10 | (svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed() | peter1138 | |
2005-11-16 | (svn r3205) Some more uses for GB/SB | tron | |
2005-11-16 | (svn r3195) Use bitfields instead of explicit shifting/masking | tron | |
2005-11-14 | (svn r3181) -Bracing | tron | |
-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 names | tron | |
2005-11-14 | (svn r3179) - RandomRange() and RandomTile() instead of home brewed versions | tron | |
- CHANCE*() instead of mumbling strange numbers | |||
2005-11-13 | (svn r3172) static, const | tron | |
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 names | tron | |
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 SB | tron | |
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 | |||
2005-09-18 | (svn r2962) - const correctness for all Get* functions and most Draw* ↵ | Darkvater | |
functions that don't change their pointer parameters - change a lot of byte player types to PlayerID - beautify header files, same "#endif /* filename */" ending | |||
2005-08-23 | (svn r2886) Rename the "owner" attribute to "m1", because when it stores an ↵ | tron | |
owner it is accessed by [GS]etOwner anyway and when it doesn't store an owner, but arbitrary data, accessing a field called "owner" is confusing. | |||
2005-08-01 | (svn r2780) Remove some more unused strings and make the use of a few ↵ | tron | |
strings more explicit | |||
2005-07-24 | (svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic ↵ | celestar | |
numbers by enums. There remains work in gfx.c to move the "transparency" and "recolor" bits around to make space for more sprites. However, 2800 additional sprites can now be loaded. There also remains cleanup and Doxygen work on many of the header files. | |||
2005-07-24 | (svn r2701) Insert Id tags into all source files | tron | |
2005-07-22 | (svn r2673) Include functions.h directly, not globally via openttd.h | tron | |
2005-07-21 | (svn r2669) Shuffle some more stuff around to reduce dependencies | tron | |
2005-07-21 | (svn r2660) Get rid of some more shifting/anding/casting | tron | |
2005-07-20 | (svn r2658) -Codechange: Use MAKE_TRANSPARENT to display a transparented sprite | celestar | |
2005-07-20 | (svn r2650) Convert many explicit shifts+ands to extract bits to invocations ↵ | tron | |
of GB - should be a bit nicer to read | |||
2005-07-19 | (svn r2643) Get rid of some unnecessary casts | tron | |
2005-07-16 | (svn r2595) -Codechange: Introduced "IsSteepTileh" to find whether a tile is ↵ | celestar | |
steep (i.e. spans two height levels) and use it throughout the code. -Codechange: Add CanBuildDepotByTileh to find if a tile is suitable to build a depot on it. Wraps some bitmagic which seems quite unreadable at first glance | |||
2005-07-15 | (svn r2582) Fix: Prevent generating unrealistically many Oil refineries on ↵ | ludde | |
large maps. They are always placed next to the borderline, so the perimeter is used instead of area to scale the number of those industries. | |||
2005-07-15 | (svn r2580) Change: Added {INDUSTRY} command for printing industry names ↵ | ludde | |
instead of the old {TOWN} {STRING} way. - The formatting of the industry name can be controlled with the string STR_INDUSTRY_FORMAT. Change: Changed several occurences of {STRING1} into {TOWN} to get rid of townnametype being used directly. | |||
2005-07-15 | (svn r2570) Fix: Removed some code that had no effect. | ludde | |
2005-07-13 | (svn r2560) Fix: various minor code changes. | ludde | |
Added RandomTile/RandomTileSeed functions to generate a random tile. Changed landscape routines so they don't assume that the Y map side is a power of two. (support for this is not complete, though) Changed some frequently used map macros to not compute the values each time. Silence some warnings on MSVC. | |||
2005-07-13 | (svn r2558) Change the internal map format from 7 arrays to one array of ↵ | tron | |
structs, this doesn't change the saved format for now. It's a stepping stone for further changes. | |||
2005-06-25 | (svn r2487) Replace TILE_XY by TileXY/TileDiffXY | tron | |
2005-06-25 | (svn r2486) Turn TILE_FROM_XY into an inline function and rename it to ↵ | tron | |
TileVirtXY | |||
2005-06-24 | (svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile" | tron | |
2005-06-02 | (svn r2397) - CodeChange: rename all "ttd" files to "openttd" files. | Darkvater | |
2005-05-30 | (svn r2387) - CodeChange: made the saveload code more readable and also ↵ | Darkvater | |
removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big. - Fix: also fix an unnoticed error in SlSaveLoadConv() due to wrong types. |