diff options
author | Neil Moore <neil@s-z.org> | 2014-01-12 17:06:28 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-01-12 17:06:28 -0500 |
commit | ee3e194ceda1a02cb1fcb2a7badeef0e3ed295be (patch) | |
tree | bea899adb120d44ec8cd5175c16a49c4728f4b14 /crawl-ref/source/wiz-dgn.cc | |
parent | 67f510594a037d6625c15c89ad3d5078664bd13c (diff) | |
download | crawl-ref-ee3e194ceda1a02cb1fcb2a7badeef0e3ed295be.tar.gz crawl-ref-ee3e194ceda1a02cb1fcb2a7badeef0e3ed295be.zip |
Don't crash when moving after &(rock_wall
Diffstat (limited to 'crawl-ref/source/wiz-dgn.cc')
-rw-r--r-- | crawl-ref/source/wiz-dgn.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/wiz-dgn.cc b/crawl-ref/source/wiz-dgn.cc index 8d65b455be..9b8ff5b1aa 100644 --- a/crawl-ref/source/wiz-dgn.cc +++ b/crawl-ref/source/wiz-dgn.cc @@ -283,6 +283,8 @@ bool wizard_create_feature(const coord_def& pos) if (map_bounds(right) && feat_is_door(grd(right))) tile_init_flavour(right); } + if (pos == you.pos() && cell_is_solid(pos)) + you.wizmode_teleported_into_rock = true; return true; } |