mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-03-04 17:21:27 +01:00
character: read width/height values from ini file
This commit is contained in:
parent
3938a78503
commit
08d2e544b7
1 changed files with 2 additions and 2 deletions
|
@ -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->duration = strtodnull(al_get_config_value(config, "animation", "duration"), 16.66);
|
||||||
|
|
||||||
s->width = 0;
|
s->width = strtodnull(al_get_config_value(config, "animation", "width"), 0);
|
||||||
s->height = 0;
|
s->height = strtodnull(al_get_config_value(config, "animation", "height"), 0);
|
||||||
|
|
||||||
s->repeats = strtolnull(al_get_config_value(config, "animation", "repeats"), -1);
|
s->repeats = strtolnull(al_get_config_value(config, "animation", "repeats"), -1);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue