summaryrefslogtreecommitdiff
path: root/smallmap_gui.c
AgeCommit message (Collapse)Author
2006-09-04(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines ↵rubidium
more uniform. -Cleanup: whitespace alignment of a few tables.
2006-08-31(svn r6266) Replace four shifts by a single multiplication and let the ↵tron
compiler handle what to do with it - it does a better job
2006-08-30(svn r6238) Use the colour stored in _colour_gradient[] instead of ↵tron
explicitly retrieving it with GetNonSprite()
2006-08-29(svn r6205) -CodeChange : use a switch case instead of a cascade of ifbelugas
-CodeChange : rename var Engine *e to Engine *eng, since we have WindowEvent *e in same fnct -CodeChange : fix a broken tabulation on a switch case. SOme breathing spaces too
2006-08-28(svn r6184) Remove the unused (because it was NULL in all callers) second ↵tron
parameter of FillDrawPixelInfo() and simplify some expressions
2006-08-22(svn r6057) -Codechange: made a function GetRandomXXX, that _always_ returns ↵truelight
a valid XXX, unless there are none to pick from. Then NULL is returned.
2006-08-22(svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips ↵truelight
invalid ones -Codechange: use IsValidXXX where ever possible Note: both changes to prepare for new pool system, which needs those changes. For every pool there are 2 ugly lines, which will be removed when done implementing new pool system. Based on FS#13 by blathijs, partly implemented.
2006-08-22(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. ↵rubidium
whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
2006-08-21(svn r6040) -Add: when clicking twice on a Location Button, the SmallMap ↵truelight
centers on your position (based on FS#54 by thomasdev) -Add: when clicking twice in SmallMap on a position, it centers there (based on FS#54 by thomasdev) -Add: add a button in SmallMap that centers the SmallMap on your current position (based on FS#54 by thomasdev)
2006-08-21(svn r6038) -Codechange: move mousewheel code to event WE_MOUSEWHEEL instead ↵truelight
of a general function that handles that -Codechange: use always 'e' for WindowsEvent, neverr 'we'
2006-08-21(svn r6036) -Codechange: do not handle SCROLL in a central function, but let ↵truelight
windows handle them theirself. Added WE_SCROLL for this.
2006-07-26(svn r5609) CodeChange : Apply coding stylebelugas
2006-06-10(svn r5210) Many small changes which piled up: const, unsigned, variable ↵tron
scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
2006-05-21(svn r4938) Remove STATION_HANGAR, because it isn't really a station type of ↵tron
its own
2006-04-10(svn r4350) CodeChange : Add and use accessors [G|S]etIndustrype. Define and ↵belugas
use IndustryGfx type instead of uint
2006-04-04(svn r4279) s/\<CL_/CLEAR_/tron
2006-04-04(svn r4271) s/\<TR_/TREE_/ resp. s/\<TR_/TREE_GROUND/tron
2006-04-03(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZEcelestar
2006-03-31(svn r4199) - Codechange: Use industry map accessors to get industry ↵peter1138
graphics type.
2006-03-26(svn r4120) Use the new station functions where appropriatetron
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'-schemetron
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 tilestron
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 parenthesestron
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, TOGGLEBITtron
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 filestron
2005-07-22(svn r2673) Include functions.h directly, not globally via openttd.htron
2005-07-21(svn r2669) Shuffle some more stuff around to reduce dependenciestron
2005-07-15(svn r2571) Add explicit type Pixel for ... Pixelstron
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/TileDiffXYtron
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 bittron