diff options
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 7a2580c22..631fc049a 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -6,6 +6,7 @@ #include "../common/nullpo.h" #include "../common/db.h" #include "../common/malloc.h" +#include "../common/random.h" #include "unit.h" #include "map.h" #include "path.h" @@ -1616,7 +1617,7 @@ int unit_calc_pos(struct block_list *bl, int tx, int ty, int dir) { for( i = 0; i < 12; i++ ) { - k = rand()%8; // Pick a Random Dir + k = rnd()%8; // Pick a Random Dir dx = -dirx[k] * 2; dy = -diry[k] * 2; x = tx + dx; |