summaryrefslogtreecommitdiff
path: root/viewport.c
AgeCommit message (Collapse)Author
2006-09-23(svn r6499) -Codechange: Finally, got "byte event" outside of the union ↵belugas
WindowEvent, which is now a struct
2006-09-16(svn r6462) -Codechange: Have GetStringWidth() return width as well as the ↵Darkvater
height bounding box of the string. Therefore rename the function to GetStringBoundingRect() and have it return a BoundingRect type of width/height
2006-09-03(svn r6368) -Fix [FS#136]: Station catchment area persists after switching ↵Darkvater
tools. The correct fix was to reset the highlight box if any size changes (grimrc)
2006-09-02(svn r6348) -Codechange: Remove redundant assignmenttron
2006-09-02(svn r6347) Undotron
2006-09-02(svn r6346) -Codechange: Remove redundant assignmenttron
2006-08-31(svn r6256) if () cascades -> switch ()tron
2006-08-29(svn r6222) Remove struct ColorList, because the names of its attributes are ↵tron
plain confusing All the struct holds is a simple colour gradient, so using a simple array with 8 entries is more clear Also add the names of colour the gradients as enum
2006-08-29(svn r6211) Commit file forgotten in r6210tron
2006-08-22(svn r6050) -Codechange: mass-renamed SignStruct -> Sign and ss -> si. Now ↵truelight
functions and variables all match eachother
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-21(svn r6041) -Fix r6040: forgot to declare a function in viewport.ctruelight
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 r6035) -Revert r5900 which supposedly fixed an invalid warning caused ↵Darkvater
by buggy MS software
2006-08-14(svn r5900) -Fix [FS#84]: Warning silencing fix for OpenTTD on Windows x64 ↵Darkvater
(michi_cc)
2006-08-07(svn r5806) Inline FindLandscapeHeight() into its only remaining caller and ↵tron
remove the attribute "type" from struct TileInfo
2006-08-06(svn r5794) Pass the TileIndex plus x and y coordinates into GetSlopeZ_* ↵tron
instead of a TileInfo
2006-07-29(svn r5631) Don't allocate memory for information about a sprite which isn't ↵tron
drawn
2006-07-29(svn r5630) Replace a boolean variable by continuetron
2006-07-29(svn r5629) Simplify the test whether two bounding boxes overlaptron
2006-07-29(svn r5628) Rename the attributes for the bounding box of struct ↵tron
ParentSpriteToDraw to something sensible. Half of them was totally off: right is left, bottom is top *sigh*
2006-07-26(svn r5609) CodeChange : Apply coding stylebelugas
2006-07-23(svn r5597) Remove the unused attribute ground_child from struct ViewportDrawertron
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
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-11(svn r4819) -Debug: When clicking on a vehicle in the viewport, the index ↵celestar
and address of the vehicle get dumped for "misc" debug levels >= 2
2006-05-09(svn r4802) - Codechange: replace _stringwidth_base and associated magic ↵peter1138
numbers with a FontSize enum, using the numbers (which are SpriteIDs) in only the places needed.
2006-04-23(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}tron
2006-04-23(svn r4541) Add a type for slopes and replace many magic numbers by the ↵tron
appropriate enums
2006-04-21(svn r4502) -Cleanup: Remove code unused since rev1. (Rubidium)celestar
2006-04-03(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZEcelestar
2006-03-21(svn r3995) -Fix: Committed one file too much in 3992 (Thanks to Tron for ↵celestar
pointing it out)
2006-03-20(svn r3992) -Fix: Rewrote the code to determine whether a rail-tile can be ↵celestar
terraformed. Fixes a bug where you could terraform a tunnel (fixed by r3228, but reverted that one) Fixes a bug introduced by r3228 which allowed steep rail tiles resulting in ... unwanted effects such as display artifacts. That means the terraform feature should not work as intended; it also uses _valid_tileh_slopes to determine valid configurations instead of hand-brewn stuff. TODO: _terraform_err_tile and similar TileIndices should have INVALID_TILE as "unused", not 0. (0 is a valid tile).
2006-02-01(svn r3511) More whitespace ([FS#46] by Rubidium)tron
2006-01-05(svn r3365) Staticise 36 functionstron
2006-01-05(svn r3364) Remove 3 unused functions (ScrollWindowToTile, ↵tron
AllocateWindowAutoPlace, AllocateWindowAutoPlace2)
2005-12-02(svn r3254) - Fix: graphical glitch with autorail tool on a certain tile-type.Darkvater
- CodeChange: adhere the global variables in autorail.h to the coding style (eg. start with underscore).
2005-11-18(svn r3218) -Feature: Multiheaded train engines will now stay in the same trainbjarni
This means that any user attempt to remove a rear engine will tell the user to move the front engine instead This fixes the assert when moving multiheaded engines (introduced in r3144) Note: to make old savegames use this feature, some engines might be turned around in order to link engines in pairs -Codechange: train subtype is now a bitmask This allows fast access to info like if it is a wagon or engine and if it is in front and so on Note: savegame version bump
2005-11-16(svn r3204) Make handling of clicking on vehicles a bit less ugly by ↵tron
avoiding function declarations in .c files and unnecessary indirection
2005-10-03(svn r3010) Get rid of quite some dubious casts, either by using GB(), ↵tron
proper types or just removing them
2005-10-02(svn r3008) [ 1247535 ] Native Support for Win64 (compile&run only) (michi_cc)Darkvater
Fix warning in graph_gui.c with const problem
2005-08-08(svn r2845) Remove sprite size caching, it was unusedtron
This makes GetSpriteDimension() superflous, because now it's just a thin wrapper around GetSprite() returning only part of the information, therefore remove it too
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 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-19(svn r2635) Fix: [ntp/misc] Improve the old pathfinder. Changed it to A* ↵ludde
instead of Dijkstra. - Benchmark shows that NTP is now around 10x faster than NPF. - Made IsTunnelTile macro to determine if a tile is a tunnel. - Added some useful debugging functions for making tiles red / getting accurate timestamps. - Remove old depot finding algorithm. - Disable warning for signed/unsigned comparisons.
2005-07-17(svn r2626) static, const, misc.tron
2005-07-17(svn r2619) Fix: [viewport] Fix potential buffer overflow reported by Tronludde
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