matheusvb3
8dd7b7976f
Prevent ride and stall statistics from overflowing ( #24378 )
...
* Prevent ride and stall statistic from overflowing
Clamps guestsFavourite, totalCustomers, lastInspection, totalProfit, numPrimaryItemsSold and numSecondaryItemsSold
* Change line of comment in Ride.h
This caused the tooltip with the comment to appear when hovering over notFixedTimeout instead of breakdownSoundModifier in Visual Studio
* Remove redundant overflow prevention
* Invalidate maintenance tab
Missed this before. Also fix an issue I inadvertently caused with PR #23719 when updating the count of vandals stopped
* Deduce lastInspection type in compile time
* Add changelog entry
2025-05-31 03:10:36 +03:00
mix
7ee49d8f2b
Fix #23289 : Dodgems and Flying Saucers can spawn on top of each other
2025-05-25 21:37:58 +01:00
Gymnasiast
d2615beb6e
Change News enums to use lowerCamelCase
2025-05-24 23:47:18 +02:00
ζeh Matt
3770ab0b51
Don't tween entities that are not visible on screen or when zoomed out
2025-05-22 21:33:55 +03:00
ζeh Matt
98c058be1c
Make some members static functions
2025-05-21 22:27:14 +03:00
ζeh Matt
8c6ba00494
Couple more places
2025-05-21 21:59:31 +03:00
ζeh Matt
eb9cf26f1b
Pass guest by reference, rename parameter
2025-05-21 21:48:46 +03:00
ζeh Matt
47d58dffa4
Make more functions of Guest private, temporary to see who needs what
2025-05-21 21:12:01 +03:00
ζeh Matt
5a98133c1d
Handle peep state directly in the update switch
2025-05-21 17:32:35 +03:00
ζeh Matt
04c75f6f8b
Remove code duplication for stepping
2025-05-21 17:28:05 +03:00
ζeh Matt
db23e69597
Remove useless checks
2025-05-21 17:23:30 +03:00
ζeh Matt
f475ef050f
Start splitting Peep::Update into Staff::Update and Guest::Update
2025-05-21 17:15:38 +03:00
kysrit
3529c0be3a
Part of #16033 : create constants for crash particles
2025-05-12 23:09:50 +02:00
Matt
6335c31336
Rename DrawPixelInfo to RenderTarget ( #24339 )
...
* Begin backend separation, rename type DrawingPixelInfo to RenderTarget
* Rename dpi variables to rt
2025-05-04 22:06:46 +00:00
Joel Teichroeb and ζeh Matt
c55049288b
Optimize AddToEntityList for end of list edgecase ( #24271 )
...
* Optimize AddToEntityList for end of list edgecase
* Move the logic into a utility function, namespace Algorithm
* Use references over pointers when its known to be not null
* Strengthen the Algorithm.hpp
* Work around false positive warning in GCC 12/13
---------
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com >
2025-04-30 20:50:29 +00:00
ζeh Matt
8f1e4d1537
Fix #24264 : Optimize the search for nearest litter by Handyman
2025-04-21 20:33:30 +03:00
Matt
bb41d0022f
Fix #24260 : Optimize the lookup for nearby guests by entertainers ( #24263 )
2025-04-21 17:09:30 +00:00
Max
923a38c990
Close #24146 : Expand plugin functionality for balloons and money effects
2025-04-19 23:23:02 +02:00
mix
9bc65f473b
Prevent unnecessary tweening invalidations
2025-04-07 22:15:28 +02:00
Aaron van Geffen
99836faeff
Rename Window_internal unit to WindowBase for consistency ( #24163 )
2025-04-06 17:43:36 +02:00
Gymnasiast
eaaba9fbfb
Rename HOOK_TYPE and its members
2025-03-26 12:16:47 +01:00
Gymnasiast
15707d64ec
Refactor fountain flags
2025-03-26 00:51:27 +01:00
Gymnasiast
fa15bc56d2
Rename INVALID_DIRECTION to kInvalidDirection
2025-03-25 22:47:08 +01:00
Matt
94be70f8a8
Merge pull request #24034 from Gymnasiast/refactor/gamestate-t-lower-camel-case
...
Change GameState_t members to lowerCamelCase
2025-03-21 23:32:02 +02:00
ζeh Matt
c7fd5093d3
Further cleanup the code, restrict maximum iterations
2025-03-21 15:55:58 +02:00
ζeh Matt
e3015198e7
Cleanup and style refactor PeepFootpathMoveForward
2025-03-21 15:55:54 +02:00
ζeh Matt
a287a7979d
Improve performance of spatial indexing
2025-03-21 01:21:18 +02:00
Gymnasiast
4badffcdb6
Change GameState_t members to lowerCamelCase
2025-03-20 23:05:57 +01:00
ζeh Matt
c7c5a2c9c0
Skip the type checking in GetEntity/TryGetEntity with T as BaseEntity
2025-03-21 00:04:41 +02:00
ζeh Matt
cac21504cd
Refactor PerformNextAction, we don't need a wrapper
2025-03-20 21:23:32 +02:00
ζeh Matt
bd4db4a91b
Use TryGetEntity for iterators as it handles null entities explicitly
2025-03-20 21:23:31 +02:00
ζeh Matt
e22c2eeb62
Cleanup the function PeepInteractWithPath
2025-03-20 21:23:31 +02:00
Aaron van Geffen
2ce206ed03
Move item temperature thresholds to climate objects
2025-03-07 18:57:00 +01:00
Michael Steenbeek
05b64985f4
Update Ride struct to new codestyle
2025-03-09 00:26:25 +01:00
Gymnasiast
3c35debafe
Rename RIDE_VALUE_UNDEFINED to kRideValueUndefined
2025-03-06 23:30:57 +01:00
Gymnasiast
114e8da200
Update RideMode to current code style
2025-03-06 23:01:47 +01:00
Gymnasiast
e35c7fdb5c
Update RideStatus to current code style
2025-03-06 23:01:46 +01:00
Michael Steenbeek
06c1fed4f7
Refactor gScreenFlags to LegacyScene enum
2025-03-05 20:45:04 +00:00
Aaron van Geffen
a380413c56
Remove Scenario.h include from many units ( #23901 )
...
* Reduce includes/dependencies for Scenario.h
* Remove Scenario.h include from many units
2025-03-01 17:32:32 +01:00
73
a976a43708
Rename network.h to Network.h ( #23882 )
2025-02-24 10:43:06 +01:00
Michael Steenbeek
b62f7763a6
Fix #14486 : Guests falling if path after park entrance is an upward slope
2025-02-19 22:34:31 +01:00
73
c7c703515e
Rename audio.h to Audio.h ( #23842 )
2025-02-17 13:24:03 +01:00
73
b9b2c96c97
Rename sprites.h to SpriteIds.h ( #23804 )
2025-02-13 15:51:46 +00:00
Aaron van Geffen
6933af25ae
Rename 'Climate' properties to Weather ( #23786 )
...
* Rename ClimateState to WeatherState
* Rename ClimateCurrent to WeatherCurrent
* Rename ClimateNext to WeatherNext
* Rename ClimateUpdateTimer to WeatherUpdateTimer
* Use named initialisers for weather state import in S4/S6 importers
* Rename S4::ClimateTimer to WeatherUpdateTimer as well
* Rename WeatherState struct properties to lowerCamelCase
2025-02-13 07:38:45 -03:00
Aaron van Geffen
2302f0d2e3
Rework Localisation includes ( #23789 )
...
* Clean up internal localisation header includes
* Remove some external localisation includes
* Remove dependency on FormatCodes.h from InteractiveConsole.h
* Reduce Formatter.h, Localisation.Date.h includes
2025-02-07 22:36:42 +01:00
matheusvb3
850cc397c3
Prevent staff statistics from overflowing ( #23719 )
...
* Use AddClamp when incrementing staff stats
* Remove decltype from AddClamp
* Use lowercase u in increment
2025-02-02 17:44:12 -03:00
Aaron van Geffen
aeca38d131
Prevent drawing peep accessories whilst drowning ( #23729 )
2025-01-27 19:24:33 +01:00
Aaron van Geffen
cf448753c1
Move WindowInvalidate and WidgetInvalidate families into WindowManager ( #23692 )
...
* Move WindowInvalidate and WidgetInvalidate families into WindowManager
* Use InvalidateWidget shorthand in more places
* Cut back on UiContext includes
* Cut back on Window.h includes
* Remove outdated parameter comments
2025-01-25 13:46:08 +01:00
Michael Steenbeek
a3d5b4e0c3
Change FIXED_XDP from macros to constexprs
2025-01-25 13:42:22 +01:00
Michael Steenbeek
b0c99fcb6c
Refactor more constants to kConstant notation
2025-01-22 16:16:55 +00:00