mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- fixed bad index in pushmove.
This commit is contained in:
parent
6b3e57fd2c
commit
043e005363
1 changed files with 1 additions and 1 deletions
|
@ -1220,7 +1220,7 @@ int pushmove(DVector3& pos, sectortype** pSect, double walldist, double ceildist
|
|||
// this must go both forward and backward so we cannot use iterators. Pity
|
||||
for (unsigned i = 0; i < sec->walls.Size(); i++)
|
||||
{
|
||||
auto wal = direction > 0 ? &sec->walls[i] : &sec->walls[sec->walls.Size() - i];
|
||||
auto wal = direction > 0 ? &sec->walls[i] : &sec->walls[sec->walls.Size() - 1 - i];
|
||||
|
||||
if (IsCloseToWall(pos.XY(), wal, walldist - 0.25) == EClose::InFront)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue