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/Object.cpp | |
parent | c66877019ee228193b9d68c6e8b886d5ffa1d9d5 (diff) |
Moved most randomisation functions usage from static version into Map object.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r-- | src/game/Object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index fe3239e9d6b..04f6646bea1 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1285,8 +1285,8 @@ void WorldObject::GetRandomPoint( float x, float y, float z, float distance, flo } // angle to face `obj` to `this` - float angle = rand_norm()*2*M_PI; - float new_dist = rand_norm()*distance; + float angle = GetMap()->rand_norm()*2*M_PI; + float new_dist = GetMap()->rand_norm()*distance; rand_x = x + new_dist * cos(angle); rand_y = y + new_dist * sin(angle); |