mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Add a hack to the animsounds DEF token parsing to not wrongly emit an error.
git-svn-id: https://svn.eduke32.com/eduke32@2258 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e30ed58aa0
commit
6aec1d1f26
1 changed files with 8 additions and 1 deletions
|
@ -8380,7 +8380,14 @@ static int32_t parsedefinitions_game(scriptfile *script, int32_t preload)
|
|||
continue;
|
||||
}
|
||||
|
||||
// XXX: ugly, will produce error when it encounters the closing '}'
|
||||
// HACK: we've reached the end of the list
|
||||
// (hack because it relies on knowledge of
|
||||
// how scriptfile_* preprocesses the text)
|
||||
if (animsoundsend - script->textptr == 1)
|
||||
break;
|
||||
|
||||
// would produce error when it encounters the closing '}'
|
||||
// without the above hack
|
||||
if (scriptfile_getnumber(script, &framenum)) break;
|
||||
|
||||
bad=1;
|
||||
|
|
Loading…
Reference in a new issue