mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-27 22:42:57 +00:00
- fixed secplane_t serializer. It passed incorrect defaults to the sub-serializers and calculated negiC wrong.
This commit is contained in:
parent
69291b9cf9
commit
b7c822d208
1 changed files with 4 additions and 4 deletions
|
@ -201,13 +201,13 @@ FSerializer &Serialize(FSerializer &arc, const char *key, secplane_t &p, secplan
|
||||||
|
|
||||||
if (arc.BeginObject(key))
|
if (arc.BeginObject(key))
|
||||||
{
|
{
|
||||||
arc("normal", p.normal, def->normal)
|
Serialize(arc, "normal", p.normal, def ? &def->normal : nullptr);
|
||||||
("d", p.D, def->D)
|
Serialize(arc, "d", p.D, def ? &def->D : nullptr);
|
||||||
.EndObject();
|
arc.EndObject();
|
||||||
|
|
||||||
if (arc.isReading() && p.normal.Z != 0)
|
if (arc.isReading() && p.normal.Z != 0)
|
||||||
{
|
{
|
||||||
p.negiC = 1 / p.normal.Z;
|
p.negiC = -1 / p.normal.Z;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return arc;
|
return arc;
|
||||||
|
|
Loading…
Reference in a new issue