From 84c56bb12bd81586f898f0494f3d8180b15fec04 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Thu, 21 Jul 2022 08:07:29 +0200 Subject: [PATCH] character: Allow to set global scale in spritesheet definition --- src/character.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/character.c b/src/character.c index b25742b..b121a37 100644 --- a/src/character.c +++ b/src/character.c @@ -426,7 +426,7 @@ SYMBOL_EXPORT void RegisterSpritesheet(struct Game* game, struct Character* char s->frames[i].end = i == (s->frame_count - 1) ? true : false; } - s->scale = LIBSUPERDERPY_IMAGE_SCALE; + s->scale = strtodnull(al_get_config_value(config, "animation", "scale"), 1.0) * LIBSUPERDERPY_IMAGE_SCALE; s->stream = NULL; s->stream_data = NULL;