summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-11-06 21:13:16 +0300
committerAndrei Karas <akaras@inbox.ru>2012-11-07 12:46:08 +0300
commitd812d9fac7bae4eff66a5ce8275be19d0ca77a32 (patch)
tree7f9619d23a44202a76282849bb1284773302309f /src/being.cpp
parent1bcaac517036751a8fee9ff3d6561f5866e6969e (diff)
downloadmanaverse-d812d9fac7bae4eff66a5ce8275be19d0ca77a32.tar.gz
manaverse-d812d9fac7bae4eff66a5ce8275be19d0ca77a32.tar.bz2
manaverse-d812d9fac7bae4eff66a5ce8275be19d0ca77a32.tar.xz
manaverse-d812d9fac7bae4eff66a5ce8275be19d0ca77a32.zip
Add own profiler and profiler info to some code.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 210736117..fe84cdaaf 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -1243,6 +1243,7 @@ void Being::nextTile()
void Being::logic()
{
+ BLOCK_START("Being::logic")
// Reduce the time that speech is still displayed
if (mSpeechTime > 0)
mSpeechTime--;
@@ -1264,7 +1265,10 @@ void Being::logic()
// This is a hack that stops NPCs from running off the map...
if (mDest.x <= 0 && mDest.y <= 0)
+ {
+ BLOCK_END("Being::logic")
return;
+ }
// The Vector representing the difference between current position
// and the next destination path node.
@@ -1449,6 +1453,7 @@ void Being::logic()
if (mType != PLAYER && actorSpriteManager)
actorSpriteManager->destroy(this);
}
+ BLOCK_END("Being::logic")
}
void Being::drawEmotion(Graphics *const graphics, const int offsetX,
@@ -1878,6 +1883,7 @@ void Being::updateName()
void Being::reReadConfig()
{
+ BLOCK_START("Being::reReadConfig")
if (mUpdateConfigTime + 1 < cur_time)
{
mHighlightMapPortals = config.getBoolValue("highlightMapPortals");
@@ -1898,6 +1904,7 @@ void Being::reReadConfig()
mUpdateConfigTime = cur_time;
}
+ BLOCK_END("Being::reReadConfig")
}
bool Being::updateFromCache()