From 7c42da72cde5a43dfd3894da44935da223d59436 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Aug 2011 23:24:25 +0300 Subject: Add option to enable/disable reorder sprites feature. --- src/being.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index 47e1f03fc..cd616fc67 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -196,6 +196,7 @@ bool Being::mShowOwnHP = false; bool Being::mShowGender = false; bool Being::mShowLevel = false; bool Being::mShowPlayersStatus = false; +bool Being::mEnableReorderSprites = true; std::list beingInfoCache; @@ -1750,6 +1751,7 @@ void Being::reReadConfig() mShowGender = config.getBoolValue("showgender"); mShowLevel = config.getBoolValue("showlevel"); mShowPlayersStatus = config.getBoolValue("showPlayersStatus"); + mEnableReorderSprites = config.getBoolValue("enableReorderSprites"); mUpdateConfigTime = cur_time; } @@ -2073,6 +2075,9 @@ void Being::resetCounters() void Being::recalcSpritesOrder() { + if (!mEnableReorderSprites) + return; + // logger->log("recalcSpritesOrder"); unsigned sz = static_cast(size()); if (sz < 1) -- cgit v1.2.3-70-g09d2