- SW: explicitly initialize sector object turn angle values.

The integer code relied on the memset to -1, but with floats that sets it to -NaN.
This commit is contained in:
Christoph Oelckers 2022-11-09 18:35:03 +01:00
parent 32a447ea54
commit 870801b8ac

View file

@ -417,7 +417,9 @@ void SectorSetup(void)
SectorObject[ndx].pmid.X = MAXSO;
SectorObject[ndx].ang = SectorObject[ndx].ang_moving = SectorObject[ndx].ang_tgt =
SectorObject[ndx].ang_orig = SectorObject[ndx].last_ang = SectorObject[ndx].old_ang =
SectorObject[ndx].spin_speed = SectorObject[ndx].save_spin_speed = SectorObject[ndx].spin_ang = nullAngle;
SectorObject[ndx].spin_speed = SectorObject[ndx].save_spin_speed = SectorObject[ndx].spin_ang = SectorObject[ndx].morph_ang = nullAngle;
SectorObject[ndx].limit_ang_delta = SectorObject[ndx].limit_ang_center = DAngle360 - minAngle;
}