diff options
author | raczman <none@none> | 2009-05-16 10:50:39 +0200 |
---|---|---|
committer | raczman <none@none> | 2009-05-16 10:50:39 +0200 |
commit | 10ee81ef1320112090fa4e0b96da22f708cab22e (patch) | |
tree | b88d67f796424cadf7d51cc9125d9b3cb5ca38d1 /src/game/GameObject.cpp | |
parent | c66877019ee228193b9d68c6e8b886d5ffa1d9d5 (diff) |
Moved most randomisation functions usage from static version into Map object.
--HG--
branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r-- | src/game/GameObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 744b6679862..d50c2698759 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -1067,7 +1067,7 @@ void GameObject::Use(Unit* user) int32 skill = player->GetSkillValue(SKILL_FISHING); int32 chance = skill - zone_skill + 5; - int32 roll = irand(1,100); + int32 roll = GetMap()->irand(1,100); DEBUG_LOG("Fishing check (skill: %i zone min skill: %i chance %i roll: %i",skill,zone_skill,chance,roll); |