mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-19 07:01:09 +00:00
- 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:
parent
7936aca79d
commit
20b96501b6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue