From 3e8b377ac4d002fb16e513fe190ea0e13bf627f2 Mon Sep 17 00:00:00 2001 From: maximius Date: Wed, 14 Oct 2009 15:18:02 -0700 Subject: *Some minor cleanup. --HG-- branch : trunk --- src/game/WaypointMovementGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp index 1e00c766e5e..884a45ca6a3 100644 --- a/src/game/WaypointMovementGenerator.cpp +++ b/src/game/WaypointMovementGenerator.cpp @@ -195,7 +195,7 @@ WaypointMovementGenerator::Update(Creature &unit, const uint32 &diff) i_nextMoveTime.Reset(node->delay); //note: disable "start" for mtmap - if(node->event_id && rand()%100 < node->event_chance) + if(node->event_id && urand(0,99) < node->event_chance) unit.GetMap()->ScriptsStart(sWaypointScripts, node->event_id, &unit, NULL/*, false*/); MovementInform(unit); -- cgit v1.2.3