mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-18 15:42:34 +00:00
- fixed: UDMF ceiling plane properties set the map's floor plane values.
This commit is contained in:
parent
31611c17d5
commit
2f11a59be0
1 changed files with 5 additions and 5 deletions
|
@ -1541,11 +1541,11 @@ public:
|
|||
double ulen = TVector3<double>(cp[0], cp[1], cp[2]).Length();
|
||||
|
||||
// normalize the vector, it must have a length of 1
|
||||
sec->floorplane.a = FLOAT2FIXED(cp[0] / ulen);
|
||||
sec->floorplane.b = FLOAT2FIXED(cp[1] / ulen);
|
||||
sec->floorplane.c = FLOAT2FIXED(cp[2] / ulen);
|
||||
sec->floorplane.d = FLOAT2FIXED(cp[3] / ulen);
|
||||
sec->floorplane.ic = FLOAT2FIXED(ulen / cp[2]);
|
||||
sec->ceilingplane.a = FLOAT2FIXED(cp[0] / ulen);
|
||||
sec->ceilingplane.b = FLOAT2FIXED(cp[1] / ulen);
|
||||
sec->ceilingplane.c = FLOAT2FIXED(cp[2] / ulen);
|
||||
sec->ceilingplane.d = FLOAT2FIXED(cp[3] / ulen);
|
||||
sec->ceilingplane.ic = FLOAT2FIXED(ulen / cp[2]);
|
||||
}
|
||||
|
||||
if (lightcolor == -1 && fadecolor == -1 && desaturation == -1)
|
||||
|
|
Loading…
Reference in a new issue