character: read width/height values from ini file

This commit is contained in:
Sebastian Krzyszkowiak 2018-04-18 23:13:31 +02:00
parent 3938a78503
commit 08d2e544b7

View file

@ -190,8 +190,8 @@ SYMBOL_EXPORT void RegisterSpritesheet(struct Game* game, struct Character* char
s->duration = strtodnull(al_get_config_value(config, "animation", "duration"), 16.66);
s->width = 0;
s->height = 0;
s->width = strtodnull(al_get_config_value(config, "animation", "width"), 0);
s->height = strtodnull(al_get_config_value(config, "animation", "height"), 0);
s->repeats = strtolnull(al_get_config_value(config, "animation", "repeats"), -1);