rubidium
fddeeb5e49
(svn r27002) -Fix-ish: replace some non-ASCII characters with ASCII characters, e.g. @þaram to @param
2014-10-12 18:26:54 +00:00
rubidium
a229fb79b5
(svn r26910) -Fix: account for the height of the landscape at the edge of the map to determine the scroll boundaries (based on patch by ic111)
2014-09-22 18:14:44 +00:00
rubidium
adf237d550
(svn r26908) -Codechange: replace a magic number by a more logical calculation
2014-09-22 15:04:18 +00:00
rubidium
073aa05da5
(svn r26900) -Fix-ish: dirty the appropriate area around map edges when terraforming there to prevent any artefacts from occuring (ic111)
2014-09-21 17:29:48 +00:00
rubidium
4d619ad10e
(svn r26899) -Codechange: reduce the amount of tiles that needs to be drawn by taking the height of tiles into account instead of drawing way too many (ic111)
2014-09-21 17:27:37 +00:00
rubidium
c9d7e89138
(svn r26870) -Fix (r15190): since freeform edges the 'tile height' at southern edge * 8 pixels just 'south' of the edge tile would not be drawn and would as a result not be refreshed causing artefacts to remain there. This adds a virtual slope to level 0 so it can be redrawn appropriately. Loosely based on patch by ic111
2014-09-21 08:19:32 +00:00
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
fonsinchen
4055397915
(svn r26338) -Fix [FS#5908]: Don't redraw the link graph overlay if it's empty (MJP)
2014-02-15 12:19:46 +00:00
rubidium
2618d960e3
(svn r26209) -Codechange: remove some template magic and simplify some code
2014-01-02 22:41:58 +00:00
rubidium
3c94485ba0
(svn r26205) -Feature: SSE 4.1 sprite sorter, improving the sorting performance significantly (MJP)
...
For example with GCC 4.8, x86_64 Linux, Intel i5-3337U this patch improves the performance of Pile, Treham and Hamac test save games by about 10% in over-all run time at fast forward at 1920x1080 when zoomed out and when trees are not disabled.
2014-01-02 16:48:16 +00:00
frosch
3d99546107
(svn r25823) -Codechange [FS#5780]: Simplify if-cases in ViewportDrawStrings. (Juanjo)
2013-10-06 20:18:53 +00:00
rubidium
f4c9ba4981
(svn r25546) -Fix: two small memory leaks
2013-06-30 20:40:49 +00:00
rubidium
ef7befdbd8
(svn r25264) -Feature: linkgraph overlay over main viewport (fonsinchen)
2013-05-19 14:49:25 +00:00
frosch
05203587b5
(svn r24975) -Fix [FS#5463]: Additional zoom in levels could glitch by a few pixels due to incorrect rounding.
2013-02-06 17:51:05 +00:00
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
2013-01-08 22:46:42 +00:00
rubidium
41e5c839e0
(svn r24179) -Codechange: move some variables of Town to TownCache
2012-04-25 20:50:13 +00:00
rubidium
113746b3a6
(svn r24068) -Change/fix [FS#5103]: significantly reduce the area that is redrawn for text effects (Rhamphoryncus)
2012-03-25 19:30:05 +00:00
rubidium
927734e6ce
(svn r24065) -Feature-ish [FS#5101]: debug option for showing the redrawn dirty blocks/rectangles
2012-03-25 19:06:59 +00:00
frosch
5bf1710a28
(svn r23835) -Change [FS#4999]: Make signs placed in scenario editor belong to the GS. That way they are always shown in game and are not editable.
2012-01-22 13:54:02 +00:00
truebrain
e7cd301d3c
(svn r23621) -Add: allow manipulation of signs via GameScripts
2011-12-19 20:59:29 +00:00
peter1138
07633a064c
(svn r23329) -Fix (r23316): Scale child sprite pixel offsets unless told not to. Fixes lifts and industry graphics.
2011-11-25 23:06:17 +00:00
peter1138
81598273e9
(svn r23316) -Feature: Add ability to zoom in to 2x and 4x level.
2011-11-24 12:38:48 +00:00
peter1138
4e97261315
(svn r23314) -Add: Add settings to restrict viewport zoom levels.
2011-11-24 12:20:14 +00:00
frosch
f6ff2a3c15
(svn r23125) -Codechange: Replace some 8s with TILE_SIZE / 2. (adf88)
2011-11-06 15:54:55 +00:00
rubidium
9782b7bb0a
(svn r23110) -Codechange: let the flying altitude return ints are well
2011-11-04 13:40:59 +00:00
rubidium
2a2c102b0b
(svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z related variables
2011-11-04 11:52:19 +00:00
rubidium
7757a2ed40
(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight)
2011-11-04 10:18:13 +00:00
planetmaker
4b3aa9f26e
(svn r22761) -Fix (r22708): Make invisible signs un-clickable (Zuu)
2011-08-19 20:54:15 +00:00
frosch
f34c666bc5
(svn r22755) -Fix [FS#4727]: When marking tile selections dirty, use the height information of the corners instead of the surface slope. This is more accurate when the foundation is kind of undefined.
2011-08-16 21:25:33 +00:00
frosch
233065a5d8
(svn r22740) -Fix [FS#4708]: Display the size of the leveled platform in the measurement tooltip of terraforming operations.
2011-08-13 10:44:15 +00:00
frosch
92e701c6ed
(svn r22739) -Fix: The measurement tooltip is supposed to be hidden when not dragging an area.
2011-08-13 10:43:11 +00:00
planetmaker
3fb66890ee
(svn r22708) -Feature [FS#4701]: Display option to hide competitors' signs and station names (Zuu)
2011-08-01 18:41:21 +00:00
frosch
abf286e990
(svn r22649) -Fix [FS#4670]: Switching from a red to a white highlight (by switching to another tool) without switching the highlight mode (HT_RECT etc.) did not mark the selection dirty.
2011-07-10 14:44:41 +00:00
yexo
1714e5d509
(svn r22181) -Fix (r20574): following a vehicle with a very high VehicleID was impossible
2011-03-04 12:12:48 +00:00
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
2011-01-22 14:52:20 +00:00
rubidium
7efd7e19ed
(svn r21845) -Codechange: move documentation towards the code to make it more likely to be updates [d-m].
2011-01-18 22:31:06 +00:00
alberth
661e13a86a
(svn r21667) -Codechange: Introduce _thd.Reset().
2010-12-30 15:32:31 +00:00
alberth
cedb07bba3
(svn r21666) -Codechange: Use GetCallbackWnd at more places.
2010-12-30 13:18:04 +00:00
alberth
22a13850cb
(svn r21665) -Codechange: Make GetCallbackWnd a method of _thd.
2010-12-30 13:16:31 +00:00
rubidium
b98c758e0b
(svn r21648) -Codechange: unduplicate a bit of code
2010-12-27 18:21:19 +00:00
alberth
d2564a3e56
(svn r21638) -Codechange (r1): Simplify testing that outersize.x is bigger than 0.
2010-12-25 19:58:50 +00:00
rubidium
2c41b8ee97
(svn r21637) -Codechange: make it more clear that IS_PALETTE_COLOUR belongs to TextColour
2010-12-25 19:47:15 +00:00
smatz
b5268dccbd
(svn r21632) -Codechange: call ResetObjectToPlace() even when current place_mode is HT_NONE
2010-12-25 12:47:05 +00:00
alberth
96906c1a45
(svn r21628) -Codechange: Remove local variables that just point to global _thd.
2010-12-24 17:51:46 +00:00
alberth
852e647bcc
(svn r21627) -Codechange: Remove _place_proc global variable.
2010-12-24 15:08:19 +00:00
alberth
9cdd8c6d48
(svn r21621) -Codechange: Only consider tile highlighting mode bits in tile selection functions.
2010-12-24 14:55:31 +00:00
alberth
e930b9985d
(svn r21620) -Codechange: Don't consider direction bits when checking for an active highlight mode.
2010-12-24 14:52:42 +00:00
alberth
cdae336feb
(svn r21619) -Fix [FS#4327]: Don't copy direction bits when restarting a rail selection.
2010-12-24 14:48:38 +00:00
smatz
e4e6735cea
(svn r21612) -Fix (r21608): dragging with HT_POINT was half a tile off
2010-12-23 20:25:55 +00:00
alberth
90780fd25b
(svn r21608) -Codechange: Move diagnonal rectangle dragging detection completely to tile highlighting.
2010-12-23 14:24:34 +00:00
alberth
1ba348914d
(svn r21607) -Codechange: Be more robust against having extra bits in HighLightStyle vars.
2010-12-23 14:15:05 +00:00
alberth
08c6b99294
(svn r21600) -Codechange: Remove new_drawstyle and new_diagonal variables from the _thd structure.
2010-12-22 19:24:36 +00:00
alberth
50faf52cfc
(svn r21542) -Codechange (r14789): Handling a click at a tile once is enough.
2010-12-20 09:34:30 +00:00
smatz
728220ec88
(svn r21531) -Fix: gcc 3.4 warning
2010-12-16 14:03:21 +00:00
rubidium
20364bcefa
(svn r21501) -Fix (rnotlongago): guess what was complaining this time?
2010-12-13 15:34:30 +00:00
rubidium
652e262601
(svn r21498) -Codechange: make the measurement tooltip handle diagonal selection properly
2010-12-13 15:11:03 +00:00
rubidium
959308a243
(svn r21497) -Codechange: prepare the viewport selection mechanism for selecting diagonally
2010-12-13 15:09:59 +00:00
rubidium
a029b2b83a
(svn r21477) -Fix [FS#4300]: tooltips were removed when their related window got closed
2010-12-12 14:14:26 +00:00
alberth
ab50f74d7f
(svn r21273) -Codechange: Return values should start at the same line.
2010-11-20 15:44:24 +00:00
alberth
7e48d85104
(svn r21060) -Doc: Improved wording of comments (mostly by __ln__)
2010-10-30 17:51:07 +00:00
alberth
83094e5e58
(svn r21020) -Add: Use center of waypoint in waypoint gui, if available.
2010-10-23 20:39:21 +00:00
alberth
8f24ec9471
(svn r21018) -Doc: Add Doxygen comments to some function.
2010-10-23 18:28:20 +00:00
alberth
af941fc598
(svn r21017) -Doc: Small fixes (by Krille).
2010-10-23 18:12:38 +00:00
terkhen
92514c6b94
(svn r20891) -Fix [FS#4145]: Measurement tooltips for docks and tunnels were closed after a hover event.
2010-10-03 12:20:50 +00:00
smatz
bb4538665a
(svn r20761) -Codechange: make PlaceObject() static
2010-09-07 11:05:22 +00:00
smatz
15c2a2d555
(svn r20760) -Cleanup (r20753): remove unused CheckMouseOverVehicle()
2010-09-07 11:03:46 +00:00
smatz
a282c3ab57
(svn r20759) -Fix (r20753): it wasn't possible to build anything when left button scrolling was active
2010-09-07 11:00:42 +00:00
smatz
fd54943c7a
(svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window
2010-09-06 14:14:09 +00:00
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
2010-08-26 22:01:16 +00:00
rubidium
3fd1fc35e6
(svn r20358) -Fix [FS#4008]: (r20281) crash when building some stuff when the measurement tooltip is disabled
2010-08-04 07:31:29 +00:00
terkhen
80c43f52e8
(svn r20289) -Codechange: Unify fall through coding style.
2010-08-01 20:52:11 +00:00
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
2010-08-01 19:44:49 +00:00
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
terkhen
88ca183191
(svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH).
2010-07-29 14:26:28 +00:00
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
2010-07-24 10:14:39 +00:00
rubidium
b8487afe54
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
2010-07-19 17:28:27 +00:00
rubidium
5a836cdec7
(svn r20187) -Codechange: move _tileh_to_sprite into a function in a more logical place and with a more descriptive name
2010-07-19 17:00:54 +00:00
terkhen
51e6cb0a70
(svn r20119) -Add: Tooltips can be removed if the user stops hovering the mouse.
2010-07-11 10:55:57 +00:00
alberth
22b9bc5157
(svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine().
2010-07-02 13:53:05 +00:00
frosch
eb02ce0573
(svn r19942) -Fix [FS#3871](r19816): Vertical dragging of rail was broken.
2010-06-07 19:43:40 +00:00
frosch
4b7afccd46
(svn r19911) -Codechange: Simplify text drawing by eliminating global variables and side effects. This also fixes the 'colour' parameter of DrawStringMultiLine().
2010-05-30 15:32:37 +00:00
alberth
51e67a40e0
(svn r19909) -Doc: Typo fixes, small doxygen improvements.
2010-05-30 13:05:36 +00:00
alberth
ce0e1cbb3f
(svn r19905) -Codechange: Use EventState for mouse handling routines.
2010-05-30 12:15:28 +00:00
smatz
93233a9335
(svn r19870) -Codechange: silence some of GCC 3.3 warnings
2010-05-21 05:42:41 +00:00
rubidium
241dd9a9f5
(svn r19817) -Fix: MSVC compile warnings
2010-05-13 12:42:56 +00:00
rubidium
548dd91ef0
(svn r19816) -Codechange: use static const uint for the unnamed 'tile consts' enum as well
2010-05-13 11:19:30 +00:00
alberth
8d1d4267af
(svn r19767) -Fix [FS#3808]: Height in smallmap was different from measured heights (ChillCore).
2010-05-07 20:39:00 +00:00
alberth
3bb174f424
(svn r19765) -Codechange: Apply a bit of code style and a bit of comment shuffling to CalcHeightdiff.
2010-05-07 20:20:03 +00:00
frosch
7563432119
(svn r19745) -Fix: The GUI is controlled by _local_company, not _current_company.
2010-05-01 14:20:56 +00:00
smatz
e3c89df398
(svn r19714) -Feature: ctrl+click on a vehicle to start/stop it
2010-04-24 20:55:51 +00:00
frosch
2e90f7f8b9
(svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding.
2010-04-18 14:56:05 +00:00
smatz
0ef33548c2
(svn r19614) -Codechange: "it's" => "its" where appropriate
2010-04-12 14:12:47 +00:00
rubidium
fbb9b4760a
(svn r19005) -Codechange: make animated cursors have a bit set instead of using negative numbers that are passed as uints, then cast again to be compared as ints before being inverted to be actually used. Also fixes a couple of 'integer conversion resulted in truncation' warnings ICC spewed.
2010-02-04 15:42:38 +00:00
terkhen
8849943da5
(svn r18984) -Add: Viewport place methods for dragging a line with limited size.
2010-02-01 23:13:15 +00:00
rubidium
f94c83a387
(svn r18872) -Codechange: introduce PaletteID and use it
2010-01-21 01:38:13 +00:00
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
frosch
a9d4147eb2
(svn r18702) -Fix [FS#3467]: Enable DrawGroundSpriteAt() to deal with foundations as DrawGroundSprite() does, and use this for drawing one-way-road-signs and clear-land-fences.
2010-01-03 20:55:00 +00:00
rubidium
b2e9b5d612
(svn r18683) -Fix: it's not an other
2010-01-01 18:45:40 +00:00
smatz
fbaba4e6bd
(svn r18614) -Fix [FS#3412](r18602): too many signs were drawn, causing slowdowns
2009-12-23 17:59:34 +00:00
rubidium
b0603f4c2e
(svn r18602) -Codechange: unify the viewport sign and text effect drawing
...
-Fix [FS#3394]: signs could occasionally glitch
2009-12-22 12:50:41 +00:00
rubidium
5a41a646c2
(svn r18351) -Fix [FS#3333]: endianness issue with saving the zoom level
2009-11-30 11:29:52 +00:00
rubidium
ff5b46190d
(svn r18343) -Fix [FS#3336] (r18243): dark blue signs would be drawn transparent
2009-11-29 19:27:53 +00:00
frosch
8e85bb82e9
(svn r18246) -Codechange: Make signs and station/town names big font aware.
2009-11-22 20:56:39 +00:00
frosch
ff5a1f4461
(svn r18245) -Codechange: Deduplicate code wrt. clicking on signs and station/town names.
2009-11-22 20:38:06 +00:00
frosch
4661abd33b
(svn r18243) -Codechange: Deduplicate code wrt. drawing signs and station/town names.
2009-11-22 19:53:49 +00:00
rubidium
d79439fb3c
(svn r17963) -Codechange: some documentation style
2009-11-03 17:30:08 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
e9624fe0cc
(svn r17682) -Codechange: remove erroneous space before some commas
2009-10-02 15:13:15 +00:00
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
2009-09-13 19:15:59 +00:00
rubidium
1dc2284e0c
(svn r17506) -Fix [FS#3191]: signs partly drawn out of the rectangle in 4/8x zoom out.
2009-09-11 22:21:54 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
alberth
4eb155ccfb
(svn r17171) -Doc: Additions and corrections of various doxygen strings.
2009-08-14 18:41:03 +00:00
rubidium
1fe3ad3288
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
2009-08-05 17:59:21 +00:00
frosch
d51c4b6f6e
(svn r16984) -Codechange: Document and assertify (Start|End)SpriteCombine.
2009-07-29 20:27:24 +00:00
alberth
75ccf9de3a
(svn r16960) -Doc: Added some viewport and vehicle type doxygen strings.
2009-07-26 12:49:26 +00:00
rubidium
8e92d536d3
(svn r16950) -Codechange: unduplicate waypoint + station sign drawing
2009-07-25 10:56:36 +00:00
rubidium
65d4d8b46c
(svn r16949) -Codechange: unify the way the DisplayOption enums are written
2009-07-25 10:54:42 +00:00
rubidium
4017439c37
(svn r16948) -Codechange: some code reductions and usage of wrapper functions
2009-07-25 10:39:58 +00:00
rubidium
803cf87885
(svn r16934) -Codechange: introduce a simple helper function to check whether a station is pending deletion or not
2009-07-24 07:38:10 +00:00
rubidium
cb0409fe52
(svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h
2009-07-22 10:18:19 +00:00
rubidium
68ead6b84f
(svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions all over the place when using the more advanced station types.
...
-Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible.
2009-07-22 08:59:57 +00:00
rubidium
dea1144bcb
(svn r16850) -Codechange: unify some naming of variables between waypoints and stations.
2009-07-16 20:15:28 +00:00
rubidium
2b1c43f81f
(svn r16825) -Codechange: unify dirtying when updating the viewport signs.
2009-07-13 23:15:13 +00:00
rubidium
3fb1506d6d
(svn r16765) -Codechange: give ViewportSign's width_1 and width_2 more self explaining names
2009-07-08 08:50:20 +00:00
rubidium
8275a98e1f
(svn r16764) -Codechange: unify the way viewport signs are marked dirty
2009-07-08 08:30:35 +00:00
rubidium
3086383cdc
(svn r16761) -Codechange: make UpdateViewportSignPos(ition) a class function of ViewportSign
2009-07-07 16:51:20 +00:00
frosch
8cbf116c62
(svn r16536) -Fix (r16535): W != S
2009-06-08 15:44:11 +00:00
frosch
53a711ede0
(svn r16535) -Fix (r16146): In one case a too small portion of the screen was marked dirty, when (un-)drawing selections.
2009-06-08 15:42:35 +00:00
frosch
8745a30971
(svn r16528) -Fix [FS#2959]: Draw PBS reservation as groundsprite resp. childsprite of foundation/bridgehead.
2009-06-07 13:25:21 +00:00
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
2009-05-16 23:34:14 +00:00
smatz
fc63e37616
(svn r16155) -Codechange: remove MarkTileDirty, use MarkTileDirtyByTile instead
2009-04-26 10:21:50 +00:00
smatz
f09807bfe1
(svn r16146) -Codechange: use faster algorithm in SetSelectionTilesDirty(). Up to 1000 times faster when large area is selected
2009-04-25 22:04:13 +00:00
rubidium
ecdb5f46a7
(svn r16136) -Fix (r16095)[FS#2858]: sometimes autorail wouldn't work; seems to be primarily for OSX users though
2009-04-24 17:23:32 +00:00
rubidium
59d45a04d6
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
2009-04-21 23:40:56 +00:00
rubidium
d02cdd91ca
(svn r16095) -Change/Feature-ish: make the first 4 rail building tools behave more like autorail
2009-04-19 21:26:06 +00:00
rubidium
329cabab4f
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
2009-04-19 10:31:30 +00:00
rubidium
b66783afab
(svn r16086) -Codechange: magic numbers substitutes by enums and some type safety
2009-04-18 21:10:36 +00:00
rubidium
e2e95af945
(svn r15908) -Fix: off-by-one in viewport strings/flags; left + width != right
2009-04-01 02:51:37 +00:00
rubidium
4012549c5e
(svn r15824) -Fix: determine the actual length of the strings to draw in the viewport
2009-03-22 23:54:36 +00:00
rubidium
4eaf4e6182
(svn r15804) -Fix (r15796): viewport strings weren't properly 'rendered'.
...
-Codechange: use the new string drawing API for the viewport.
2009-03-22 09:43:00 +00:00
smatz
af293142fe
(svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate
2009-03-15 15:25:18 +00:00
rubidium
b25a4f8231
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
2009-03-15 00:32:18 +00:00
rubidium
9d018723b7
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
2009-03-14 18:16:29 +00:00
yexo
dbec2ec628
(svn r15593) -Change: the background of the the waypoint sign is now in the company color.
2009-02-27 22:26:06 +00:00
rubidium
c0a8d09ca7
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
2009-02-09 02:57:15 +00:00
rubidium
8dae160d0f
(svn r15425) -Codechange: some color->colour changes and type safety.
2009-02-09 02:09:47 +00:00
rubidium
856f26e35b
(svn r15413) -Fix [FS#2529/2533]: inconsistencies between station and bridge building w.r.t. tile selection and when the window should be closed.
2009-02-08 15:45:34 +00:00
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
Yexo
0fa6e050e4
(svn r15199) -Fix (r15190): The south point of the south-most tile wasn't highlighted during terraforming.
2009-01-21 22:35:07 +00:00
Yexo
db3ee34b44
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
2009-01-21 02:31:55 +00:00
Yexo
8b04787d09
(svn r15151) -Fix: tile 0 can now be highlighted as error tile
2009-01-19 15:06:11 +00:00
Yexo
49e69399a6
(svn r15150) -Fix: Don't highlight tiles outside the visible map.
2009-01-19 13:50:56 +00:00
frosch
4780c73224
(svn r15065) -Change (r14919): Allow to select a new station location by ctrl-clicking while distant-join window is open. (PhilSophus)
2009-01-13 17:28:11 +00:00
rubidium
11da45ee55
(svn r14949) -Cleanup: pointer coding style
2009-01-10 00:31:47 +00:00
rubidium
dc1f1664fd
(svn r14947) -Fix [FS#2519]: vehicle following did not update the location from where to smooth scroll, thus any new viewport center would smooth scroll from the location where you were just before you started following the vehicle
2009-01-09 23:30:02 +00:00
rubidium
cda853872a
(svn r14944) -Cleanup: add spaces around some operators
2009-01-09 22:56:28 +00:00
rubidium
c8c61e36bd
(svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus)
2009-01-08 16:35:45 +00:00
rubidium
c71862174a
(svn r14905) -Fix (r14899): in some corner cases already freed memory could be read.
2009-01-07 18:59:46 +00:00
rubidium
84dee1e738
(svn r14899) -Feature: remove the window limit, but leave a configurable limit on the number of non-sticky non-vital windows.
...
-Fix [FS#2499]: crashes/misbehaviours when (almost) all windows are stickied.
2009-01-07 16:11:27 +00:00
smatz
1ada1a4ff2
(svn r14884) -Codechange: simplify code responsible for opening vehicle view windows
2009-01-07 02:03:07 +00:00
rubidium
19edb3ccc3
(svn r14880) -Codechange: make it clear which way the FOR_ALL_WINDOWS goes (from back to front or vice versa) and make it iterate over the Window* instead of Window**.
2009-01-06 22:37:42 +00:00
smatz
7368c740a6
(svn r14828) -Codechange: move most of save/load-specific code to separate files
2009-01-04 15:32:25 +00:00
smatz
21308de6cb
(svn r14806) -Fix: MarkAllViewportsDirty() didn't mark dirty whole area when zoomed out, visible by aircraft leaving trails sometimes
2009-01-03 15:03:28 +00:00
rubidium
1357b0a4c2
(svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo)
2009-01-02 22:42:05 +00:00
rubidium
a999bb3227
(svn r14466) -Doc: remove some obsolete parameters, fix a few parameter names in comments and add a little more doxygen documentation.
2008-10-14 19:27:08 +00:00
rubidium
f1f5b248c2
(svn r14461) -Document: add some doxygen comments (Albert)
2008-10-13 03:26:48 +00:00
smatz
b4a307d0bb
(svn r14439) -Fix (r12044)(r14139): centering on a plane at the SE border could cause crash
2008-10-04 10:25:12 +00:00
rubidium
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
2008-09-30 20:51:04 +00:00
rubidium
3b798599b6
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
2008-09-30 20:39:50 +00:00
frosch
a370f32c15
(svn r14409) -Codechange: Simplify a loop and correct a comment.
2008-09-28 12:38:56 +00:00
rubidium
c8e8911ef6
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
2008-09-02 15:20:38 +00:00
smatz
cbe397388f
(svn r14221) -Fix: signs (town name, station name, ...) could be too long for 8bit width in pixels
2008-09-02 14:46:28 +00:00
frosch
5216223f45
(svn r14139) -Fix (r12044): GetSlopeZ() gets a virtual coordinate, not a tile.
2008-08-23 16:09:06 +00:00
belugas
77ee099212
(svn r14104) -Feature: Add a window for waypoints, allowing to view all the trains having the selected waypoint in their orders.
...
Changing its name is also supported from the same new window.
Gui based on work done by Satyap, on FS#2025.
2008-08-20 01:29:05 +00:00
smatz
8fba4705f0
(svn r13991) -Codechange: draw text effects after all other signs
2008-08-04 14:40:50 +00:00
frosch
0fc769bb6c
(svn r13922) -Codechange: Move measurement-tooltip related stuff out of the general tooltip window.
2008-08-02 11:26:25 +00:00
smatz
5e2c2db235
(svn r13891) -Fix (r12547): one could click on waypoint and station signs even when they were invisible
2008-07-31 13:28:23 +00:00
skidd13
2f65d35ead
(svn r13575) -Codechange: Move small vector to core since it fits better in there
...
-Codechange: convert smallvector from struct to class
2008-06-19 10:19:02 +00:00
skidd13
e7f2765f4c
(svn r13573) -Codechange: Use smallvec class functions instead of class members
2008-06-19 09:32:25 +00:00
frosch
0fff18b044
(svn r13538) -Fix (r12740)[FS#2087]: ChildSprites of foundations are not necessarily consecutive.
2008-06-16 20:08:30 +00:00
smatz
421a040e89
(svn r13501) -Feature(tte): ctrl+click on sign you own to remove it (Osai, planetmaker)
2008-06-12 22:29:42 +00:00
rubidium
923e21129c
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
2008-05-29 15:13:28 +00:00
rubidium
f2869bb7db
(svn r13321) -Codechange: move some GUI/viewport related functions out op openttd.cpp to viewport.cpp/window.cpp.
2008-05-29 10:16:59 +00:00
rubidium
4625695653
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
...
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
2008-05-25 19:17:03 +00:00
rubidium
c3fd582c55
(svn r13182) -Doc: add documentation to mostly rail_gui related functions. Patch by Alberth.
2008-05-19 09:24:03 +00:00
rubidium
87015f5b63
(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.
2008-05-17 13:01:30 +00:00
rubidium
8b54212900
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
2008-05-17 12:48:06 +00:00
rubidium
c81a333cb6
(svn r13110) -Fix [FS#2018]: some toolbar buttons not being unpressed properly.
2008-05-15 20:52:28 +00:00
rubidium
5ae795953a
(svn r13104) -Codechange: make ResetObjectToPlace safe to be called recursively via the OnPlaceObjectAbort callback and use this knowledge to simplify closing some windows.
2008-05-15 14:41:56 +00:00
glx
ad19bf105a
(svn r13055) -Codechange: make a class of SmallMapWindow.
2008-05-11 19:47:10 +00:00
glx
c708ab3b48
(svn r13047) -Codechange: remove vp_d
2008-05-11 15:08:44 +00:00
rubidium
d24442ae8b
(svn r13029) -Codechange: more work in the road to getting the WP macros and byte[WINDOW_CUSTOM_SIZE] removed. This step changes the event handling to work directly on the Window class instead of via a function pointer and big switches while keeping backward compatability while we're rewriting the Windows to the new scheme.
2008-05-10 13:46:36 +00:00
rubidium
cabd771fc0
(svn r13009) -Codechange: move more tile highlighting related functions/types to tilehighlight_*.h.
2008-05-08 13:21:55 +00:00
rubidium
3d5567ccf7
(svn r12987) -Codechange: split viewport and tile selection.
2008-05-07 13:10:15 +00:00
rubidium
402a1e24ba
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
2008-05-06 22:17:12 +00:00
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
2008-05-06 15:11:33 +00:00
rubidium
cb680474c3
(svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth.
2008-05-04 10:05:50 +00:00
rubidium
24b5c91039
(svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth.
2008-04-19 13:17:19 +00:00
rubidium
c84fe27ca9
(svn r12787) -Documentation: add/fix documentation of some functions. Patch by Alberth.
2008-04-19 13:05:05 +00:00