Commit Graph

988 Commits

Author SHA1 Message Date
Gymnasiast 337707c889
Prefix Tunnel.{cpp,h} with Paint. 2024-06-03 22:43:43 +02:00
Gymnasiast eb1bb3b985
Remove no longer required bounds check 2024-06-03 22:42:20 +02:00
Gymnasiast 8c1a841a7f
Refactor tunnels 2024-06-03 22:42:20 +02:00
Gymnasiast 7e9110b35b
Create TunnelDescriptor 2024-06-03 22:42:20 +02:00
Gymnasiast 8a181b5513
Split colours and colour flags 2024-05-26 12:35:40 +02:00
Aaron van Geffen 6cb49d2e3b
Fix #22066: FPS counter copied over viewport when using centred toolbar (#22068) 2024-05-20 15:04:27 +02:00
Michael Steenbeek 311628dadf
Condense diagonal straight flat drawing even more 2024-05-18 20:32:31 +02:00
rohan4412 24a24e3f53
Part of #21421: Replace constants that use #define with ones that use constexpr (#21883)
* rename MAX_SCROLLING_TEXT_MODES to kMaxScrollingTextModes

* Rename FRAME_RENDERING_START to kFrameRenderingStart

* Rename FRAME_EFFECTS_START to kFrameEffectStart

* Rename CONTROLS_GROUP_START to kControlsGroupStart

* Rename THEMES_GROUP_START to kThemesGroupStart

* Rename TOOLBAR_GROUP_START to kToolbarGroupStart

* Rename TITLE_SEQUENCE_START to kTitleSequenceStart
2024-05-18 10:37:42 +00:00
Michael Steenbeek 288575c4ff
Use kDefaultGeneralSupportHeight throughout 2024-05-15 21:25:02 +02:00
Aaron van Geffen 2f68c7e823
Move STR_NONE, STR_EMPTY to StringIdType.h (#22019) 2024-05-15 20:29:11 +02:00
Michał Janiszewski 3c35558f3f
Fix compilation on Arch Linux with GCC 14 (#22031)
Fixes #22029
2024-05-13 22:09:00 +00:00
Aaron van Geffen 96ce7f706f Move widget constants from Windows.h to Widget.h 2024-05-10 22:14:10 +02:00
Aaron van Geffen 23551c09b3 Move FPS counter below toolbar if buttons are centred 2024-05-08 23:08:06 +02:00
Aaron van Geffen 945a799228
Merge pull request #22005 from AaronVanGeffen/config-struct
Introduce Config namespace and struct
2024-05-10 22:06:51 +02:00
Gymnasiast 3ed61cac9a
Name and refactor metal supports maps 2024-05-10 21:35:04 +02:00
Gymnasiast 98e980f535
Make MetalA and MetalB more like each other 2024-05-10 21:31:20 +02:00
Gymnasiast 4cdaaa9810
Refactor slope flags 2024-05-10 20:16:07 +02:00
Gymnasiast 9e2463ff52
Name SUPPORTS_SLOPE_5, use it consistently 2024-05-10 20:16:03 +02:00
Gymnasiast 09dc7077c1
Drop 3rd parameter to PaintUtilSetGeneralSupportHeight()
It’s always 0x20
2024-05-10 20:15:51 +02:00
Aaron van Geffen a63d86c488 Introduce Config namespace and struct 2024-05-10 12:10:21 +02:00
Harry Hopkinson 98ac3a1bbc
Replace GfxDrawString() with DrawText() 2024-05-10 09:56:03 +00:00
Duncan eded6e2129
Readd algorithm header where it is used (#22000) 2024-05-10 10:37:01 +01:00
Michał Janiszewski 63e996194f
Reduce inclusion of FixedVector.h (#21994)
FixedVector class requires use of algorithm include, one of C++'s
heaviest, while in practice it is used only in handful of places.

See #21947 for methodology

372-266=106 #include <algorithm>s fewer
2024-05-09 12:34:18 +00:00
Claudio Tiecher 10a5d790c6
Part of #21421: replace define with constexpr (#21760)
* Part of #21421: refactor TUNNEL_MAX_COUNT

* Part of #21421: deleted unused OBJECT_SELECTION_NOT_...

* Part of #21421: refactor MAX_SERVER_DESCRIPTION_LENGTH

* Part of #21421: refactor EXPENDITURE_TABLE_MONTH_COUNT

* Part of #21421: refactor FINANCE_GRAPH_SIZE

* Part of #21421: refactor NETWORK_STREAM_VERSION and _ID

* Part of #21421: MONEY_STRING_MAXLENGTH

* Part of #21421: deleted MAX_USER_STRINGS

* Part of #21421: refactor USER_STRING_MAX_LENGTH

* Part of #21421: deleted USER_STRING_END

* Part of #21421: refactor REAL_NAME_START

* Part of #21421: refactor REAL_NAME_END

* Part of #21421: deleted FONT(X) and FONT_OPENRCT2_SPRITE

* Part of #21421: refactor CURRENCY_SYMBOL_MAX_SIZE

* Part of #21421: refactor CURRENCY_RATE_MAX_NUM_DIGITS

* Part of #21421: refactor SCROLLABLE_ROW_HEIGHT

* Part of #21421: refactor ADD_CLAMP_BODY

* Part of #21421: applied clang-format to Util.cpp

* Part of #21421: incorporate feedback from #21760

* Part of #21421: revert to nbsp in Currency.cpp

* Part of #21421: fix merge conflict

* Part of #21421: fix more merge conflict

* Part of #21421: apply clang format

* Part of #21421: using std::numerics for finding bounds

* Part of #21421: fix reference to kAddClampBody

* Part of #21421: improved on comments about AddClamp func

* Part of #21421: apply correct network stream version number

* Part of #21421: apply clang-format
2024-05-09 08:59:03 -03:00
Aaron van Geffen a61a561d01 Remove Currency.h include from Localisation.h 2024-05-08 23:41:42 +02:00
Aaron van Geffen ca6f142a97 Remove Config.h include from many places 2024-05-08 22:29:32 +02:00
Michał Janiszewski 11510a0e0b
Guard against possible nullptr dereference when prefetching BBox (#21978) 2024-05-07 06:21:27 +02:00
Michael Steenbeek 46b356047c
Merge pull request #21889 from Gymnasiast/refactor/segments
Refactor blocked segments
2024-05-05 21:54:34 +02:00
Harry Hopkinson bbc5a109ef
Close #20157: Hide FPS Counter if top toolbar is hidden 2024-05-05 00:16:23 +02:00
Gymnasiast dfd958b855
Fix Metal{A,B}SupportsPaintSetupRotated() to rotate type 2024-05-02 18:12:52 +02:00
Gymnasiast 369996809c
Add PaintSegment header, add constant for straight flat track 2024-05-02 18:12:51 +02:00
Michał Janiszewski 7b12667ddb
Reduce `<algorithm>` include (#21947) 2024-05-01 13:47:27 +02:00
Aaron van Geffen 56cbc0eb8a Refactor intro into IntroScene 2024-04-26 20:35:16 +02:00
Aaron van Geffen 255e89ec37 Refactor TitleScreen to TitleScene; introduce GameScene
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
2024-04-23 21:31:05 +02:00
mrmbernardi f4cebb11df
Speed up TerrainSurfaceObject::GetImageId() 2024-04-26 09:52:19 +02:00
Michał Janiszewski 49b28f1757
Prefetch paint struct bounds (#21894)
With restored `benchspritesort` this yields around 5% better results.
2024-04-25 14:14:17 +00:00
mrmbernardi 8a2afbd1a3
Reduce copying in PaintSurface (#21817) 2024-04-15 16:10:55 +02:00
Duncan 3ce917e2e1
Fix #6725: Z-fighting when car passes through scenery door 2024-04-13 21:32:55 +02:00
Gymnasiast c158854a7f
Move Park into namespace, add other park-related things to struct 2024-04-04 18:14:27 +02:00
Gymnasiast 28451027b1
Move Park to GameState_t 2024-04-04 18:12:08 +02:00
Claudio Tiecher a94e6c54d8
Part of #21421: replace define with constexpr (#21679) 2024-04-01 07:00:32 -03:00
Michael Steenbeek 8e563edcbe
Fix #21673: Incorrect tunnels on Classic Stand-Up 2024-03-27 18:40:07 +01:00
Michael Steenbeek 8e157bd709
Merge pull request #21667 from janclod/replace-define-with-constexpr-1
Part of #21421: Replace define with constexpr
2024-03-26 11:48:35 +01:00
Claudio Tiecher ffb8b4d44b Part of #21421: Refactor MAXIMUM_MAP_SIZE_TECHNICAL 2024-03-25 16:17:32 +01:00
Gymnasiast 00e1f504f5
Create rotated version of support functions 2024-03-22 17:30:02 +01:00
Gymnasiast 7ae98f7421
Use EnumsToFlags() and create a proper enum 2024-03-11 01:12:35 +01:00
Gymnasiast 632f29e6a9
Name segment constants 2024-03-11 00:22:35 +01:00
Harry Hopkinson e486606189
Move gPeepSpawns to GameState_t (#21570) 2024-03-10 15:16:28 -03:00
Harry Hopkinson 78d95fc0bd
Pass DrawPixelInfo by reference (#21563) 2024-03-10 12:00:08 -03:00
ζeh Matt f7682f6b13
Apply clang-format 2024-03-05 10:25:59 +02:00