From bdb33fda79c45d3eb10d552b10d0e7b09c134771 Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 26 Mar 2009 01:14:00 +0000 Subject: Make player ghosts keep the gods they worshipped in life, if any (except if they worshipped good gods, since player ghosts are undead and, hence, evil by good gods' reckoning). This gives them the proper title if Invocations was their highest skill in life. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9550 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tags.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crawl-ref/source/tags.cc') diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index f3388f935f..72bbfb85f2 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -2425,6 +2425,7 @@ static void marshallGhost(writer &th, const ghost_demon &ghost) marshallShort(th, ghost.species); marshallShort(th, ghost.job); + marshallByte(th, ghost.religion); marshallShort(th, ghost.best_skill); marshallShort(th, ghost.best_skill_level); marshallShort(th, ghost.xl); @@ -2453,6 +2454,7 @@ static ghost_demon unmarshallGhost(reader &th) ghost.species = static_cast( unmarshallShort(th) ); ghost.job = static_cast( unmarshallShort(th) ); + ghost.religion = static_cast( unmarshallByte(th) ); ghost.best_skill = static_cast( unmarshallShort(th) ); ghost.best_skill_level = unmarshallShort(th); ghost.xl = unmarshallShort(th); -- cgit v1.2.3-54-g00ecf