*Some minor cleanup.

--HG--
branch : trunk
This commit is contained in:
maximius committed 2009-10-14 15:18:02 -07:00
1 parent 27c7d6aa85
commit 3e8b377ac4
4 files changed
+162 -140

No files matched your search

+1 -1
View File
@@ -195,7 +195,7 @@ WaypointMovementGenerator<Creature>::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);