summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tile2.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-24 12:26:46 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-24 12:26:46 +0000
commit6f2fb6552309ec39ec8a461ffd03595b10a860dc (patch)
tree94dc46497763ebb84f0349fc7f34b5af3458e6c1 /crawl-ref/source/tile2.cc
parent904a64bbcff41f7ecde8de133ddf68eeb2a8959f (diff)
downloadcrawl-ref-6f2fb6552309ec39ec8a461ffd03595b10a860dc.tar.gz
crawl-ref-6f2fb6552309ec39ec8a461ffd03595b10a860dc.zip
Moving player halo into the player tiles so that it can be layered on top of the shadow.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4587 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tile2.cc')
-rw-r--r--crawl-ref/source/tile2.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/crawl-ref/source/tile2.cc b/crawl-ref/source/tile2.cc
index acd4f9e41f..920e8229ac 100644
--- a/crawl-ref/source/tile2.cc
+++ b/crawl-ref/source/tile2.cc
@@ -23,6 +23,7 @@
#include "it_use2.h"
#include "place.h"
#include "player.h"
+#include "spells3.h"
#include "stuff.h"
#include "tiles.h"
#include "tilecount-w2d.h"
@@ -661,8 +662,6 @@ void _tcache_compose_normal(int ix, int *fg, int *bg)
if (new_bg)
_tcache_overlay(tcache_image, ix, new_bg, &c, NULL);
- if (bg0 & TILE_FLAG_HALO_YOU)
- _tcache_overlay(tcache_image, ix, TILE_HALO_PLAYER, &c, NULL);
else if (bg0 & TILE_FLAG_HALO)
_tcache_overlay(tcache_image, ix, TILE_HALO, &c, NULL);
@@ -1240,6 +1239,7 @@ static bool _draw_doll(img_type img, dolls_data *doll, bool force_redraw = false
const int p_order[TILEP_PARTS_TOTAL] =
{
TILEP_PART_SHADOW,
+ TILEP_PART_HALO,
TILEP_PART_DRCWING,
TILEP_PART_CLOAK,
TILEP_PART_BASE,
@@ -1279,6 +1279,9 @@ static bool _draw_doll(img_type img, dolls_data *doll, bool force_redraw = false
// TODO enne - make these configurable.
parts[TILEP_PART_DRCHEAD] = default_parts[TILEP_PART_DRCHEAD];
parts[TILEP_PART_DRCWING] = default_parts[TILEP_PART_DRCWING];
+
+ bool halo = inside_halo(you.x_pos, you.y_pos);
+ parts[TILEP_PART_HALO] = halo ? TILEP_HALO_TSO : 0;
}
// convert TILEP_SHOW_EQUIP into real parts number
@@ -1409,8 +1412,8 @@ static bool _draw_doll(img_type img, dolls_data *doll, bool force_redraw = false
// swap boot and leg-armor
if (parts2[TILEP_PART_LEG] < TILEP_LEG_SKIRT_OFS)
{
- p_order2[5] = TILEP_PART_LEG;
- p_order2[4] = TILEP_PART_BOOTS;
+ p_order2[6] = TILEP_PART_LEG;
+ p_order2[5] = TILEP_PART_BOOTS;
}
for (i = 0; i < TILEP_PARTS_TOTAL; i++)