Commit Graph
122 Commits
Author SHA1 Message Date
Aaron van Geffen ec0f4126b0 Let security guards alternate between slow and fast walking (#24730)
* Let security guards alternate between slow and fast walking

* Alternate based on amount of nearby guests instead

* Optimise loop to exit early once threshold has been reached

* Only count walking guests for security crowdedness

* Update replay bundle to v0.0.89

* Update NetworkBase.cpp
2025-07-15 10:02:37 +00: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
ζ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
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
Gymnasiast 4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
ζeh Matt cac21504cd Refactor PerformNextAction, we don't need a wrapper 2025-03-20 21:23:32 +02:00
Michael Steenbeek 05b64985f4 Update Ride struct to new codestyle 2025-03-09 00:26:25 +01: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
73 c7c703515e Rename audio.h to Audio.h (#23842) 2025-02-17 13:24:03 +01: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
Michael Steenbeek b0c99fcb6c Refactor more constants to kConstant notation 2025-01-22 16:16:55 +00:00
Michael Steenbeek be9f27e4f9 Mass rename constants (#23656) 2025-01-19 15:59:45 +00:00
Aaron van Geffen 6ed7fd461e Move isSlowWalking property to animation group level 2024-12-23 12:21:04 +01:00
Aaron van Geffen 44a9f530f7 Separate RCT12PeepAnimationGroup further from PeepAnimationGroup 2024-12-09 19:43:05 +01:00
Aaron van Geffen cfdfd1a234 List available staff costumes dynamically 2024-12-05 17:39:10 +01:00
Aaron van Geffen fa06a49302 Update copyright year to 2025 (#23514) 2024-12-31 20:30:04 +01:00
Aaron van Geffen 6ee798337a Introduce EnumUtils header (#23407) 2024-12-15 17:39:52 +01:00
Aaron van Geffen f90954b1a4 Reduce dependencies for Research.h (#23268) 2024-11-25 14:32:16 +00:00
Aaron van Geffen 9436a9501e Move bitScanForward from Util.h to Numerics.hpp 2024-10-29 11:08:39 +01:00
Aaron van Geffen 80b63a5ae7 Add line breaks after template declarations (#23086)
* Add line breaks after template declarations

* Additional clang-format patches
2024-10-29 16:54:01 +01:00
Michael Steenbeek a2ed026264 Split up remaining tile elements 2024-10-15 22:02:31 +02:00
Michael Steenbeek 71ce725a2a Split off BannerElement and TrackElement (#22955) 2024-10-14 14:26:10 +02:00
Michael Steenbeek e6e0f97557 Split off EntranceElement header 2024-10-03 12:42:53 +02:00
ζeh Matt 763e9968cf Refactor FootpathIsZAndDirectionValid and its uses, more constness 2024-09-30 22:31:13 +03:00
ζeh Matt 3755f3a6d1 Remove two more globals, pass them as arguments 2024-09-30 22:31:13 +03:00
ζeh Matt bc1f2f62cf Rename IsValidPathZAndDirection and move to more appropriate place 2024-09-30 22:31:12 +03:00
Aaron van Geffen 584f6b8661 Rename Peep::SpriteType to AnimationGroup 2024-09-22 16:54:33 +02:00
Aaron van Geffen 6d27369ea6 Rename PeepSpriteType to PeepAnimationGroup 2024-09-22 16:42:27 +02:00
Aaron van Geffen 48a71461bf Rename PeepAnimationType::StaffCheckboard to StaffCheckBoard 2024-09-22 16:18:41 +02:00
Aaron van Geffen b70aaea31e Rename ActionSpriteImageOffset to AnimationImageIdOffset 2024-09-22 16:13:49 +02:00
Aaron van Geffen 24b36915ef Rename ActionFrame to AnimationFrameNum 2024-09-22 16:12:04 +02:00
Aaron van Geffen ee7bb61bb0 Rename WalkingFrameNum to WalkingAnimationFrameNum 2024-09-22 16:10:04 +02:00
Aaron van Geffen 2edf8b472a Rename (Next)ActionSpriteType to (Next)AnimationType 2024-09-22 16:08:58 +02:00
Aaron van Geffen 435cf14d49 Rename PeepActionSpriteType to PeepAnimationType 2024-09-22 16:07:35 +02:00
Aaron van Geffen 5f37ba6615 Rename footpath height related constants 2024-08-16 21:18:33 +00:00
Michael Steenbeek 47800cddcf Change RTD flags to a strong enum 2024-08-13 20:20:25 +00:00
Harry Hopkinson 4744c7416d Refactor object and network constants to kCamelCase 2024-08-11 20:21:24 +00:00
Aaron van Geffen 51816d2bd5 Disambiguate calls to UtilBitScanForward (#22402) 2024-07-28 18:44:59 +02:00
mrmbernardi 9ed5c63857 Rename Location.hpp constants (#22385) 2024-07-26 10:23:25 +02:00
Aaron van Geffen 3d5c19de08 Drop Localisation.h include where not required 2024-07-13 13:33:32 +02:00
Aaron van Geffen 3fd91038c3 Rename Date.h to Localisation.Date.h to match unit file 2024-07-12 22:18:43 +02:00
Aaron van Geffen 8cef18cd2f Include cassert as needed at unit level 2024-07-09 16:43:03 +02:00
Aaron van Geffen 51873dc0f6 Include Diagnostic.h at unit level 2024-07-09 16:23:31 +02:00