- Fixed: ShowErrorPane deleted the StartScreen instead of just calling

NetDone.
- moved the DIM_MAP define into v_palette.h so that it can be accessed
  from outside the status bar code.
- Fixed: The check for non-swimmable water in UpdateWaterLevel checked for
  SECF_UNDERWATER instead of SECF_UNDERWATERMASK.


SVN r514 (trunk)
This commit is contained in:
Christoph Oelckers 2007-04-22 07:45:18 +00:00
parent f48ad6c4c3
commit a370ea70c6
8 changed files with 14 additions and 12 deletions

View file

@ -1,3 +1,11 @@
April 22, 2007 (Changes by Graf Zahl)
- Fixed: ShowErrorPane deleted the StartScreen instead of just calling
NetDone.
- moved the DIM_MAP define into v_palette.h so that it can be accessed
from outside the status bar code.
- Fixed: The check for non-swimmable water in UpdateWaterLevel checked for
SECF_UNDERWATER instead of SECF_UNDERWATERMASK.
April 12, 2007 April 12, 2007
- Switched ACS world and global arrays to the TMap class instead of - Switched ACS world and global arrays to the TMap class instead of
TAutoGrowArray. A map can handle a wide range of key values better than TAutoGrowArray. A map can handle a wide range of key values better than

View file

@ -14,8 +14,6 @@
#include "templates.h" #include "templates.h"
#include "i_system.h" #include "i_system.h"
// The translation to use for depleted items
#define DIM_MAP &NormalLight.Maps[NUMCOLORMAPS*2/3*256]
#define ST_EVILGRINCOUNT (2*TICRATE) #define ST_EVILGRINCOUNT (2*TICRATE)
#define ST_STRAIGHTFACECOUNT (TICRATE/2) #define ST_STRAIGHTFACECOUNT (TICRATE/2)

View file

@ -14,8 +14,6 @@
#include "templates.h" #include "templates.h"
#include "a_keys.h" #include "a_keys.h"
// The translation to use for depleted items
#define DIM_MAP &NormalLight.Maps[NUMCOLORMAPS*2/3*256]
static FRandom pr_chainwiggle; static FRandom pr_chainwiggle;

View file

@ -15,8 +15,6 @@
#include "a_hexenglobal.h" #include "a_hexenglobal.h"
#include "a_keys.h" #include "a_keys.h"
// The translation to use for depleted items
#define DIM_MAP &NormalLight.Maps[NUMCOLORMAPS*2/3*256]
class FManaBar : public FTexture class FManaBar : public FTexture
{ {

View file

@ -15,9 +15,6 @@
#include "a_strifeglobal.h" #include "a_strifeglobal.h"
#include "gi.h" #include "gi.h"
// The translation to use for depleted items
#define DIM_MAP &NormalLight.Maps[NUMCOLORMAPS*2/3*256]
// Number of tics to move the popscreen up and down. // Number of tics to move the popscreen up and down.
#define POP_TIME (TICRATE/8) #define POP_TIME (TICRATE/8)

View file

@ -3000,7 +3000,7 @@ bool AActor::UpdateWaterLevel (fixed_t oldz, bool dosplash)
} }
// even non-swimmable deep water must be checked here to do the splashes correctly // even non-swimmable deep water must be checked here to do the splashes correctly
// But the water level must be reset when this function returns! // But the water level must be reset when this function returns!
if (!(hsec->MoreFlags&SECF_UNDERWATER)) reset=true; if (!(hsec->MoreFlags&SECF_UNDERWATERMASK)) reset=true;
} }
} }

View file

@ -88,6 +88,10 @@ extern FPalette GPalette;
extern "C" { extern "C" {
extern FDynamicColormap NormalLight; extern FDynamicColormap NormalLight;
} }
// The translation to use for depleted items
#define DIM_MAP &NormalLight.Maps[NUMCOLORMAPS*2/3*256]
extern int Near255; // A color near 255 in appearance, but not 255 extern int Near255; // A color near 255 in appearance, but not 255
int BestColor (const uint32 *pal, int r, int g, int b, int first=1, int num=255); int BestColor (const uint32 *pal, int r, int g, int b, int first=1, int num=255);

View file

@ -681,8 +681,7 @@ void ShowErrorPane(const char *text)
SetWindowText (Window, "Fatal Error - " WINDOW_TITLE); SetWindowText (Window, "Fatal Error - " WINDOW_TITLE);
if (StartScreen != NULL) // Ensure that the network pane is hidden. if (StartScreen != NULL) // Ensure that the network pane is hidden.
{ {
delete StartScreen; StartScreen->NetDone();
StartScreen = NULL;
} }
ErrorIcon = CreateWindowEx (WS_EX_NOPARENTNOTIFY, "STATIC", NULL, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | SS_OWNERDRAW, 0, 0, 0, 0, Window, NULL, g_hInst, NULL); ErrorIcon = CreateWindowEx (WS_EX_NOPARENTNOTIFY, "STATIC", NULL, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | SS_OWNERDRAW, 0, 0, 0, 0, Window, NULL, g_hInst, NULL);
if (ErrorIcon != NULL) if (ErrorIcon != NULL)