smallmap_gui.c
Wed, 30 Aug 2006 14:30:26 +0000 tron (svn r6238) Use the colour stored in _colour_gradient[] instead of explicitly retrieving it with GetNonSprite()
Tue, 29 Aug 2006 00:17:47 +0000 belugas (svn r6205) -CodeChange : use a switch case instead of a cascade of if
Mon, 28 Aug 2006 07:33:51 +0000 tron (svn r6184) Remove the unused (because it was NULL in all callers) second parameter of FillDrawPixelInfo() and simplify some expressions
Tue, 22 Aug 2006 21:14:45 +0000 truelight (svn r6057) -Codechange: made a function GetRandomXXX, that _always_ returns a valid XXX, unless there are none to pick from. Then NULL is returned.
Tue, 22 Aug 2006 15:33:35 +0000 truelight (svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips invalid ones
Tue, 22 Aug 2006 14:38:37 +0000 rubidium (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.
Mon, 21 Aug 2006 17:41:04 +0000 truelight (svn r6040) -Add: when clicking twice on a Location Button, the SmallMap centers on your position (based on FS#54 by thomasdev)
Mon, 21 Aug 2006 14:59:58 +0000 truelight (svn r6038) -Codechange: move mousewheel code to event WE_MOUSEWHEEL instead of a general function that handles that
Mon, 21 Aug 2006 14:34:59 +0000 truelight (svn r6036) -Codechange: do not handle SCROLL in a central function, but let windows handle them theirself. Added WE_SCROLL for this.
Wed, 26 Jul 2006 03:33:12 +0000 belugas (svn r5609) CodeChange : Apply coding style
Sat, 10 Jun 2006 08:37:41 +0000 tron (svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
Sun, 21 May 2006 12:01:57 +0000 tron (svn r4938) Remove STATION_HANGAR, because it isn't really a station type of its own
Mon, 10 Apr 2006 21:00:56 +0000 belugas (svn r4350) CodeChange : Add and use accessors [G|S]etIndustrype. Define and use IndustryGfx type instead of uint
Tue, 04 Apr 2006 21:35:13 +0000 tron (svn r4279) s/\<CL_/CLEAR_/
Tue, 04 Apr 2006 06:25:05 +0000 tron (svn r4271) s/\<TR_/TREE_/ resp. s/\<TR_/TREE_GROUND/
Mon, 03 Apr 2006 05:32:11 +0000 celestar (svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZE
Fri, 31 Mar 2006 10:44:32 +0000 peter1138 (svn r4199) - Codechange: Use industry map accessors to get industry graphics type.
Sun, 26 Mar 2006 19:20:15 +0000 tron (svn r4120) Use the new station functions where appropriate
Fri, 24 Mar 2006 18:16:39 +0000 belugas (svn r4092) CodeChange : Named sprites instead of magic numbers plus create/use helper macro/enum for recoloring scheme
Thu, 16 Mar 2006 15:16:27 +0000 tron (svn r3907) Replace many bridge related direct map accesses with calls to shiny new functions and mark some strange constructs with XXX
Sun, 12 Mar 2006 15:04:03 +0000 tron (svn r3830) Move IsTunnelTile() from tile.h to tunnel_map.h and add IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
Sat, 11 Mar 2006 17:06:16 +0000 tron (svn r3820) Be a bit more strict with types: use special types instead of generic byte and don't fill arbitrary data into inappropriate types
Sun, 05 Mar 2006 10:19:33 +0000 tron (svn r3763) Adapt to the new 'map accessors go in foo_map.h'-scheme
Mon, 06 Feb 2006 09:18:04 +0000 tron (svn r3564) Several smaller changes:
Sun, 05 Feb 2006 23:12:23 +0000 Darkvater (svn r3559) - CodeChange: simplify MKCOLOR(x) macro for smallmap_gui.c by 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.
Sun, 05 Feb 2006 14:47:15 +0000 tron (svn r3556) Add accessors for handling tree tiles
Fri, 03 Feb 2006 21:51:42 +0000 Darkvater (svn r3529) - Fix: [ 1415782 ] crash in string code with openbsd/zaurus; alignment issues (thanks Tron for the help)
Wed, 01 Feb 2006 15:31:21 +0000 tron (svn r3514) -Codechange: Replace direct fiddling of bits for the ground type and density of clear tiles with symbolic names and accessors.
Wed, 01 Feb 2006 07:36:15 +0000 tron (svn r3511) More whitespace ([FS#46] by Rubidium)
Wed, 01 Feb 2006 06:32:03 +0000 tron (svn r3510) Fiddle with whitespace and parentheses
Sat, 28 Jan 2006 12:23:54 +0000 Darkvater (svn r3462) - Fix: a one-off pixel alignment in the minimap window that "overflowed" its panel in the tropical climate (qball should be satisfied now)
Wed, 07 Dec 2005 15:48:52 +0000 peter1138 (svn r3270) Correct all (mis)uses of WWT_CLOSEBOX / WWT_TEXTBTN to reflect their actual use, and add "Close Window" tooltip where missing.
Mon, 14 Nov 2005 08:09:57 +0000 tron (svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT
Sat, 22 Oct 2005 06:39:32 +0000 tron (svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
Sat, 27 Aug 2005 13:04:15 +0000 tron (svn r2894) Simplify colouring in owner-mode in the minimap regarding towns and get rid of some magic numbers
Thu, 11 Aug 2005 19:23:32 +0000 truelight (svn r2858) -Codechange: resolved some magic numbers (_Luca_)
Sun, 24 Jul 2005 14:12:37 +0000 tron (svn r2701) Insert Id tags into all source files
Fri, 22 Jul 2005 07:02:20 +0000 tron (svn r2673) Include functions.h directly, not globally via openttd.h
Thu, 21 Jul 2005 22:15:02 +0000 tron (svn r2669) Shuffle some more stuff around to reduce dependencies
Fri, 15 Jul 2005 14:16:14 +0000 tron (svn r2571) Add explicit type Pixel for ... Pixels
Wed, 13 Jul 2005 18:04:01 +0000 tron (svn r2558) Change the internal map format from 7 arrays to one array of structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
Sat, 25 Jun 2005 16:44:57 +0000 tron (svn r2487) Replace TILE_XY by TileXY/TileDiffXY
Mon, 06 Jun 2005 17:30:52 +0000 Darkvater (svn r2425) - Fix (regression): wrong sprite for level-land cursor (thx Tron)
Mon, 06 Jun 2005 15:58:58 +0000 Darkvater (svn r2424) - Fix: backport the smallmap_gui.c changes from the map/ branch 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.
Sat, 04 Jun 2005 11:56:32 +0000 tron (svn r2407) Use {Get,Is}TileOwner to get/check the owner of a tile and fix some bogus reads of _map_owner
Thu, 02 Jun 2005 19:30:21 +0000 Darkvater (svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
Sun, 15 May 2005 11:20:38 +0000 Darkvater (svn r2319) - Fix: copying/pasting from the extra viewport did not center on 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.
Thu, 17 Mar 2005 16:31:18 +0000 tron (svn r2020) Reduce code duplication in the minimap code a bit
Thu, 17 Mar 2005 09:59:52 +0000 tron (svn r2019) Miscellaneous cleanups, like uint -> TileIndex, >> -> /, if cascade -> switch
Tue, 15 Mar 2005 18:31:38 +0000 tron (svn r2015) Use a struct and an inline function for colour masking on the mini-map - this should improve readability a bit
Thu, 10 Feb 2005 12:14:38 +0000 tron (svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites (returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)
Thu, 10 Feb 2005 05:43:30 +0000 tron (svn r1853) Move spritecache function declarations into a header of their own and use SpriteID as parameter type where appropriate
Sat, 29 Jan 2005 15:12:40 +0000 tron (svn r1718) Use the enum TileType as parameter/return type for [GS]etTileType() instead of plain int.
Sat, 29 Jan 2005 12:19:05 +0000 tron (svn r1713) Split off several functions which query/set information about a single tile from map.h and put them into a seperate file tile.h
Sat, 22 Jan 2005 20:23:18 +0000 tron (svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
Sat, 22 Jan 2005 19:41:30 +0000 tron (svn r1593) Remove yet another alloca()
Sun, 16 Jan 2005 14:50:01 +0000 tron (svn r1545) Add TileHeight() which returns the height (not multiplied by 8)
Sun, 16 Jan 2005 11:24:58 +0000 tron (svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn them into inline functions and add some asserts
Fri, 07 Jan 2005 17:02:43 +0000 tron (svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]
Mon, 03 Jan 2005 19:45:18 +0000 truelight (svn r1348) -Feature: resizable windows. Read the comment in window.h to find out