From 3d3857b89aaba1319c74e2213fe9394bcbdbcc81 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 21 Feb 2001 21:53:06 +0000 Subject: [PATCH] --- source/enemy/npc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/enemy/npc.cpp b/source/enemy/npc.cpp index 760fc575a..a4251ed35 100644 --- a/source/enemy/npc.cpp +++ b/source/enemy/npc.cpp @@ -339,7 +339,7 @@ bool CNpc::processSensor() if ( playerXDistSqr + playerYDistSqr < 10000 ) { m_controlFunc = NPC_CONTROL_CLOSE; - m_evadeClockwise = ( getRnd() % 2 ) - 1; + m_evadeClockwise = getRnd() % 2; return( true ); }