- 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:
Christoph Oelckers 2010-08-22 17:31:42 +00:00
parent 883510efe2
commit ec71635ca1
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -71,6 +71,7 @@ class USDFParser : public UDMFParserBase
sc.ScriptMessage("'%s' is not an actor type", key);
return NULL;
}
return cls;
}
return NULL;
}