mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 12:30:40 +00:00
- 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:
parent
32a447ea54
commit
870801b8ac
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue