Handle hipnotic demos when checking for .dem.

hipdemo1.dem has a single leading space. They probably did "%2d" for the
track number, as there is no space before the minus sign in the other
hipnotic demos.
This commit is contained in:
Bill Currie 2013-01-31 16:47:43 +09:00
parent 0cc90a75e3
commit 6edf8133aa

View file

@ -394,6 +394,8 @@ demo_check_dem (void)
// .dem demo files begin with an ascii integer (possibly negative)
// representing the forced bgm track, followed by a newline
c = Qgetc (cls.demofile);
while (isspace (c)) // hipnotic demos have leading whitespace :P
c = Qgetc (cls.demofile);
if (c == '-')
c = Qgetc (cls.demofile);
while (isdigit (c))