From 1798905e716ab714da4ec70262532988b58356cd Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 9 Apr 2007 15:30:30 +0000 Subject: Added ice statues. Monster spells now use spell_type instead of the old mon_spell_type. Fixed buggy behaviour when banished from Labyrinth. DGL_WHEREIS was not including current time, fixed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1275 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tags.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/tags.cc') diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index 6dae67aca2..c2cd0d59ad 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -1061,7 +1061,8 @@ static void tag_read_you(struct tagHeader &th, char minorVersion) count_c = unmarshallByte(th); for (i = 0; i < count_c; ++i) { - you.spells[i] = unmarshallByte(th); + you.spells[i] = + static_cast( (unsigned char) unmarshallByte(th) ); if (you.spells[i] != SPELL_NO_SPELL) you.spell_no++; } @@ -1616,7 +1617,7 @@ static void unmarshall_monster(tagHeader &th, monsters &m) m.inv[j] = unmarshallShort(th); for (int j = 0; j < NUM_MONSTER_SPELL_SLOTS; ++j) - m.spells[j] = unmarshallShort(th); + m.spells[j] = static_cast( unmarshallShort(th) ); m.god = (god_type) unmarshallByte(th); -- cgit v1.2.3-54-g00ecf