mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
Merge pull request #346 from edward-san/uninitialized_build_stairs
- Fixed an uninitialized variable in stairs code.
This commit is contained in:
commit
e857d875cc
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