- Merged r1236, r1237, and r1240 of GZDoom.

SVN r3279 (trunk)
This commit is contained in:
Braden Obrzut 2011-08-14 23:53:20 +00:00
parent f42358ad08
commit 5c81cf20ba
4 changed files with 17 additions and 3 deletions

View file

@ -533,7 +533,12 @@ void Barrier(DObject *pointing, DObject *pointed)
void DelSoftRootHead()
{
if (SoftRoots != NULL) delete SoftRoots;
if (SoftRoots != NULL)
{
// Don't let the destructor print a warning message
SoftRoots->ObjectFlags |= OF_YesReallyDelete;
delete SoftRoots;
}
SoftRoots = NULL;
}

View file

@ -529,8 +529,9 @@ void R_Init ()
StartScreen->Progress();
V_InitFonts();
StartScreen->Progress();
R_InitColormaps ();
StartScreen->Progress();
// Colormap init moved back to InitPalette()
//R_InitColormaps ();
//StartScreen->Progress();
R_InitPointToAngle ();
R_InitTables ();

View file

@ -397,7 +397,9 @@ public:
bool is;
FMOD_OPENSTATE openstate = FMOD_OPENSTATE_MAX;
bool starving;
#if FMOD_VERSION >= 0x43400
bool diskbusy;
#endif
if (Stream == NULL)
{
@ -494,7 +496,9 @@ public:
unsigned int percentbuffered;
unsigned int position;
bool starving;
#if FMOD_VERSION >= 0x43400
bool diskbusy;
#endif
float volume;
float frequency;
bool paused;

View file

@ -378,6 +378,10 @@ void InitPalette ()
GPalette.BaseColors[0].r, GPalette.BaseColors[0].g, GPalette.BaseColors[0].b, 1, 255);
}
}
// Colormaps have to be initialized before actors are loaded,
// otherwise Powerup.Colormap will not work.
R_InitColormaps ();
}
extern "C" void STACK_ARGS DoBlending_MMX (const PalEntry *from, PalEntry *to, int count, int r, int g, int b, int a);