Commit Graph

26488 Commits

Author SHA1 Message Date
ζ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
c87b82d75e Add a rotate button to the extra viewport 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
a33cc1ac86 Fix ScViewport::moveTo not using the right 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
1a7b873256 Fix ViewportInteractionGetClosestPeep not using the right rotation 2024-03-05 10:23:29 +02:00
ζeh Matt
87dd29f3bc Make GetClosestPeep static 2024-03-05 10:23:29 +02:00
ζeh Matt
afe266e2fe Recalculate the screen position for entities when painting 2024-03-05 10:23:28 +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
OpenRCT2 git bot
33a5ee2160 Merge Localisation/master into OpenRCT2/develop 2024-03-05 04:02:03 +00:00
Harry-Hopkinson
3247d16ed8 Replace size_t's with EnumValue 2024-03-04 19:21:12 +00:00
Harry-Hopkinson
56df39dcb4 Replace uint8's with EnumValue
Replace uint8's with EnumValue

Replace uint8's with EnumValue

Revertl arge change

Revert large change

Format
2024-03-04 19:04:18 +00:00
Harry Hopkinson
ef9840f29b Replace static_cast with EnumValue 2024-03-04 15:37:20 +00:00
Harry Hopkinson
9748038815 Move gExpenditureTable to GameState_t 2024-03-04 15:24:29 +01:00