Age | Commit message (Collapse) | Author | |
---|---|---|---|
2006-03-26 | (svn r4120) Use the new station functions where appropriate | 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-16 | (svn r3907) Replace many bridge related direct map accesses with calls to ↵ | tron | |
shiny new functions and mark some strange constructs with XXX | |||
2006-03-12 | (svn r3830) Move IsTunnelTile() from tile.h to tunnel_map.h and add ↵ | tron | |
IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does | |||
2006-03-11 | (svn r3820) Be a bit more strict with types: use special types instead of ↵ | tron | |
generic byte and don't fill arbitrary data into inappropriate types | |||
2006-03-05 | (svn r3763) Adapt to the new 'map accessors go in foo_map.h'-scheme | tron | |
2006-02-06 | (svn r3564) Several smaller changes: | tron | |
- Don't treat non-booleans as booleans - Reduce variable scope - Bracing - Use DeMorgan's law to make conditionals easier to read - if cascade -> switch - Replace some magic numbers by symbolic names - Avoid assignments within other statements | |||
2006-02-05 | (svn r3559) - CodeChange: simplify MKCOLOR(x) macro for smallmap_gui.c by ↵ | Darkvater | |
adding a TO_LE32X() macro next to TO_BE32X(). The 'X' signifies them as macros and not-inline functions so they can be used in variable declarations. | |||
2006-02-05 | (svn r3556) Add accessors for handling tree tiles | tron | |
See tree.h for details | |||
2006-02-03 | (svn r3529) - Fix: [ 1415782 ] crash in string code with openbsd/zaurus; ↵ | Darkvater | |
alignment issues (thanks Tron for the help) | |||
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-02-01 | (svn r3510) Fiddle with whitespace and parentheses | tron | |
2006-01-28 | (svn r3462) - Fix: a one-off pixel alignment in the minimap window that ↵ | Darkvater | |
"overflowed" its panel in the tropical climate (qball should be satisfied now) | |||
2005-12-07 | (svn r3270) Correct all (mis)uses of WWT_CLOSEBOX / WWT_TEXTBTN to reflect ↵ | peter1138 | |
their actual use, and add "Close Window" tooltip where missing. | |||
2005-11-14 | (svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT | tron | |
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-08-27 | (svn r2894) Simplify colouring in owner-mode in the minimap regarding towns ↵ | tron | |
and get rid of some magic numbers | |||
2005-08-11 | (svn r2858) -Codechange: resolved some magic numbers (_Luca_) | truelight | |
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-15 | (svn r2571) Add explicit type Pixel for ... Pixels | tron | |
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-06 | (svn r2425) - Fix (regression): wrong sprite for level-land cursor (thx Tron) | Darkvater | |
- CodeChange: change MapSizeX() - 1 to MapMaxX() in the smallmap drawing code | |||
2005-06-06 | (svn r2424) - Fix: backport the smallmap_gui.c changes from the map/ branch ↵ | Darkvater | |
into trunk. This also implicitely fixes the bug where the game would crash in certain resolutions with certain minimap masks when dragged partly outside the game-area. | |||
2005-06-04 | (svn r2407) Use {Get,Is}TileOwner to get/check the owner of a tile and fix ↵ | tron | |
some bogus reads of _map_owner | |||
2005-06-02 | (svn r2397) - CodeChange: rename all "ttd" files to "openttd" files. | Darkvater | |
2005-05-15 | (svn r2319) - Fix: copying/pasting from the extra viewport did not center on ↵ | Darkvater | |
what you wanted to see if one of the windows (viewport or main) was zoomed out. Also fix the undisabled-zoom-in button upon creation. | |||
2005-03-17 | (svn r2020) Reduce code duplication in the minimap code a bit | tron | |
2005-03-17 | (svn r2019) Miscellaneous cleanups, like uint -> TileIndex, >> -> /, if ↵ | tron | |
cascade -> switch | |||
2005-03-15 | (svn r2015) Use a struct and an inline function for colour masking on the ↵ | tron | |
mini-map - this should improve readability a bit | |||
2005-02-10 | (svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites ↵ | tron | |
(returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*) | |||
2005-02-10 | (svn r1853) Move spritecache function declarations into a header of their ↵ | tron | |
own and use SpriteID as parameter type where appropriate | |||
2005-01-29 | (svn r1718) Use the enum TileType as parameter/return type for ↵ | tron | |
[GS]etTileType() instead of plain int. This makes it necessary to rename TileType() to GetTileType() because a type and a function may not share the same name. | |||
2005-01-29 | (svn r1713) Split off several functions which query/set information about a ↵ | tron | |
single tile from map.h and put them into a seperate file tile.h | |||
2005-01-22 | (svn r1594) Convert all undefined parameter lists to (void) and add the ↵ | tron | |
appropriate warning flags in the Makefile | |||
2005-01-22 | (svn r1593) Remove yet another alloca() | tron | |
2005-01-16 | (svn r1545) Add TileHeight() which returns the height (not multiplied by 8) | tron | |
Replace some direct references to _map_type_and_height with TileHeight()/IsTileType() | |||
2005-01-16 | (svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn ↵ | tron | |
them into inline functions and add some asserts | |||
2005-01-07 | (svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn ↵ | tron | |
the latter into inline functions names Tile[XY] | |||
2005-01-03 | (svn r1348) -Feature: resizable windows. Read the comment in window.h to ↵ | truelight | |
find out how the system works. All useful windows are already made resizable. Enjoy :) -Fix: fixed some GUI-glitches and flaws along the way | |||
2005-01-03 | (svn r1337) Use MapMax[XY]() (or MapSize[XY]() if appropriate) instead of ↵ | tron | |
TILE_MAX_[XY] While here replace one erroneous TILE_MAX_X with MapMaxY() | |||
2004-12-22 | (svn r1214) -Feature: Stickified Industries (list & window), Smallmaps (all ↵ | darkvater | |
three), Stations (list & window) and Towns (list & window). I hope I didn't forget to update a widget somewhere :O -Feature: With the sticky windows on and some unfortunate resizing of your game it the 'close' button might go outside of the playing field, making it impossible to close. Added an option to the Options menu that closes all windows, even if they are stickified ("Close ALL windows") | |||
2004-12-15 | (svn r1121) -Feature: Added sticky windows feature. A small pin allows the ↵ | darkvater | |
user to set the window as undeletable and can only be closed by hand. As an example the viewport window has been stickied (thanks to Neko-San) -To use the feature add WDF_STICKY_BUTTON to the widget description and update all widget-ID's since sticky button will be widget 2. | |||
2004-12-15 | (svn r1117) Move map arrays and some related macros into their own files ↵ | tron | |
map.c and map.h | |||
2004-12-04 | (svn r925) Use sound enums | tron | |
Also play the correct sound when a toyland road vehicle breaks down | |||
2004-12-02 | (svn r901) Small step in the process to clean up the DPARAM mess: | tron | |
- reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest) - use inline functions instead of macros - add assert()s to check for buffer overruns | |||
2004-11-25 | (svn r815) Include strings.h only in the files which need it. | tron | |
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled. |