Reworked FRandom constructors

Removes ambiguity while keeping old constructor syntax in check for better overall portability.
This commit is contained in:
Boondorl 2024-11-06 22:41:26 -05:00 committed by Ricardo Luís Vaz Silva
commit 3ea5be1ea7
42 changed files with 130 additions and 119 deletions

View file

@ -38,7 +38,7 @@
#include "gi.h"
#include <vm.h>
static FRandom pr_lightning ("Lightning", false);
static FRandom pr_lightning ("Lightning");
IMPLEMENT_CLASS(DLightningThinker, false, false)

View file

@ -43,10 +43,10 @@
// State.
#include "serializer.h"
static FRandom pr_flicker ("Flicker", true);
static FRandom pr_lightflash ("LightFlash", true);
static FRandom pr_strobeflash ("StrobeFlash", true);
static FRandom pr_fireflicker ("FireFlicker", true);
static FCRandom pr_flicker ("Flicker");
static FCRandom pr_lightflash ("LightFlash");
static FCRandom pr_strobeflash ("StrobeFlash");
static FCRandom pr_fireflicker ("FireFlicker");
//-----------------------------------------------------------------------------

View file

@ -37,7 +37,7 @@
#include "p_spec.h"
#include "g_levellocals.h"
static FRandom pr_doplat ("DoPlat", false);
static FRandom pr_doplat ("DoPlat");
IMPLEMENT_CLASS(DPlat, false, false)

View file

@ -36,7 +36,7 @@
#include "actorinlines.h"
#include <p_maputl.h>
static FRandom pr_quake ("Quake", true);
static FCRandom pr_quake ("Quake");
IMPLEMENT_CLASS(DEarthquake, false, true)