summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-09-05 09:42:47 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-09-05 09:42:47 -0700
commitdafb447729edd6755492e9207d16ab8bfce4a8cf (patch)
tree444104cd961bb2ee37516ee1fda3acca3d9b1885 /src/map
parent98253f8cd9ad6e3b4443556aa5bda6d735a0bf3b (diff)
downloadtmwa-dafb447729edd6755492e9207d16ab8bfce4a8cf.tar.gz
tmwa-dafb447729edd6755492e9207d16ab8bfce4a8cf.tar.bz2
tmwa-dafb447729edd6755492e9207d16ab8bfce4a8cf.tar.xz
tmwa-dafb447729edd6755492e9207d16ab8bfce4a8cf.zip
Fix a couple of bugs exposed by stricter server checks
Diffstat (limited to 'src/map')
-rw-r--r--src/map/magic-expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/magic-expr.cpp b/src/map/magic-expr.cpp
index 4acce91..674c850 100644
--- a/src/map/magic-expr.cpp
+++ b/src/map/magic-expr.cpp
@@ -1339,7 +1339,7 @@ int fun_dir_towards(dumb_ptr<env_t>, val_t *result, Slice<val_t> args)
dx = ARGLOCATION(1).x - ARGLOCATION(0).x;
dy = ARGLOCATION(1).y - ARGLOCATION(0).y;
- if (ARGINT(1))
+ if (ARGINT(2))
{
/* 8-direction mode */
if (abs(dx) > abs(dy) * 2)