From dc3f573c6ef467ddcc4a837ce90ca9df3b502c2e Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Thu, 5 Nov 2009 20:50:54 +0100 Subject: Unify mesmerisation code. There were several places that had copies of the same code, checking whether mesmerisation blocked movement to a given target. The various mesmerisation functions have become methods of player and were moved into behold.cc. --- crawl-ref/source/tags.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/tags.cc') diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index 45471455d9..f65421e5a1 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -1007,9 +1007,9 @@ static void tag_construct_you(writer &th) // be recalculated on game start. // List of currently beholding monsters (usually empty). - marshallByte(th, you.mesmerised_by.size()); - for (unsigned int k = 0; k < you.mesmerised_by.size(); k++) - marshallByte(th, you.mesmerised_by[k]); + marshallByte(th, you.beholders.size()); + for (unsigned int k = 0; k < you.beholders.size(); k++) + marshallByte(th, you.beholders[k]); marshallByte(th, you.piety_hysteresis); @@ -1449,7 +1449,7 @@ static void tag_read_you(reader &th, char minorVersion) // List of currently beholding monsters (usually empty). count_c = unmarshallByte(th); for (i = 0; i < count_c; i++) - you.mesmerised_by.push_back(unmarshallByte(th)); + you.beholders.push_back(unmarshallByte(th)); you.piety_hysteresis = unmarshallByte(th); -- cgit v1.2.3-54-g00ecf