intro: fix moving animation speed to be independent of viewport size

This commit is contained in:
Sebastian Krzyszkowiak 2015-03-15 05:38:51 +01:00
parent e4553576ce
commit 145727658f

View file

@ -147,7 +147,7 @@ void Gamestate_Logic(struct Game *game, struct IntroResources* data) {
data->anim += 1.0/20.0;
if (data->in_animation) {
int old = data->position%game->viewport.width;
data->position -= 10;
data->position -= game->viewport.width*0.0078125 > 1 ? game->viewport.width*0.0078125 : 1;
if (data->position%game->viewport.width>old) {
data->in_animation = false;
FillPage(game, data, data->page+1);