diff --git a/gzdoom.vcproj b/gzdoom.vcproj index 2c176ac1..0f773d50 100644 --- a/gzdoom.vcproj +++ b/gzdoom.vcproj @@ -6502,13 +6502,6 @@ - - - state) { + FColormap cmc = cm; + if (statebright[i]) + { + if (fakesec == viewsector || in_area != area_below) + // under water areas keep most of their color for fullbright objects + { + cmc.LightColor.r= + cmc.LightColor.g= + cmc.LightColor.b=0xff; + } + else + { + cmc.LightColor.r = (3*cmc.LightColor.r + 0xff)/4; + cmc.LightColor.g = (3*cmc.LightColor.g + 0xff)/4; + cmc.LightColor.b = (3*cmc.LightColor.b + 0xff)/4; + } + } // set the lighting parameters (only calls glColor and glAlphaFunc) gl_SetSpriteLighting(vis.RenderStyle, playermo, statebright[i]? 255 : lightlevel, - 0, &cm, 0xffffff, trans, statebright[i], true); + 0, &cmc, 0xffffff, trans, statebright[i], true); DrawPSprite (player,psp,psp->sx+ofsx, psp->sy+ofsy, cm.colormap, hudModelStep); } } diff --git a/src/gl/system/gl_wipe.cpp b/src/gl/system/gl_wipe.cpp index 23f69b8b..d0363328 100644 --- a/src/gl/system/gl_wipe.cpp +++ b/src/gl/system/gl_wipe.cpp @@ -193,6 +193,7 @@ bool OpenGLFrameBuffer::WipeDo(int ticks) gl_RenderState.EnableTexture(true); gl_RenderState.EnableFog(false); + gl.Disable(GL_DEPTH_TEST); bool done = ScreenWipe->Run(ticks, this); //DrawLetterbox(); diff --git a/src/r_translate.cpp b/src/r_translate.cpp index afd35cf2..bd1e7bfd 100644 --- a/src/r_translate.cpp +++ b/src/r_translate.cpp @@ -463,7 +463,7 @@ void FRemapTable::AddToTranslation(const char * range) { int pal1,pal2; - sc.MustGetToken(TK_IntConst); + sc.TokenMustBe(TK_IntConst); pal1 = sc.Number; sc.MustGetToken(':'); sc.MustGetToken(TK_IntConst); diff --git a/src/svnrevision.h b/src/svnrevision.h index 6c38c758..4e87de96 100644 --- a/src/svnrevision.h +++ b/src/svnrevision.h @@ -3,5 +3,5 @@ // This file was automatically generated by the // updaterevision tool. Do not edit by hand. -#define ZD_SVN_REVISION_STRING "1921" -#define ZD_SVN_REVISION_NUMBER 1921 +#define ZD_SVN_REVISION_STRING "1925" +#define ZD_SVN_REVISION_NUMBER 1925 diff --git a/src/version.h b/src/version.h index c518aceb..cf2aa65a 100644 --- a/src/version.h +++ b/src/version.h @@ -41,15 +41,15 @@ /** Lots of different version numbers **/ -#define DOTVERSIONSTR_NOREV "1.3.0 beta" +#define DOTVERSIONSTR_NOREV "1.3.1 beta" #define ZDVER_STRING "2.3.1" // The version string the user actually sees. #define DOTVERSIONSTR DOTVERSIONSTR_NOREV " (r" SVN_REVISION_STRING ") / ZDoom" ZDVER_STRING " (r" ZD_SVN_REVISION_STRING ")" // The version as seen in the Windows resource -#define RC_FILEVERSION 1,3,0,SVN_REVISION_NUMBER -#define RC_PRODUCTVERSION 1,3,0,0 +#define RC_FILEVERSION 1,3,1,SVN_REVISION_NUMBER +#define RC_PRODUCTVERSION 1,3,1,0 #define RC_FILEVERSION2 DOTVERSIONSTR #define RC_PRODUCTVERSION2 "1.3"