- got rid of FNameNoInit and made the default constructor of FName non-initializing.

This setup has been a constant source of problems so now I reviewed all uses of FName to make sure that everything that needs to be initialized is done manually.
This also merges the player_t constructor into the class definition as default values.
This commit is contained in:
Christoph Oelckers 2018-08-19 01:14:15 +02:00
commit fad406c4c9
47 changed files with 185 additions and 309 deletions

View file

@ -375,10 +375,9 @@ void ParseSplash (FScanner &sc)
int splashnum;
FSplashDef *splashdef;
bool isnew = false;
FName name;
sc.MustGetString ();
name = sc.String;
FName name = sc.String;
splashnum = (int)FindSplash (name);
if (splashnum < 0)
{
@ -422,10 +421,9 @@ void ParseSplash (FScanner &sc)
void ParseTerrain (FScanner &sc)
{
int terrainnum;
FName name;
sc.MustGetString ();
name = sc.String;
FName name = sc.String;
terrainnum = (int)P_FindTerrain (name);
if (terrainnum < 0)
{