mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- Fixed: 'None' was no longer recognized as a NULL class name by the
DECORATE parser. SVN r1347 (trunk)
This commit is contained in:
parent
35edd15386
commit
fdfee91b9f
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
January 3, 2009 (Changes by Graf Zahl)
|
||||
- Fixed: 'None' was no longer recognized as a NULL class name by the
|
||||
DECORATE parser.
|
||||
|
||||
January 1, 2009 (Changes by Graf Zahl)
|
||||
- Added 'ininventory item, amount' option to SBARINFO to check for a minimum
|
||||
amount instead of mere presence in the inventory.
|
||||
|
|
|
@ -77,6 +77,12 @@
|
|||
//==========================================================================
|
||||
static const PClass *FindClassTentative(const char *name, const char *ancestor)
|
||||
{
|
||||
// "" and "none" mean 'no class'
|
||||
if (name == NULL || *name == 0 || !stricmp(name, "none"))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const PClass *anc = PClass::FindClass(ancestor);
|
||||
assert(anc != NULL); // parent classes used here should always be natively defined
|
||||
const PClass *cls = const_cast<PClass*>(anc)->FindClassTentative(name);
|
||||
|
|
Loading…
Reference in a new issue