From 336c1b26d33320d5882068cc9f569782d3158d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Thu, 22 Feb 2024 23:04:58 +0200 Subject: [PATCH] Remove dead code --- src/openrct2/peep/GuestPathfinding.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/openrct2/peep/GuestPathfinding.cpp b/src/openrct2/peep/GuestPathfinding.cpp index 5b981b01ca..159a0b6812 100644 --- a/src/openrct2/peep/GuestPathfinding.cpp +++ b/src/openrct2/peep/GuestPathfinding.cpp @@ -541,15 +541,6 @@ namespace OpenRCT2::PathFinding if (peep.Is()) return 8; - // PEEP_FLAGS_2? It's cleared here but not set anywhere! - if ((peep.PeepFlags & PEEP_FLAGS_2)) - { - if ((ScenarioRand() & 0xFFFF) <= 7281) - peep.PeepFlags &= ~PEEP_FLAGS_2; - - return 8; - } - auto* guest = peep.As(); if (guest == nullptr) return 8;