diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-08-09 19:52:43 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-08-09 19:52:43 +0000 |
commit | dedf3d075e5c6c7cb3aa7ccb6939723fd98254a1 (patch) | |
tree | 4abe0db12f63eea2149f14ded9b7a47f246aa701 /crawl-ref/source/tilepick.cc | |
parent | f7a49b238c645e9979a1619d590427f713e781cc (diff) | |
download | crawl-ref-dedf3d075e5c6c7cb3aa7ccb6939723fd98254a1.tar.gz crawl-ref-dedf3d075e5c6c7cb3aa7ccb6939723fd98254a1.zip |
Fix the weird beam tiles for unknown beam types.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10510 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r-- | crawl-ref/source/tilepick.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc index 60a4406723..7f1a85da12 100644 --- a/crawl-ref/source/tilepick.cc +++ b/crawl-ref/source/tilepick.cc @@ -2698,7 +2698,8 @@ int tileidx_bolt(const bolt &bolt) int tileidx_zap(int colour) { - int col = colour; + int col = (colour == ETC_MAGIC ? element_colour(ETC_MAGIC) : colour); + if (col > 8) col -= 8; if (col < 1) |