Peter Froud
21bda5e5e4
Use TILE_ELEMENT_NOT_FOUND
...
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2024-01-29 02:17:56 -08:00
Peter Froud
01d9eeb266
INVALID_PARAMETER for GHOST_ELEMENT_NOT_FOUND
...
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2024-01-29 02:15:53 -08:00
Peter Froud
704c779bf2
Format code which was committed on github.com
2024-01-29 02:15:27 -08:00
Peter Froud
7bb8fd7131
Add INVALID_PARAMETER for GHOST_ELEMENT_NOT_FOUND
...
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2024-01-28 21:27:35 -08:00
Michael Steenbeek
2059b50f44
Small change to error message
2024-01-28 00:06:54 +01:00
Peter Froud
f272b57a88
Fix 'break' will never be executed compile error
2024-01-22 02:55:20 -08:00
Peter Froud
7302d718e3
Fix local variable shadowing a previous local
2024-01-22 02:49:19 -08:00
Peter Froud
4145f851da
Run clang-format
2024-01-22 02:29:08 -08:00
Peter Froud
648941aa11
Add constants to StringIds.h and en-GB.txt
2024-01-22 01:47:14 -08:00
Peter Froud
7903845eae
Add "element" to STR_ERR_GHOST_NOT_FOUND
2024-01-22 01:45:29 -08:00
Peter Froud
32c880ef89
Add strings for value outside pre-defined range
2024-01-22 01:42:11 -08:00
Peter Froud
9299a80a58
Add descriptive error strings for null checks
2024-01-22 01:21:14 -08:00
Harry Hopkinson
0f283dc2a9
Move gClimate to GameState_t
2024-01-21 21:05:22 +00:00
Harry Hopkinson
7ca5b1cd65
Move gClimateNext to GameState_t ( #21231 )
2024-01-21 18:22:57 +01:00
ζeh Matt
25c807edbd
Small cleanup
2024-01-20 19:34:27 +02:00
ζeh Matt
c493e22b9b
#21193 : Move gInitialCash to GameState_t, refactor uses
2024-01-20 17:13:57 +02:00
Matt
7141fb4574
Merge pull request #21225 from ZehMatt/raise-mix-limit
...
Raise maximum allowed misc entities to 1600
2024-01-20 17:02:42 +02:00
Matt
b35eb7ac7f
Merge pull request #21229 from ZehMatt/21193-gCash
...
#21193 : Move gCash to GameState_t, refactor uses
2024-01-20 17:00:58 +02:00
Katherine Norton
0450435377
Add Plugin API for managing a guest's items ( #21062 )
...
* Add API for guest items in openrct2.d.ts
* Create GuestItem interfaces
* Set fields to readonly and add documentation
* Implement getting items array
* Implement checking if a guest has an item
* Implement removing items from guests
* Implement giving a guest an item
* Re-merge GuestItemType with FoodDrinkType
* Add more data validation for the EnumMaps
* Update versioning and changelog
* Add some errors to the give_item method
* Bump network version
* Update VoucherType to if/else
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
* Add static_assert to ScGuest.hpp
---------
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2024-01-20 11:51:23 -03:00
ζeh Matt
3518a638bb
#21193 : Move gCash to GameState_t, refactor uses
2024-01-20 15:46:35 +02:00
Matt
d08612b708
Merge pull request #21122 from ZehMatt/gamestate
...
Start centralizing all save related data in GameState_t
2024-01-20 01:12:10 +02:00
Michael Steenbeek
8846760b8b
Fix #21210 : Land right signs display beneath paths
...
Restores the +3 offset that was previously used. Compared rendering to RCT1 as well.
2024-01-19 22:47:01 +00:00
Severin Paul Höfer
39a37f14eb
Fix #21054 : No entrance style selected by default in track designer
2024-01-19 23:42:44 +01:00
ζeh Matt
80ca8aefaa
Remove stray change
2024-01-19 16:33:50 +02:00
ζeh Matt
8653ad740a
Apply missing game state parameter
2024-01-19 16:32:19 +02:00
ζeh Matt
c839a1746d
Resolve some odd type clash, remove using namespace for now
2024-01-19 16:32:19 +02:00
ζeh Matt
f708e911e4
Make clang-format happy
2024-01-19 16:32:19 +02:00
ζeh Matt
9b2a79faf1
Adjust the import/export code to have the game state passed
2024-01-19 16:32:19 +02:00
ζeh Matt
a5dde0f8dc
Replace gCurrentTicks with the one in GameState_t
2024-01-19 16:32:19 +02:00
ζeh Matt
4c919f74aa
Start of the new GameState structure
2024-01-19 16:32:15 +02:00
Ota
33523c98c2
Fix #20628 : Stop caret left moving off the input string
2024-01-19 13:48:51 +01:00
ζeh Matt
dae726009e
Bump up network version
2024-01-19 14:44:21 +02:00
ζeh Matt
6b9de0bb2f
Raise maximum allowed misc entities to 1600
2024-01-19 12:50:27 +02:00
Gymnasiast
9d03fad8b8
Rename TrackSlope to TrackPitch
2024-01-17 23:34:37 +01:00
Gymnasiast
95c1adc813
Rename TrackBank to TrackRoll
2024-01-17 23:34:36 +01:00
Gymnasiast
cffc55e165
Rename fields of TrackDefinition
2024-01-17 23:33:19 +01:00
Gymnasiast
44d547a4bc
Make TrackPitch into an enum class
2024-01-17 23:33:19 +01:00
Gymnasiast
b832eb5f72
Make TrackBank into an enum class
2024-01-17 23:33:19 +01:00
Gymnasiast
d2f5e739aa
Make TrackCurve into an enum class
2024-01-17 23:33:19 +01:00
Basssiiie
cc7c528885
Fix widgets not redrawing correctly when updating disabled/visible state
2024-01-16 14:05:21 +00:00
Basssiiie
5221e8ee9f
Extract plugin widget validation logic to separate function
2024-01-16 14:04:14 +00:00
Severin Paul Höfer
15e0402c63
Fix #20255 : Images not freed in Track Designs Manager ( #21205 )
...
* Add missing deallocation in track manager
* Update changelog.txt
2024-01-15 21:38:46 -03:00
Matt
04e8a25c44
Merge pull request #21165 from bencsikandrei/refactor/simplify-linux-get-install-path
...
Refactor GetInstallPath for linux
2024-01-15 22:51:20 +02:00
Max
7a9e8a5e44
Fix: setting brake/booster speeds via plug-in does not work
2024-01-15 08:28:21 +01:00
Severin Paul Höfer
62d0fd76e0
Fix #20616 : Confirmation button in track designer's quit prompt has the wrong text
...
Wrapped the logic for determining the text to be displayed on title
and buttons of the save prompt in an if condition, so it's not run for
the pure quit prompt.
2024-01-15 08:26:58 +01:00
ζeh Matt
7d3c273594
Fix #21171 : Crash creating entities with no slots available
2024-01-12 17:56:23 +02:00
ζeh Matt
3dc2a25121
Fix overflow calculating maximum free slots for misc entities
2024-01-12 17:48:39 +02:00
MichaelJBerk
15fcaffc91
Activate OpenRCT2 window after using native file dialog on macOS ( #20951 )
2024-01-12 12:01:57 +01:00
Michael Steenbeek
0e5c82e2d4
Close #18632 : Display land ownership on the water ( #21150 )
...
Co-authored-by: pfroud <pfroud@users.noreply.github.com >
2024-01-12 07:14:11 +00:00
Michael Steenbeek
3023784bbf
Merge pull request #21164 from Gymnasiast/refactor/td-entrance-elements
...
Import maze entrances in the same way as regular ones
2024-01-12 08:10:00 +01:00