From 80e36aa669274637bcd5956fbf4020dba1d4739c Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 9 Feb 2013 01:51:36 -0800 Subject: Strictify timers --- src/map/path.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/path.cpp') diff --git a/src/map/path.cpp b/src/map/path.cpp index c2ab8ca..1a4385b 100644 --- a/src/map/path.cpp +++ b/src/map/path.cpp @@ -1,4 +1,5 @@ #include "../common/cxxstdio.hpp" +#include "../common/mt_rand.hpp" #include "../common/nullpo.hpp" #include "battle.hpp" @@ -255,7 +256,7 @@ int path_blownpos(int m, int x0, int y0, int dx, int dy, int count) int fy = (dy != 0 && can_move(md, x0, y0, x0, y0 + dy, 0)); if (fx && fy) { - if (rand() & 1) + if (MRAND(2)) dx = 0; else dy = 0; -- cgit v1.2.3-60-g2f50