- moved rnd_plasma into global space again.

C++'s init rules for local static variables are so dumb that this will cause undefined behavior with the RNG management, it's also very inefficient.
This commit is contained in:
Christoph Oelckers 2023-08-03 12:55:23 +02:00
parent 7936aca79d
commit 20b96501b6

View file

@ -87,6 +87,7 @@ void DrawLogo()
//
//
//---------------------------------------------------------------------------
static FRandom rnd_plasma;
void menu_DoPlasma()
{
@ -101,7 +102,6 @@ void menu_DoPlasma()
static int plasma_A[5];
static int plasma_B[5];
static int plasma_C[5];
static FRandom rnd_plasma;
if (!nPlasmaTile)
{