ζeh Matt
a1304ef147
Fix rebase
2024-03-05 10:34:03 +02:00
ζeh Matt
ae0af55a99
Make GCC happy due to non-enumerated usage
2024-03-05 10:26:00 +02:00
ζeh Matt
425c4cf04e
Allow viewports to have an independent rotation
2024-03-05 10:25:59 +02:00
ζeh Matt
8bf33a6039
Fix viewport not using the correct rotation in some cases
2024-03-05 10:25:59 +02:00
ζeh Matt
f7682f6b13
Apply clang-format
2024-03-05 10:25:59 +02:00
ζeh Matt
bdcfa5af8f
Add a function to invalidate viewports pre-transformed position
2024-03-05 10:25:59 +02:00
ζeh Matt
47d346ee81
Remove unused code
2024-03-05 10:25:57 +02:00
ζeh Matt
462bb33234
Refactor viewport rotation to keep it in sync with the primary viewport
2024-03-05 10:23:31 +02:00
ζeh Matt
d95f14dcda
Fix ViewportPosToMapPos using the wrong rotation
2024-03-05 10:23:30 +02:00
ζeh Matt
7be082cacc
Fix ViewportAdjustForMapHeight not using the correct rotation
2024-03-05 10:23:29 +02:00
ζeh Matt
98acdf3743
Use the rotation from the Viewport where applicable
2024-03-05 10:23:28 +02:00
ζeh Matt
2661cf8772
Refactor out all uses of gCurrentRotation, remove gCurrentRotation
2024-03-05 10:23:28 +02:00
ζeh Matt
8864f6cf51
Add ViewportGetMain
2024-03-05 10:23:27 +02:00
ζeh Matt
81499643db
Rename unused field to Rotation
2024-03-05 10:23:27 +02:00
ζeh Matt
1a197af715
Make ViewportPaint static, refactor TrackDesign to use ViewportRender
2024-03-05 10:23:23 +02:00
Duncan
4b6ba80a46
Move cheats to struct in GameState_t
2024-03-03 22:44:15 +01:00
mrmbernardi
4ccecd6e68
Remove forwarding functions in Window.cpp ( #21516 )
2024-03-03 18:04:09 +01:00
mrmbernardi
a0b18688ec
Merge pull request #21460 from mrmbernardi/map-layout
...
Fix #21289 : Map window does not layout properly
2024-03-02 22:52:31 +01:00
Michael Bernardi
1cb0650cba
Fix #21289 : Map window does not layout properly
2024-03-02 16:00:10 +01:00
Harry Hopkinson
701bbda164
Move gEditorStep to GameState_t ( #21492 )
...
* Move gEditorStep to GameState_t
* Fix compilation on GCC
---------
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com >
2024-03-01 20:26:20 +00:00
Harry Hopkinson
14f0479c94
Refactor constants/macros ( #21483 )
...
* Refactor constants in AudioMixer.h
* Refactor constants in Map.h
* Rename kMinimumLandHeight_BIG to kMinimumLandZ
2024-03-01 20:23:29 +00:00
Aaron van Geffen
4976d65fc3
Enable commented-out designated initialisers ( #21479 )
...
* Start using designated initialisers
* Adhere to correct order for DrawPixelInfo
* Of course gcc is stricter than clang...
2024-02-29 07:00:46 +00:00
Michael Steenbeek
01bc8cdb5e
Merge pull request #21468 from AaronVanGeffen/cpp20
...
Compile project as C++20
2024-02-28 22:28:36 +01:00
Michael Steenbeek
25ec1e4211
Create game actions and UI for restricted scenery
2024-02-28 20:38:43 +01:00
Harry Hopkinson
57a4c83f80
Move gConstructionRightsPrice to GameState_t ( #21467 )
...
* Move gConstructionRightsPrice to GameState_t
* Add OpenRCT2 namespace
2024-02-27 20:20:11 +00:00
Harry Hopkinson
70ea832808
Move gCompanyValue to GameState_t
2024-02-27 16:31:38 +01:00
Aaron van Geffen
530ec9a6f7
Remove never-set COLOUR_FLAG_8 constant
...
The definition is also outside the boundaries of a uint8_t, so its existence is a bit odd.
2024-02-27 15:38:51 +01:00
Gymnasiast
554968383c
Move global window indices to constexpr
2024-02-25 22:54:54 +01:00
Harry Hopkinson
0fab1eaca8
Move gSavedView states to GameState_t ( #21456 )
...
* Move gSavedView to GameState_t
* Move gSavedViewRotation to GameState_t
* Move gSavedViewZoom to GameState_t
2024-02-25 20:46:01 +00:00
Harry Hopkinson
7797db10c8
Replace Macros and Notation in Cheats.h, common.h and Context.h. ( #21437 )
2024-02-23 19:30:35 -03:00
Martin Mizzi
f5a9846ea2
Move gBankLoan and gBankLoanInterestRate to GameState_t
2024-02-19 04:42:44 -05:00
Harry Hopkinson
1c285dbf9f
Move gMaxBankLoan to GameState
2024-02-13 21:36:35 +01:00
Matt
19be093569
Fix #21208 : Error messages disappear too quickly if the game runs for a while ( #21394 )
...
* Reset gCurrentRealTimeTicks when the map is initialized
* Use 32 bit for gWindowUpdateTicks
* Update changelog.txt
2024-02-13 16:03:30 -03:00
Harry-Hopkinson
b755c873e5
Move gMapSize to GameState_t
2024-02-12 21:32:08 +00:00
Michael Steenbeek
70b9d0ca47
Add button to reload object
2024-02-11 20:45:31 +00:00
Hielke Morsink
0c10435b7e
#21193 : Move gParkValue to GameState_t
2024-01-25 14:30:44 +01:00
Harry Hopkinson
42336915cd
Move gClimateCurrent to GameState_t
2024-01-24 11:18:54 +01:00
Hielke Morsink
f85cac627d
#21193 : Move gParkRating to GameState_t
2024-01-23 00:11:34 +01:00
Michael Steenbeek
b5786c2a86
Move gGuestInitial* to GameState
2024-01-22 22:28:16 +00:00
Hielke Morsink
13351d996e
#21193 : Move gParkFlags to GameState_t, refactor uses
...
Also changed a few instances where GetGameState was called inside the same function.
The change in Peep.cpp is needed because of a function conflict. FormatStringID exists both in the global and in the OpenRCT2 namespace.
2024-01-22 16:31:35 +01:00
Harry Hopkinson
0f283dc2a9
Move gClimate to GameState_t
2024-01-21 21:05:22 +00:00
ζeh Matt
c493e22b9b
#21193 : Move gInitialCash to GameState_t, refactor uses
2024-01-20 17:13:57 +02:00
ζeh Matt
3518a638bb
#21193 : Move gCash to GameState_t, refactor uses
2024-01-20 15:46:35 +02:00
James103
1d8dc111f1
Replace 2023 with 2024 in copyright headers ( #21139 )
...
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
mrmbernardi
98a52efb7e
Fix #5677 : Balloons pass through the ground and objects ( #20483 )
2023-12-26 08:28:19 -03:00
Michael Bernardi
8c7d1d149a
Added OpenGL TTF hinting
2023-12-08 01:13:17 +01:00
Gymnasiast
6d87e3e56d
Make remove_park_fences multiplayer-safe
2023-11-02 22:40:11 +01:00
fidwell
95169f9632
Tile inspector invisibility shortcut does not use a game action
2023-10-02 22:26:55 -04:00
Michael Bernardi
29c3f08b69
Add a window method to resize dropdowns
2023-08-19 00:13:47 +02:00
Matthias Moninger
22996b5fe8
Merge pull request #20545 from mrmbernardi/resize_spinners
...
Add a window method to resize spinners
2023-08-19 00:24:08 +03:00