]> git.localhorst.tv Git - blobs.git/blobdiff - src/creature/goal.cpp
standardized logging
[blobs.git] / src / creature / goal.cpp
index a4f33304f3f75af56b86c376b0c653879405006e..f20ecc5b2b3d2cd99c96ad2a6685286a1b27691c 100644 (file)
@@ -100,8 +100,7 @@ void BlobBackgroundTask::CheckStats() {
 void BlobBackgroundTask::CheckSplit() {
        if (GetCreature().Mass() > GetCreature().OffspringMass() * 2.0
                && GetCreature().OffspringChance() > Assets().random.UNorm()) {
-               std::cout << "[" << ui::TimeString(GetCreature().GetSimulation().Time())
-                       << "] " << GetCreature().Name() << " split" << std::endl;
+               GetCreature().GetSimulation().Log() << GetCreature().Name() << " split" << std::endl;
                Split(GetCreature());
                return;
        }