mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-26 02:31:13 +00:00
- fixed: The bunch drawer's gotwall array was cleared before resizing.
This means that on the first frame of a new map it'd operate on partially uninitialized data.
This commit is contained in:
parent
227ac0fca6
commit
d5daa8ee84
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,6 @@ void BunchDrawer::Init(HWDrawInfo *_di, Clipper* c, vec2_t& view, binangle a1, b
|
|||
}
|
||||
memset(sectionstartang.Data(), -1, sectionstartang.Size() * sizeof(sectionstartang[0]));
|
||||
memset(sectionendang.Data(), -1, sectionendang.Size() * sizeof(sectionendang[0]));
|
||||
gotwall.Resize(wall.Size());
|
||||
//blockwall.Resize(wall.Size());
|
||||
}
|
||||
|
||||
|
@ -97,6 +96,7 @@ void BunchDrawer::StartScene()
|
|||
gotsector.Zero();
|
||||
gotsection2.Resize(numsections);
|
||||
gotsection2.Zero();
|
||||
gotwall.Resize(wall.Size());
|
||||
gotwall.Zero();
|
||||
sectionstartang.Resize(numsections);
|
||||
sectionendang.Resize(numsections);
|
||||
|
|
Loading…
Reference in a new issue