mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +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)
|
||||
- Added support for ST's QUARTERGRAVITY flag.
|
||||
- Added a generalized version of Skulltag's A_CheckRailReload function.
|
||||
|
|
|
@ -114,9 +114,9 @@ struct FOptionalMapinfoParser
|
|||
MIParseFunc parsefunc;
|
||||
};
|
||||
|
||||
|
||||
static TArray<FOptionalMapinfoParser> optmapinf(TArray<FOptionalMapinfoParser>::NoInit);
|
||||
|
||||
|
||||
void AddOptionalMapinfoParser(const char *keyword, MIParseFunc parsefunc)
|
||||
{
|
||||
FOptionalMapinfoParser mi;
|
||||
|
@ -362,6 +362,7 @@ static const char *MapInfoMapLevel[] =
|
|||
"nocheckswitchrange",
|
||||
"translator",
|
||||
"unfreezesingleplayerconversations",
|
||||
"nobotnodes",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
@ -511,6 +512,7 @@ MapHandlers[] =
|
|||
{ MITYPE_CLRFLAG, LEVEL_CHECKSWITCHRANGE, 0 },
|
||||
{ MITYPE_STRING, lioffset(translator), 0 },
|
||||
{ MITYPE_SETFLAG, LEVEL_CONV_SINGLE_UNFREEZE, 0 },
|
||||
{ MITYPE_IGNORE, 0, 0 }, // Skulltag option: nobotnodes
|
||||
};
|
||||
|
||||
static const char *MapInfoClusterLevel[] =
|
||||
|
@ -924,7 +926,7 @@ static void ParseMapInfoLower (FScanner &sc,
|
|||
break;
|
||||
}
|
||||
entry = sc.MatchString (strings);
|
||||
|
||||
|
||||
if (entry == -1)
|
||||
{
|
||||
FString keyword = sc.String;
|
||||
|
@ -936,15 +938,10 @@ static void ParseMapInfoLower (FScanner &sc,
|
|||
ParseOptionalBlock(keyword, sc, levelinfo);
|
||||
continue;
|
||||
}
|
||||
else if (!stricmp(keyword, "nobotnodes")) // Ignore this Skulltag option if it appears
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
sc.ScriptError("Unknown keyword '%s'", keyword.GetChars());
|
||||
}
|
||||
|
||||
|
||||
|
||||
handler = handlers + entry;
|
||||
switch (handler->type)
|
||||
{
|
||||
|
|
|
@ -147,6 +147,7 @@ struct FOptionalMapinfoData
|
|||
FOptionalMapinfoData *Next;
|
||||
FName identifier;
|
||||
FOptionalMapinfoData() { Next = NULL; identifier = NAME_None; }
|
||||
virtual ~FOptionalMapinfoData() = 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 (texnum + offset >= TexMan.NumTextures()) return FTextureID(-1);
|
||||
|
|
Loading…
Reference in a new issue