mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- 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:
parent
920b322d72
commit
8613e47899
1 changed files with 3 additions and 0 deletions
|
@ -270,6 +270,7 @@ static void MakeDefaultTerrain ()
|
||||||
|
|
||||||
def.Name = "Solid";
|
def.Name = "Solid";
|
||||||
def.Splash = -1;
|
def.Splash = -1;
|
||||||
|
def.DamageTimeMask = 31;
|
||||||
Terrains.Push (def);
|
Terrains.Push (def);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -432,6 +433,7 @@ void ParseTerrain (FScanner &sc)
|
||||||
memset (&def, 0, sizeof(def));
|
memset (&def, 0, sizeof(def));
|
||||||
def.Splash = -1;
|
def.Splash = -1;
|
||||||
def.Name = name;
|
def.Name = name;
|
||||||
|
def.DamageTimeMask = 31;
|
||||||
terrainnum = (int)Terrains.Push (def);
|
terrainnum = (int)Terrains.Push (def);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -443,6 +445,7 @@ void ParseTerrain (FScanner &sc)
|
||||||
memset (&Terrains[terrainnum], 0, sizeof(FTerrainDef));
|
memset (&Terrains[terrainnum], 0, sizeof(FTerrainDef));
|
||||||
Terrains[terrainnum].Splash = -1;
|
Terrains[terrainnum].Splash = -1;
|
||||||
Terrains[terrainnum].Name = name;
|
Terrains[terrainnum].Name = name;
|
||||||
|
Terrains[terrainnum].DamageTimeMask = 31;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue