Fix model test reading of texture animation part of PIE files. Did not account for
possibility of floating point values, that are allowed.master
parent
500f3a8aec
commit
c4cdd4ae02
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue