Fix model test reading of texture animation part of PIE files. Did not account for

possibility of floating point values, that are allowed.
master
per 2013-09-06 07:18:39 +02:00
parent 500f3a8aec
commit c4cdd4ae02
1 changed files with 2 additions and 2 deletions

View File

@ -184,8 +184,8 @@ static void check_pie(const char *input)
}
if (flags & iV_IMD_TEXANIM)
{
int frames, rate, width, height;
num = fscanf(fp, "%d %d %d %d", &frames, &rate, &width, &height);
int frames, rate; float width, height;
num = fscanf(fp, "%d %d %f %f", &frames, &rate, &width, &height);
if (num != 4)
{
fprintf(stderr, "File %s - Bad texture animation entry level %d, number %d.\n", input, level, j);