mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 01:02:03 +00:00
- fixed: The USDF CheckActorType function did not return the class object for ZDoom namespace.
- fixed: The binary check for dialogue lumps must only rewind the file by 4 bytes, not completely to the start. SVN r2568 (trunk)
This commit is contained in:
parent
883510efe2
commit
ec71635ca1
2 changed files with 2 additions and 1 deletions
|
@ -266,7 +266,7 @@ static bool LoadScriptFile(int lumpnum, FileReader *lump, int numnodes, bool inc
|
|||
char buffer[4];
|
||||
|
||||
lump->Read(buffer, 4);
|
||||
lump->Seek(0, SEEK_SET);
|
||||
lump->Seek(-4, SEEK_CUR);
|
||||
|
||||
// The binary format is so primitive that this check is enough to detect it.
|
||||
bool isbinary = (buffer[0] == 0 || buffer[1] == 0 || buffer[2] == 0 || buffer[3] == 0);
|
||||
|
|
|
@ -71,6 +71,7 @@ class USDFParser : public UDMFParserBase
|
|||
sc.ScriptMessage("'%s' is not an actor type", key);
|
||||
return NULL;
|
||||
}
|
||||
return cls;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue