mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-31 05:40:44 +00:00
- Fixed compilation issues with GCC.
- Removed special case for nobotnodes in MAPINFO. SVN r1045 (trunk)
This commit is contained in:
parent
4ff07b68ee
commit
1462e5efa4
4 changed files with 11 additions and 9 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
June 23, 2008
|
||||||
|
- Fixed compilation issues with GCC.
|
||||||
|
- Removed special case for nobotnodes in MAPINFO.
|
||||||
|
|
||||||
June 22, 2008 (Changes by Graf Zahl)
|
June 22, 2008 (Changes by Graf Zahl)
|
||||||
- Added support for ST's QUARTERGRAVITY flag.
|
- Added support for ST's QUARTERGRAVITY flag.
|
||||||
- Added a generalized version of Skulltag's A_CheckRailReload function.
|
- Added a generalized version of Skulltag's A_CheckRailReload function.
|
||||||
|
|
|
@ -114,9 +114,9 @@ struct FOptionalMapinfoParser
|
||||||
MIParseFunc parsefunc;
|
MIParseFunc parsefunc;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static TArray<FOptionalMapinfoParser> optmapinf(TArray<FOptionalMapinfoParser>::NoInit);
|
static TArray<FOptionalMapinfoParser> optmapinf(TArray<FOptionalMapinfoParser>::NoInit);
|
||||||
|
|
||||||
|
|
||||||
void AddOptionalMapinfoParser(const char *keyword, MIParseFunc parsefunc)
|
void AddOptionalMapinfoParser(const char *keyword, MIParseFunc parsefunc)
|
||||||
{
|
{
|
||||||
FOptionalMapinfoParser mi;
|
FOptionalMapinfoParser mi;
|
||||||
|
@ -362,6 +362,7 @@ static const char *MapInfoMapLevel[] =
|
||||||
"nocheckswitchrange",
|
"nocheckswitchrange",
|
||||||
"translator",
|
"translator",
|
||||||
"unfreezesingleplayerconversations",
|
"unfreezesingleplayerconversations",
|
||||||
|
"nobotnodes",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -511,6 +512,7 @@ MapHandlers[] =
|
||||||
{ MITYPE_CLRFLAG, LEVEL_CHECKSWITCHRANGE, 0 },
|
{ MITYPE_CLRFLAG, LEVEL_CHECKSWITCHRANGE, 0 },
|
||||||
{ MITYPE_STRING, lioffset(translator), 0 },
|
{ MITYPE_STRING, lioffset(translator), 0 },
|
||||||
{ MITYPE_SETFLAG, LEVEL_CONV_SINGLE_UNFREEZE, 0 },
|
{ MITYPE_SETFLAG, LEVEL_CONV_SINGLE_UNFREEZE, 0 },
|
||||||
|
{ MITYPE_IGNORE, 0, 0 }, // Skulltag option: nobotnodes
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *MapInfoClusterLevel[] =
|
static const char *MapInfoClusterLevel[] =
|
||||||
|
@ -924,7 +926,7 @@ static void ParseMapInfoLower (FScanner &sc,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
entry = sc.MatchString (strings);
|
entry = sc.MatchString (strings);
|
||||||
|
|
||||||
if (entry == -1)
|
if (entry == -1)
|
||||||
{
|
{
|
||||||
FString keyword = sc.String;
|
FString keyword = sc.String;
|
||||||
|
@ -936,15 +938,10 @@ static void ParseMapInfoLower (FScanner &sc,
|
||||||
ParseOptionalBlock(keyword, sc, levelinfo);
|
ParseOptionalBlock(keyword, sc, levelinfo);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (!stricmp(keyword, "nobotnodes")) // Ignore this Skulltag option if it appears
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
sc.ScriptError("Unknown keyword '%s'", keyword.GetChars());
|
sc.ScriptError("Unknown keyword '%s'", keyword.GetChars());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
handler = handlers + entry;
|
handler = handlers + entry;
|
||||||
switch (handler->type)
|
switch (handler->type)
|
||||||
{
|
{
|
||||||
|
|
|
@ -147,6 +147,7 @@ struct FOptionalMapinfoData
|
||||||
FOptionalMapinfoData *Next;
|
FOptionalMapinfoData *Next;
|
||||||
FName identifier;
|
FName identifier;
|
||||||
FOptionalMapinfoData() { Next = NULL; identifier = NAME_None; }
|
FOptionalMapinfoData() { Next = NULL; identifier = NAME_None; }
|
||||||
|
virtual ~FOptionalMapinfoData() = 0;
|
||||||
virtual FOptionalMapinfoData *Clone() const = 0;
|
virtual FOptionalMapinfoData *Clone() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -953,7 +953,7 @@ FArchive &operator<< (FArchive &arc, FTextureID &tex)
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
FTextureID FTextureID::operator +(int offset)
|
FTextureID FTextureID::operator +(int offset) throw()
|
||||||
{
|
{
|
||||||
if (!isValid()) return *this;
|
if (!isValid()) return *this;
|
||||||
if (texnum + offset >= TexMan.NumTextures()) return FTextureID(-1);
|
if (texnum + offset >= TexMan.NumTextures()) return FTextureID(-1);
|
||||||
|
|
Loading…
Reference in a new issue