fixed some state parsing errors

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401305
This commit is contained in:
David Anderson 2007-08-10 05:08:14 +00:00
parent 2a8d9a7aee
commit 2ff8d1776e

View File

@ -119,14 +119,14 @@ private:
{
if (strcmp(name, "Levels") == 0)
{
m_IgnoreLevel = LEVEL_STATE_LEVELS;
m_LevelState = LEVEL_STATE_LEVELS;
} else {
m_IgnoreLevel++;
}
} else if (m_IgnoreLevel == LEVEL_STATE_LEVELS) {
} else if (m_LevelState == LEVEL_STATE_LEVELS) {
if (strcmp(name, "Flags") == 0)
{
m_IgnoreLevel = LEVEL_STATE_FLAGS;
m_LevelState = LEVEL_STATE_FLAGS;
} else {
m_IgnoreLevel++;
}
@ -138,7 +138,7 @@ private:
}
SMCParseResult ReadSMC_KeyValue(const char *key, const char *value, bool key_quotes, bool value_quotes)
{
if (m_IgnoreLevel != LEVEL_STATE_FLAGS || m_IgnoreLevel)
if (m_LevelState != LEVEL_STATE_FLAGS || m_IgnoreLevel)
{
return SMCParse_Continue;
}