summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game-server/mapcomposite.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game-server/mapcomposite.cpp b/src/game-server/mapcomposite.cpp
index 6145ecc1..4994b901 100644
--- a/src/game-server/mapcomposite.cpp
+++ b/src/game-server/mapcomposite.cpp
@@ -276,6 +276,7 @@ int ObjectBucket::allocate()
// Any free ID in the bucket?
if (!free)
{
+ LOG_INFO("No free id in bucket");
return -1;
}
@@ -314,6 +315,7 @@ int ObjectBucket::allocate()
}
// No free ID in the bucket.
+ LOG_INFO("No free id in the bucket");
return -1;
}
@@ -370,6 +372,7 @@ bool MapContent::allocate(MovingObject *obj)
new bucket. */
b = new ObjectBucket;
buckets[i] = b;
+ LOG_INFO("New bucket created");
}
int j = b->allocate();
if (j >= 0)
@@ -382,6 +385,7 @@ bool MapContent::allocate(MovingObject *obj)
}
// All the IDs are currently used, fail.
+ LOG_ERROR("unable to allocate id");
return false;
}
@@ -511,6 +515,9 @@ void MapComposite::remove(Thing *ptr)
if (ptr->canMove())
{
+ std::stringstream str;
+ str << "Deallocating " << ptr->getType();
+ LOG_INFO(str.str());
mContent->deallocate(static_cast< MovingObject * >(ptr));
}
}