diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/magic-expr.cpp | 2 |
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) |