Gymnasiast
c158854a7f
Move Park into namespace, add other park-related things to struct
2024-04-04 18:14:27 +02: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
Jan Kelemen
bc149ca95c
Move gHistoricalProfit and gGuestsInParkHistory to GameState_t ( #21513 )
...
* Move gGuestsInParkHistory to GameState_t
* Move gHistoricalProfit to GameState_t
2024-03-03 16:05:48 +00:00
Jan Kelemen
baf3d8fded
Move gCashHistory to GameState_t
2024-03-02 20:41:16 +01:00
Harry Hopkinson
42844d1667
Move gCurrentProfit to GameState_t ( #21485 )
2024-03-01 05:47:30 -03:00
Harry Hopkinson
063c4f7bce
Move gCurrentExpenditure to GameState_t
2024-02-27 22:03:40 +01:00
Harry Hopkinson
70ea832808
Move gCompanyValue to GameState_t
2024-02-27 16:31:38 +01: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
Harry Hopkinson
ad5ef31a97
Move gTotalIncomeFromAdmissions to GameState_t ( #21348 )
2024-02-07 19:13:04 -03:00
Harry Hopkinson
3eb9cf2264
Move gTotalAdmissions to GameState_t ( #21341 )
...
Part of #21193 .
2024-02-06 21:42:05 +01:00
Gymnasiast
8208afe5f6
Move gResearch* globals to GameState_t
2024-01-29 21:36:04 +01:00
Hielke Morsink
99e1746eda
#21193 : Move gParkValueHistory to GameState_t
2024-01-25 14:30:47 +01:00
Hielke Morsink
0c10435b7e
#21193 : Move gParkValue to GameState_t
2024-01-25 14:30:44 +01:00
Michael Steenbeek
115e7389a9
Move most gScenario* globals to GameState_t
2024-01-24 22:17:32 +01:00
Michael Steenbeek
71c20a04d7
Move gWeekly* globals to GameState_t
2024-01-24 15:03:46 +01: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
ζ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
ζ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
Aaron van Geffen
d425e0a8bb
Remove const qualifier from constexpr statements
2023-06-24 11:45:26 +02:00
Michael Steenbeek
fd80b4c822
Refactor and clean up date handling ( #19666 )
...
* Refactor and clean up date handling
* Remove gDate, remove direct access to days_in_month
* Adjust the MultiLaunch test
* Bump network version
---------
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
2023-04-02 09:25:41 +01:00
Ernest Wong
e9ecf6ee4a
Fix #19553 : Undefined upkeep cost check uses new sentinel value ( #19568 )
...
* Fix #19553 : Undefined upkeep cost check uses new sentinel value
Mistake from #19469
2023-03-05 20:16:31 +00:00
Michael Steenbeek
dd624f9bff
Replace remaining usages of money16, money32 ( #19469 )
...
* Use money64 for ride prices and shop items
* Use money64 for park entrance fee
* Use money64 for gGuestInitialCash
* Use money64 for upkeep costs
* Use money64 for ride value
* Use money64 for marketing campaign cost
* Use money64 for object prices
* Use money64 for land prices
* Use money64 for guest expenditure
* Replace remaining occurrences of money32 with money64
* Update replays
* Bump network version
---------
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-03-02 21:55:42 +00:00
kyphii
dfb2c3fa60
Fix #17996 - Finances window not cleared when starting some .park scenarios ( #19368 )
...
* Clear Finances Graph on Scenario Load
* Update changelog
---------
Co-authored-by: Trevor Finney <8711258+finneyt@users.noreply.github.com>
2023-02-13 21:30:47 +00:00
Michael Steenbeek
07d198f084
Close #12466 : Add flag to use RCT1 interest ( #19377 )
...
* Close #12466 : Add flag to use RCT1 interest
* Bump network version
2023-02-12 21:23:05 +00:00
Hielke Morsink
0762fcb601
Rename snake_case functions in OpenRCT2/util folder
2023-01-18 22:44:13 +01:00
Hielke Morsink
917c091e6b
Rename snake_case functions in OpenRCT2/marketing folder
2023-01-17 23:13:39 +00:00
Hielke Morsink
6dafbbfb65
Rename global window functions to TitleCase ( #19167 )
2023-01-16 20:13:42 +00:00
James103
73738bbdc8
Replace 2022 with 2023 in copyright headers
...
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Duncan
482971710d
Apply code style to context functions
2022-11-06 21:49:07 +01:00
73
b9e677945d
Replace 20XX with 2022 ( #18158 )
...
* Replace 2020 with 2022
Replace all 2020 headers with 2022
* replace other years with 2022
add missing years
2022-10-01 08:42:14 +01:00
Michael Steenbeek
a0dd6a3aa6
Fix #18087 : gCash clamped to 32-bit integer every transaction
2022-09-28 12:20:44 +02:00
Hielke Morsink
7f29e4e39c
Make `rct_windowclass` strong type `WindowClass`
...
This already revealed some places where implicit conversions were done, including some where its use was nonsense (MouseInput.cpp).
The changes to the Intent class were necessary to keep things working, and this splits things up more neatly.
2022-08-21 18:38:25 +02:00
Geoff Banh
85baa6f7ca
Fix #14093 : Replace MONEY macro with user defined literal
2022-03-29 07:23:35 -03:00
ζeh Matt
269673e3aa
Profiler update ( #16463 )
...
* Add more functions to be profiled
* Add isEnabled method to Profiler scripting interface
* Bump up scripting version
* Apply review suggestions
2022-01-29 15:29:08 +02:00
ζeh Matt
9f23449ffb
Move Staff/Guest/Peep to entity
2021-11-26 18:26:19 +02:00
Ted John
70d9c1438e
Change most things and formatting to money64
2021-08-01 15:14:42 +02:00
Jamie Quigley
4f6d0a00fd
Refactor RIDE_STATUS to use strong enum ( #14840 )
...
* Refactor RIDE_STATUS to use strong enum
* Change platform-specific code to match RIDE_STATUS refactor
* Re-added check for valid RideStatus value
* Fixed errors in "g2" build target
* Use EnumValue instead of static_cast<uint8_t>
* Revert rct{1,2}.h to use uint8_t.
* Fix formatting
* Reverted from constexpr variable to additional enum variant
* Fix formatting
2021-06-10 07:09:58 +01:00
duncanspumpkin
98f9f24909
Remove sprite.h includes where possible
2021-05-29 08:54:33 +01:00
Matt
2b4b204ad8
Fix #14724 : Money was ignored for ride creation
2021-05-23 19:58:47 +03:00
Duncan
6ec379cd0e
Split Entity Lists by Entity type ( #14326 )
...
* Make initial changes to add entity type
* Make further corrections
* Revert header changes
* Fix mistakes
2021-03-16 11:18:06 +00:00
Ted John
c9a07eaa84
Refactor staff window to class ( #13819 )
2021-01-25 21:57:06 +00:00
ζeh Matt
acf71315b5
Cleanup variables usage and initialize them
2021-01-06 22:29:40 +01:00
ryan-bello
cc2bb33892
changed enum STAFF_TYPE to strong enum StaffType, moved it to Peep.h
2020-08-17 22:59:02 -04:00
ryan-bello
54a33cbde8
renamed StaffType to AssignedStaffType
2020-08-17 20:16:09 -04:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00