mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
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:
parent
0cc90a75e3
commit
6edf8133aa
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue