character: Allow to set global scale in spritesheet definition

This commit is contained in:
Sebastian Krzyszkowiak 2022-07-21 08:07:29 +02:00
parent 015b9dbaff
commit 84c56bb12b
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -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;