*Some minor cleanup.

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

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);