Commit Graph

20231 Commits

Author SHA1 Message Date
Michael Steenbeek 3d05fce68e
Merge pull request #21818 from Harry-Hopkinson/refactor-constant-notation
Refactor constant notation in Chat.h and Peep.h
2024-04-21 00:14:44 +02:00
Rahul Unniyampath 893ae7f0ca
Refactor constant notation in Audio.h
Co-authored-by: ncerroneumich <ncerrone@umich.edu>
2024-04-21 00:12:13 +02:00
Michael Steenbeek 7fc34ef612
Fix #21832: Ghost Train in Haunted Harbour has missing pieces (#21856) 2024-04-21 00:01:55 +02:00
evmarcus 1f761faee0
Close #11512: Add coloured usernames in multiplayer servers by group
Co-authored-by: mbilik <mbilik@umich.edu>
Co-authored-by: Matt <matthewsings5@gmail.com>
2024-04-20 21:40:18 +00:00
Harry Hopkinson b05dcb3dfe
Close #21837: Formatter is overwritten in RideConstruction.cpp
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2024-04-20 13:49:36 +00:00
Aaron van Geffen 1b5d0f47ab
Make usage of Audio namespace explicit in Context 2024-04-20 12:24:44 +02:00
Aaron van Geffen 82c434358a
Introduce SPR_DEFAULT_PALETTE 2024-04-19 17:47:22 +02:00
Michael Steenbeek 9b7face116
Fix #21731: previously-invisible 'alt' rides now visible 2024-04-18 22:29:52 +02:00
Harry-Hopkinson 47939567c4 Rename CHAT_MAX_WINDOW_WIDTH - kChatMaxWindowWidth 2024-04-17 13:20:37 +00:00
Harry-Hopkinson 337f9ca549 Rename CHAT_MAX_MESSAGE_LENGTH to kChatMaxMessageLength 2024-04-15 15:35:00 +00:00
Harry-Hopkinson 140e17029d Rename CHAT_INPUT_SIZE to kChatInputSize 2024-04-15 15:30:37 +00:00
Harry-Hopkinson c264ec1077 Rename CHAT_HISTORY_SIZE to kChatHistorySize 2024-04-15 15:28:51 +00:00
Harry-Hopkinson ba1f066710 Rename PEEP_MAX_ENERGY_TARGET to kPeepMaxEnergyTarget 2024-04-15 15:26:10 +00:00
Harry-Hopkinson cf50b4c8a3 Rename PEEP_MAX_ENERGY to kPeepMaxEnergy 2024-04-15 15:21:49 +00:00
Michał Janiszewski b64ec76c95
Fix #21787: Map generator heightmap should respect increased height limits (#21798) 2024-04-15 15:19:18 +00:00
Harry-Hopkinson 04ca18b7c6 Rename PEEP_MIN_ENERGY to kPeepMinEnergy 2024-04-15 15:12:21 +00:00
Harry Hopkinson 530a7de98f
Replace notation in Guest.h 2024-04-15 16:48:41 +02:00
mrmbernardi 8a2afbd1a3
Reduce copying in PaintSurface (#21817) 2024-04-15 16:10:55 +02:00
mrmbernardi b21f0504cf
Pause button stays down while waiting for GameAction (#21816) 2024-04-15 14:26:44 +02:00
Michał Janiszewski a6e1124175
Fix mac-specific highdpi issue workaround (#21785) 2024-04-14 18:43:45 +02:00
Duncan 3ce917e2e1
Fix #6725: Z-fighting when car passes through scenery door 2024-04-13 21:32:55 +02:00
Aaron van Geffen d536f9bce0
Revert "Add owner property to tile elements for scripting"
This reverts commit b4376ab590.
2024-04-12 21:58:45 +02:00
Aaron van Geffen 4f3449cfcf
Fix assert with some custom objects 2024-04-12 19:52:21 +00:00
Rik Smeets 953bb4ee91
Park admittance price can now be set via text input 2024-04-12 18:38:08 +00:00
Michael Steenbeek 005aece802
Expose “animation is backwards” flag in Tile Inspector 2024-04-12 18:08:34 +00:00
Michał Janiszewski f9bd26214b
Use libraries v35 (#21771) 2024-04-12 15:22:00 +03:00
Michael Steenbeek 271a22d00e
Merge pull request #21681 from AaronVanGeffen/obj-list-refactor
Move various object list properties out of ObjectTypes header
2024-04-12 11:54:13 +02:00
Michael Steenbeek 4e7d5d987a
Merge pull request #21745 from rik-smeets/fix-stuck-boat-hire
Fix #866: Boat Hire boats get stuck entering track
2024-04-10 12:16:38 +02:00
Rik Smeets b009643ab0 Remove to do statement by explicit null check on collideVehicle 2024-04-10 07:58:39 +02:00
Rik Smeets e250ec3b66 Fix #866: Boat Hire boats get stuck entering track 2024-04-10 07:58:39 +02:00
Rik Smeets 2a78399418 Introduce BoatHireSubState enum 2024-04-10 07:58:36 +02:00
Michael Steenbeek e190afeb80
Fix maze drawing (#21729) 2024-04-06 21:14:18 +02:00
Michael Steenbeek a38039f6e4
Add feature to allow overriding x/y offsets in GX files 2024-04-05 15:41:35 +02:00
Gymnasiast 19e403068d
Fix formatting 2024-04-04 18:18:25 +02:00
Gymnasiast c158854a7f
Move Park into namespace, add other park-related things to struct 2024-04-04 18:14:27 +02:00
Gymnasiast 4f3b7aa8a9
Turn Park into struct 2024-04-04 18:12:36 +02:00
Gymnasiast 7b072808ee
Turn Date into struct 2024-04-04 18:12:36 +02:00
Gymnasiast fef1a27342
Remove GameState class 2024-04-04 18:12:35 +02:00
Gymnasiast 28451027b1
Move Park to GameState_t 2024-04-04 18:12:08 +02:00
Gymnasiast 1f1377a8ef
Move Date to GameState_t 2024-04-04 18:12:08 +02:00
Michael Steenbeek 26d65b37ea
Merge pull request #21645 from Gymnasiast/refactor/inverted-covered-handling-2
Refactor track paint functions and available pieces in RTDs
2024-04-03 17:30:14 +02:00
Michał Janiszewski e55d761eb7 Release v0.4.10
- Feature: [#18171] Add port of the RCT1 Stand-Up Roller Coaster.
- Feature: [#21590] [Plugin] Plugins can now read and write banner properties of tile elements.
- Feature: [#21636] Add shortcut key for sorting tile elements.
- Feature: [objects#294] Add scenery versions of wooden truss supports.
- Feature: [objects#295] Flipped version of wooden post.
- Improved: [#21424] Extra viewports can now rotate independently from the main viewport.
- Improved: [#21561, #21631] Enable more features in Android build (plugins, networking, multiplayer, audio formats).
- Improved: [#21599] Currency signs now use non-breaking spaces.
- Improved: [objects#157] Added sloped images for many walls.
- Improved: [objects#288] Better map colours and more sensible prices for RCT1 land surfaces.
- Improved: [objects#292] Vehicle colour cleanups for WW/TT vehicles.
- Improved: [objects#299] More accurate ratings modifiers for RCT1 vehicles.
- Improved: [objects#309] Updated names for dodgems and flying saucers vehicles.
- Improved: [objects#313] buildMenuPriority for dodgems and flying saucers vehicles.
- Change: [#21529] Classify “Southern Sands”, “Tiny Towers”, “Nevermore Park”, “Pacifica” as expert scenarios.
- Change: [#21545] Reorder Wacky Worlds scenarios and adjust their difficulty classification.
- Fix: [#910] Extra viewport does not preserve the location when rotating.
- Fix: [#18413] Crash when mouse over a hacked train.
- Fix: [#20338] Cannot select Scenery Picker or Scatter Tool when the scenery recolouring tool is active.
- Fix: [#21317] Track designer allows proceeding without an object selected.
- Fix: [#21360] If the object selection is missing certain types, the Object Selection window will switch to an incorrect tab.
- Fix: [#21419] Cannot place walls underground beneath sloped tiles with clearance checks disabled.
- Fix: [#21434] Number of guests overflows in objective text.
- Fix: [#21522] Supports for 3×3 turns and 45 degree turns on the Hybrid Coaster and Wooden Roller Coaster not drawn correctly.
- Fix: [#21543] Crash with creating a TrackIterator with invalid arguments.
- Fix: [#21635] Tile inspector hotkey can set wall slope for non-slopeable objects.
- Fix: [#21641] Crash when creating track iterator from an invalid tile element.
- Fix: [#21652] Dialog window to confirm overwriting files does not apply the theme colours correctly.
- Fix: [#21654] No sound effects when using RCT Classic as an asset base.
- Fix: [#21654] Extraneous reports of an object conflict between `rct2.audio.base` and `rct2.audio.base.rctc`.
- Fix: [#21664] Crash when switching between languages that use TTF.
- Fix: [#21668] Crash when on null ride in Guest::UpdateRideLeaveExit.
- Fix: [#21691] Crash when validating rides which can't contain banked track.
- Fix: [objects#290] “Haunted Mansion” cars have a non-functional third remap colour.
- Fix: [objects#296] Incorrect wall placement around large Kremlin/drab pieces.
- Fix: [objects#300] Incorrect Colosseum and volcano corner clearances.
- Fix: [objects#319] Incorrect diagonal slope images used for RCT1 corkscrew.
- Fix: [objects#320] Incorrect Mandarin Duck boats capacity.
2024-04-02 22:21:50 +02:00
Michał Janiszewski c8f91d3f35
Update backtrace token for upcoming release 2024-04-02 22:11:17 +02:00
Michael Steenbeek 3461ac38ca
Fix #21522: incorrect support drawing on Hybrid and Wooden (#21710)
* Fix #21522: incorrect support drawing on Hybrid and Wooden

* Add changelog entry
2024-04-02 22:05:48 +02:00
Michał Janiszewski 6b734fda6b
Fix #21591: Banner text colors are not working properly (#21709)
* Fix #21591: Banner text colors are not working properly
2024-04-02 19:06:58 +03:00
Michał Janiszewski dfcb527ada
Ensure TTF system is torn down in correct order (#21707)
`TTFDispose` uses `gCurrentTTFFontSet` to deallocate internal resources.
Having the function called after global variable got changed meant it
tried to deallocate incorrect font and would subsequently call
`FT_Done_Face` on a struct having internal data set to nullptr.

Reproduction is fairly easy:
1. launch the game in Korean (I made sure to have all the indexes primed
   for this language beforehand - i.e. launch it twice),
2. switch to Japanese,
3. switch back to Korean

Fixes #21664
2024-04-02 00:52:40 +02:00
John Kastner 6ea091841f
Fix memory leak loading malformed `SawyerChunk` (#21508)
* Fix memory leak loading malformed `SawyerChunk`

A temporary buffer was not free'd after failing to parse in
`SawyerChunkReader::ReadChunkTrack`. Fix this following the pattern used
in `SawyerChunkReader::ReadChunk` by wrapping the relevant code in a
`try` block with `FreeLargeTempBuffer` called when an exception is
caught.

* Use unique_ptr

* Remove `AllocateLargeTempBuffer`

---------

Co-authored-by: Michał Janiszewski <janisozaur@gmail.com>
2024-04-01 22:40:14 +00:00
Claudio Tiecher a94e6c54d8
Part of #21421: replace define with constexpr (#21679) 2024-04-01 07:00:32 -03:00
Michael Steenbeek 9062049be1
Fix sound effects not working with RCTC base, fix audio object conflict
Due to this overwriting of object IDs, loading the sound effects would not work on RCTC. This overwriting also caused object conflicts which weren’t always won by the RCTC one. This fixes both problems by using non-clashing names, and only renaming one to `rct2.audio.base`, the name expected by the asset packs.
2024-03-31 22:28:17 +00:00
Michał Janiszewski 06081eb23d
Fix #21691: Use correct iterator in RideCheckTrackContainsBanked (#21701) 2024-04-01 00:23:37 +02:00