From 360d8eade0332f2c1aa5c205ca772cd506c35b26 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Tue, 13 Jun 2017 20:35:30 +0100 Subject: FastRandom rewrite (#3754) --- src/Mobs/Path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Mobs/Path.cpp') diff --git a/src/Mobs/Path.cpp b/src/Mobs/Path.cpp index 1273b2517..9f34e73d9 100644 --- a/src/Mobs/Path.cpp +++ b/src/Mobs/Path.cpp @@ -148,7 +148,7 @@ bool cPath::StepOnce() // Check if we have a new NearestPoint. if ((m_Destination - CurrentCell->m_Location).Length() < 5) { - if (m_Rand.NextInt(4) == 0) + if (GetRandomProvider().RandBool(0.25)) { m_NearestPointToTarget = CurrentCell; } -- cgit v1.2.3