DestroyCharacter: print to console when the destroyed character is shared

This commit is contained in:
Sebastian Krzyszkowiak 2018-04-10 14:05:03 +02:00
parent d017956442
commit 4240b47380

View file

@ -290,7 +290,7 @@ SYMBOL_EXPORT struct Character* CreateCharacter(struct Game* game, char* name) {
} }
SYMBOL_EXPORT void DestroyCharacter(struct Game* game, struct Character* character) { SYMBOL_EXPORT void DestroyCharacter(struct Game* game, struct Character* character) {
PrintConsole(game, "Destroying character %s...", character->name); PrintConsole(game, "Destroying %scharacter %s...", character->shared ? "shared " : "", character->name);
if (!character->shared) { if (!character->shared) {
struct Spritesheet *tmp, *s = character->spritesheets; struct Spritesheet *tmp, *s = character->spritesheets;
while (s) { while (s) {