forked from metin2/server
Used effolkronium/random for PRNG
This commit is contained in:
@@ -926,8 +926,8 @@ bool SECTREE_MANAGER::GetRandomLocation(int lMapIndex, PIXEL_POSITION & r_pos, D
|
||||
|
||||
while (i++ < 100)
|
||||
{
|
||||
x = number(rRegion.sx + 50, rRegion.ex - 50);
|
||||
y = number(rRegion.sy + 50, rRegion.ey - 50);
|
||||
x = Random::get(rRegion.sx + 50, rRegion.ex - 50);
|
||||
y = Random::get(rRegion.sy + 50, rRegion.ey - 50);
|
||||
|
||||
if (iMaxDistance != 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user