From 10fc389814be7d0c6f4af3842046bd200f57212d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 5 May 2016 15:53:11 +0300 Subject: Fix erased players hide emotes and spech over head. --- src/being/being.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/being/being.cpp b/src/being/being.cpp index 76b9de904..d167f4408 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -2078,6 +2078,9 @@ void Being::drawEmotion(Graphics *restrict const graphics, const int offsetX, const int offsetY) const restrict2 { + if (mErased) + return; + const int px = mPixelX - offsetX - mapTileSize / 2; const int py = mPixelY - offsetY - mapTileSize * 2 - mapTileSize; if (mAnimationEffect) @@ -2119,6 +2122,8 @@ void Being::drawEmotion(Graphics *restrict const graphics, void Being::drawSpeech(const int offsetX, const int offsetY) restrict2 { + if (mErased) + return; if (mSpeech.empty()) return; -- cgit v1.2.3-60-g2f50