diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-12-16 23:27:51 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-12-16 23:31:41 +0100 |
commit | 476a0770e8dd2137abbaa661244b460f74ed1666 (patch) | |
tree | 4ac3e6f109ad7fced770a71e69a790c301ab988c /crawl-ref/source/tilereg-mon.cc | |
parent | 0347585d53725310aab07d53576ca2f1dab1dd4a (diff) | |
download | crawl-ref-476a0770e8dd2137abbaa661244b460f74ed1666.tar.gz crawl-ref-476a0770e8dd2137abbaa661244b460f74ed1666.zip |
Split icons out from main.png. Fixes #2981.
This should also allow us to draw clouds beneath monsters.
Diffstat (limited to 'crawl-ref/source/tilereg-mon.cc')
-rw-r--r-- | crawl-ref/source/tilereg-mon.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/tilereg-mon.cc b/crawl-ref/source/tilereg-mon.cc index e975eb347e..ce3f48b4fd 100644 --- a/crawl-ref/source/tilereg-mon.cc +++ b/crawl-ref/source/tilereg-mon.cc @@ -16,6 +16,7 @@ #include "monster.h" #include "stuff.h" #include "tiledef-dngn.h" +#include "tiledef-icons.h" #include "tiledef-player.h" #include "tilereg-dgn.h" #include "tilepick.h" @@ -184,7 +185,7 @@ void MonsterRegion::pack_buffers() m_buf.add(cell, x, y); if (cursor) - m_buf.add_main_tile(TILE_CURSOR, x, y); + m_buf.add_icons_tile(TILEI_CURSOR, x, y); continue; } } @@ -192,7 +193,7 @@ void MonsterRegion::pack_buffers() // Fill the rest of the space with out of sight floor tiles. int tileidx = env.tile_default.floor + m_flavour[i] % num_floor; m_buf.add_dngn_tile(tileidx, x, y); - m_buf.add_main_tile(TILE_MESH, x, y); + m_buf.add_icons_tile(TILEI_MESH, x, y); } } } |