summaryrefslogtreecommitdiff
path: root/src/map/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/path.c')
-rw-r--r--src/map/path.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/path.c b/src/map/path.c
index bbbb99a08..b2d34a26b 100644
--- a/src/map/path.c
+++ b/src/map/path.c
@@ -3,6 +3,7 @@
#include "../common/cbasetypes.h"
#include "../common/nullpo.h"
+#include "../common/random.h"
#include "../common/showmsg.h"
#include "../common/malloc.h"
#include "map.h"
@@ -175,7 +176,7 @@ int path_blownpos(int m,int x0,int y0,int dx,int dy,int count)
int fy = ( dy != 0 && map_getcellp(md,x0,y0+dy,CELL_CHKPASS) );
if( fx && fy )
{
- if(rand()&1)
+ if(rnd()&1)
dx=0;
else
dy=0;