- floatified the few remaining linedef and sector properties that still were fixed_t. The only fixed point things left in r_defs.h are the nodes and a fixed point setter function for vertex_t, which is still needed by the node builder.

This commit is contained in:
Christoph Oelckers 2016-04-24 12:15:09 +02:00
commit 0f99d7d73f
21 changed files with 101 additions and 110 deletions

View file

@ -785,7 +785,7 @@ public:
FString tagstring;
memset(ld, 0, sizeof(*ld));
ld->Alpha = OPAQUE;
ld->alpha = 1.;
ld->portalindex = UINT_MAX;
ld->sidedef[0] = ld->sidedef[1] = NULL;
if (level.flags2 & LEVEL2_CLIPMIDTEX) ld->flags |= ML_CLIP_MIDTEX;
@ -1087,13 +1087,13 @@ public:
{
ld->activation = (ld->activation & ~SPAC_Use) | SPAC_UseThrough;
}
if (strifetrans && ld->Alpha == OPAQUE)
if (strifetrans && ld->alpha == 1.)
{
ld->Alpha = TRANSLUC75;
ld->alpha = 0.75;
}
if (strifetrans2 && ld->Alpha == OPAQUE)
if (strifetrans2 && ld->alpha == OPAQUE)
{
ld->Alpha = TRANSLUC25;
ld->alpha = 0.25;
}
if (ld->sidedef[0] == NULL)
{
@ -1596,7 +1596,7 @@ public:
// Reset the planes to their defaults if not all of the plane equation's parameters were found.
if (fplaneflags != 15)
{
sec->floorplane.SetAtHeight(sec->GetPlaneTexZF(sector_t::floor), sector_t::floor);
sec->floorplane.SetAtHeight(sec->GetPlaneTexZ(sector_t::floor), sector_t::floor);
}
else
{
@ -1606,7 +1606,7 @@ public:
}
if (cplaneflags != 15)
{
sec->ceilingplane.SetAtHeight(sec->GetPlaneTexZF(sector_t::ceiling), sector_t::ceiling);
sec->ceilingplane.SetAtHeight(sec->GetPlaneTexZ(sector_t::ceiling), sector_t::ceiling);
}
else
{