- Version bump to 2.1.7.

- Fixed: Placing a /* */ comment at the very end of a file without a
  terminating newline would not parse reliably.
- Added a NULL WallSpriteTile check to R_RenderDecal().


SVN r365 (trunk)
This commit is contained in:
Randy Heit 2006-10-31 00:47:05 +00:00
parent 88ca8e630c
commit 3b2c2efcb1
7 changed files with 34 additions and 11 deletions

View file

@ -1,3 +1,9 @@
October 30, 2006
- Version bump to 2.1.7.
- Fixed: Placing a /* */ comment at the very end of a file without a
terminating newline would not parse reliably.
- Added a NULL WallSpriteTile check to R_RenderDecal().
October 28, 2006 (Changes by Graf Zahl) October 28, 2006 (Changes by Graf Zahl)
- Changed parameter storage for states to use a separate member variable - Changed parameter storage for states to use a separate member variable
instead of forcing it into misc1/misc2. Although this increases the EXE's instead of forcing it into misc1/misc2. Although this increases the EXE's

View file

@ -927,7 +927,7 @@ FString SubstituteAliasParams (FString &command, FCommandLine &args)
// Extract the argument number and substitute the corresponding argument. // Extract the argument number and substitute the corresponding argument.
argnum = strtoul (p + 1 + (p[1] == '{'), &start, 10); argnum = strtoul (p + 1 + (p[1] == '{'), &start, 10);
if ((p[1] != '{' || *start == '}') && argnum < args.argc()) if ((p[1] != '{' || *start == '}') && argnum < (unsigned long)args.argc())
{ {
buf += args[argnum]; buf += args[argnum];
} }

View file

@ -2167,7 +2167,7 @@ static void R_RenderDecal (side_t *wall, DBaseDecal *decal, drawseg_t *clipper,
WallSpriteTile = TexMan(decal->PicNum); WallSpriteTile = TexMan(decal->PicNum);
flipx = (BYTE)(decal->RenderFlags & RF_XFLIP); flipx = (BYTE)(decal->RenderFlags & RF_XFLIP);
if (WallSpriteTile->UseType == FTexture::TEX_Null) if (WallSpriteTile == NULL || WallSpriteTile->UseType == FTexture::TEX_Null)
{ {
return; return;
} }

View file

@ -495,12 +495,12 @@ comment:
++YYCURSOR; ++YYCURSOR;
if((yych = *YYCURSOR) == '/') goto yy85; if((yych = *YYCURSOR) == '/') goto yy85;
yy81: yy81:
#line 121 "src/sc_man_scanner.re" #line 129 "src/sc_man_scanner.re"
{ goto comment; } { goto comment; }
#line 501 "src/sc_man_scanner.h" #line 501 "src/sc_man_scanner.h"
yy82: yy82:
++YYCURSOR; ++YYCURSOR;
#line 111 "src/sc_man_scanner.re" #line 119 "src/sc_man_scanner.re"
{ {
if (YYCURSOR >= YYLIMIT) if (YYCURSOR >= YYLIMIT)
{ {
@ -517,11 +517,18 @@ yy84:
goto yy81; goto yy81;
yy85: yy85:
++YYCURSOR; ++YYCURSOR;
#line 109 "src/sc_man_scanner.re" #line 110 "src/sc_man_scanner.re"
{ goto std1; } {
#line 523 "src/sc_man_scanner.h" if (YYCURSOR >= YYLIMIT)
{
ScriptPtr = ScriptEndPtr;
return false;
}
goto std1;
}
#line 530 "src/sc_man_scanner.h"
} }
#line 122 "src/sc_man_scanner.re" #line 130 "src/sc_man_scanner.re"
newline: newline:

View file

@ -106,7 +106,15 @@ negative_check:
comment: comment:
/*!re2c /*!re2c
"*/" { goto std1; } "*/"
{
if (YYCURSOR >= YYLIMIT)
{
ScriptPtr = ScriptEndPtr;
return false;
}
goto std1;
}
"\n" "\n"
{ {
if (YYCURSOR >= YYLIMIT) if (YYCURSOR >= YYLIMIT)

View file

@ -890,6 +890,8 @@ static ExpVal EvalExpression (ExpData *data, AActor *self)
switch (data->Type) switch (data->Type)
{ {
case EX_NOP: case EX_NOP:
assert (data->Type != EX_NOP);
val = data->Value;
break; break;
case EX_Const: case EX_Const:
val = data->Value; val = data->Value;

View file

@ -40,13 +40,13 @@
/** Lots of different version numbers **/ /** Lots of different version numbers **/
#define DOTVERSIONSTR_NOREV "2.1.6" #define DOTVERSIONSTR_NOREV "2.1.7"
// The version string the user actually sees. // The version string the user actually sees.
#define DOTVERSIONSTR DOTVERSIONSTR_NOREV " (r" SVN_REVISION_STRING ")" #define DOTVERSIONSTR DOTVERSIONSTR_NOREV " (r" SVN_REVISION_STRING ")"
// The version as seen in the Windows resource // The version as seen in the Windows resource
#define RC_FILEVERSION 2,1,6,SVN_REVISION_NUMBER #define RC_FILEVERSION 2,1,7,SVN_REVISION_NUMBER
#define RC_PRODUCTVERSION 2,1,0,0 #define RC_PRODUCTVERSION 2,1,0,0
#define RC_FILEVERSION2 DOTVERSIONSTR #define RC_FILEVERSION2 DOTVERSIONSTR
#define RC_PRODUCTVERSION2 "2.1" #define RC_PRODUCTVERSION2 "2.1"