- default terrain's DamageTimeMask to a reasonable value.

Use 31, which is the default for damaging floor specials instead of 0.
This commit is contained in:
Christoph Oelckers 2020-03-11 00:31:19 +01:00
parent 920b322d72
commit 8613e47899

View file

@ -270,6 +270,7 @@ static void MakeDefaultTerrain ()
def.Name = "Solid";
def.Splash = -1;
def.DamageTimeMask = 31;
Terrains.Push (def);
}
@ -432,6 +433,7 @@ void ParseTerrain (FScanner &sc)
memset (&def, 0, sizeof(def));
def.Splash = -1;
def.Name = name;
def.DamageTimeMask = 31;
terrainnum = (int)Terrains.Push (def);
}
@ -443,6 +445,7 @@ void ParseTerrain (FScanner &sc)
memset (&Terrains[terrainnum], 0, sizeof(FTerrainDef));
Terrains[terrainnum].Splash = -1;
Terrains[terrainnum].Name = name;
Terrains[terrainnum].DamageTimeMask = 31;
}
else
{