SAGA2: Print out object names

This commit is contained in:
Eugene Sandulenko 2021-06-26 02:38:02 +02:00
parent 29ab7ab001
commit 8a9827985d
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -1417,7 +1417,7 @@ Actor *Actor::newActor(
if (a->flags & temporary) {
incTempActorCount(protoNum);
debugC(1, kDebugActors, "Actors: Created temp actor %d new count:%d", a->thisID() - 32768, getTempActorCount(protoNum));
debugC(1, kDebugActors, "Actors: Created temp actor %d (%s) new count:%d", a->thisID() - 32768, a->objName(), getTempActorCount(protoNum));
}
return a;
@ -1431,7 +1431,7 @@ void Actor::deleteActor(void) {
uint16 protoNum = (ActorProto *)prototype - actorProtos;
decTempActorCount(protoNum);
debugC(1, kDebugActors, "Actors: Deleting temp actor %d new count:%d", thisID() - 32768, getTempActorCount(protoNum));
debugC(1, kDebugActors, "Actors: Deleting temp actor %d (%s) new count:%d", thisID() - 32768, objName(), getTempActorCount(protoNum));
}
// Kill task