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:
helixhorned 2012-01-15 22:38:54 +00:00
parent e30ed58aa0
commit 6aec1d1f26

View file

@ -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;