mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 05:31:00 +00:00
- Fixed an uninitialized variable in stairs code.
'floor->m_Hexencrush' was left uninitialized in all the floor movers after the first one.
This commit is contained in:
parent
add52d48cd
commit
1bd23150aa
1 changed files with 1 additions and 0 deletions
|
@ -727,6 +727,7 @@ bool EV_BuildStairs (int tag, DFloor::EStair type, line_t *line,
|
||||||
floor->m_Type = DFloor::buildStair; //jff 3/31/98 do not leave uninited
|
floor->m_Type = DFloor::buildStair; //jff 3/31/98 do not leave uninited
|
||||||
//jff 2/27/98 fix uninitialized crush field
|
//jff 2/27/98 fix uninitialized crush field
|
||||||
floor->m_Crush = (!usespecials && speed == 4*FRACUNIT) ? 10 : -1;
|
floor->m_Crush = (!usespecials && speed == 4*FRACUNIT) ? 10 : -1;
|
||||||
|
floor->m_Hexencrush = false;
|
||||||
floor->m_ResetCount = reset; // [RH] Tics until reset (0 if never)
|
floor->m_ResetCount = reset; // [RH] Tics until reset (0 if never)
|
||||||
floor->m_OrgDist = sec->floorplane.d; // [RH] Height to reset to
|
floor->m_OrgDist = sec->floorplane.d; // [RH] Height to reset to
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue