From 8613e478996691d34a27891779b40456ad9bb042 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 11 Mar 2020 00:31:19 +0100 Subject: [PATCH] - default terrain's DamageTimeMask to a reasonable value. Use 31, which is the default for damaging floor specials instead of 0. --- src/gamedata/p_terrain.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gamedata/p_terrain.cpp b/src/gamedata/p_terrain.cpp index 8472b1fab3..58eeba9b90 100644 --- a/src/gamedata/p_terrain.cpp +++ b/src/gamedata/p_terrain.cpp @@ -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 {