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