mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
Merge branch 'maint'
This commit is contained in:
commit
0fb37ca5f1
2 changed files with 6 additions and 6 deletions
|
@ -12,7 +12,7 @@
|
|||
#include <stdlib.h>
|
||||
#include "doomtype.h"
|
||||
|
||||
#if defined(__GNUC__) && defined(__i386__)
|
||||
#if defined(__GNUC__) && defined(__i386__) && !defined(__clang__)
|
||||
#include "gccinlines.h"
|
||||
#elif defined(_MSC_VER) && defined(_M_IX86)
|
||||
#include "mscinlines.h"
|
||||
|
|
|
@ -867,7 +867,7 @@ static void ParseActionDef (FScanner &sc, PClass *cls)
|
|||
OPTIONAL = 1
|
||||
};
|
||||
|
||||
bool error = false;
|
||||
unsigned int error = 0;
|
||||
const AFuncDesc *afd;
|
||||
FName funcname;
|
||||
FString args;
|
||||
|
@ -876,8 +876,8 @@ static void ParseActionDef (FScanner &sc, PClass *cls)
|
|||
|
||||
if (sc.LumpNum == -1 || Wads.GetLumpFile(sc.LumpNum) > 0)
|
||||
{
|
||||
sc.ScriptMessage ("action functions can only be imported by internal class and actor definitions!");
|
||||
error++;
|
||||
sc.ScriptMessage ("Action functions can only be imported by internal class and actor definitions!");
|
||||
++error;
|
||||
}
|
||||
|
||||
sc.MustGetToken(TK_Native);
|
||||
|
@ -887,7 +887,7 @@ static void ParseActionDef (FScanner &sc, PClass *cls)
|
|||
if (afd == NULL)
|
||||
{
|
||||
sc.ScriptMessage ("The function '%s' has not been exported from the executable.", sc.String);
|
||||
error++;
|
||||
++error;
|
||||
}
|
||||
sc.MustGetToken('(');
|
||||
if (!sc.CheckToken(')'))
|
||||
|
@ -998,7 +998,7 @@ static void ParseActionDef (FScanner &sc, PClass *cls)
|
|||
}
|
||||
if (error)
|
||||
{
|
||||
FScriptPosition::ErrorCounter++;
|
||||
FScriptPosition::ErrorCounter += error;
|
||||
}
|
||||
else if (cls->Symbols.AddSymbol (sym) == NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue