summaryrefslogtreecommitdiff
path: root/src/map/path.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-02-09 01:51:36 -0800
committerBen Longbons <b.r.longbons@gmail.com>2013-02-12 20:21:34 -0800
commit80e36aa669274637bcd5956fbf4020dba1d4739c (patch)
tree2f5d3a63a5f7230ab73cd588e3493c0664a5a73b /src/map/path.cpp
parent83b2e0b3ceda907b7186acfcc56c214fc04d9c13 (diff)
downloadtmwa-80e36aa669274637bcd5956fbf4020dba1d4739c.tar.gz
tmwa-80e36aa669274637bcd5956fbf4020dba1d4739c.tar.bz2
tmwa-80e36aa669274637bcd5956fbf4020dba1d4739c.tar.xz
tmwa-80e36aa669274637bcd5956fbf4020dba1d4739c.zip
Strictify timers
Diffstat (limited to 'src/map/path.cpp')
-rw-r--r--src/map/path.cpp3
1 files changed, 2 insertions, 1 deletions
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;