character: don't log destroying shared characters

Usually leads to too much noise for no value.
This commit is contained in:
Sebastian Krzyszkowiak 2018-11-25 04:09:41 +01:00
parent a7d2d72bd6
commit a7d2ed55c0
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -343,7 +343,9 @@ SYMBOL_EXPORT struct Character* CreateCharacter(struct Game* game, char* name) {
}
SYMBOL_EXPORT void DestroyCharacter(struct Game* game, struct Character* character) {
PrintConsole(game, "Destroying %scharacter %s...", character->shared ? "shared " : "", character->name);
if (!character->shared) {
PrintConsole(game, "Destroying character %s...", character->name);
}
if (character->destructor) {
character->destructor(game, character);