diff options
author | Neil Moore <neil@s-z.org> | 2014-07-05 23:29:46 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-05 23:29:46 -0400 |
commit | 23cfd756bfba6ec78f7ae2b5d8da3fb97c3e00f9 (patch) | |
tree | 3ef92c9cbfef79e172bdf8de569ff3cd645e1568 /crawl-ref/source/dgn-layouts.cc | |
parent | b51865a73f7f5f3a2fcea0e1d21c60c0ebe8e999 (diff) | |
download | crawl-ref-23cfd756bfba6ec78f7ae2b5d8da3fb97c3e00f9.tar.gz crawl-ref-23cfd756bfba6ec78f7ae2b5d8da3fb97c3e00f9.zip |
Simplify by using coord_def::origin.
Diffstat (limited to 'crawl-ref/source/dgn-layouts.cc')
-rw-r--r-- | crawl-ref/source/dgn-layouts.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/dgn-layouts.cc b/crawl-ref/source/dgn-layouts.cc index be2d058f35..765f9f89c8 100644 --- a/crawl-ref/source/dgn-layouts.cc +++ b/crawl-ref/source/dgn-layouts.cc @@ -329,7 +329,7 @@ static void _make_trail(int xs, int xr, int ys, int yr, int corrlength, else dir.y = _trail_random_dir(pos.y, GYM, 15); - if (dir.x == 0 && dir.y == 0 || map_masked(pos + dir, MMT_VAULT)) + if (dir.origin() || map_masked(pos + dir, MMT_VAULT)) continue; // Corridor length... change only when going vertical? |