mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fixed: FPathTraverse::init kills the intercepts array so PortalRelocate needs to store the line before calling that function.
This commit is contained in:
parent
42521ffd6f
commit
0a1e22aa7a
1 changed files with 2 additions and 1 deletions
|
@ -1677,9 +1677,10 @@ int FPathTraverse::PortalRelocate(intercept_t *in, int flags, fixedvec3 *optpos)
|
||||||
P_TranslatePortalXY(in->d.line, optpos->x, optpos->y);
|
P_TranslatePortalXY(in->d.line, optpos->x, optpos->y);
|
||||||
P_TranslatePortalZ(in->d.line, optpos->z);
|
P_TranslatePortalZ(in->d.line, optpos->z);
|
||||||
}
|
}
|
||||||
|
line_t *saved = in->d.line; // this gets overwriitten by the init call.
|
||||||
intercepts.Resize(intercept_index);
|
intercepts.Resize(intercept_index);
|
||||||
init(hitx, hity, endx, endy, flags, in->frac);
|
init(hitx, hity, endx, endy, flags, in->frac);
|
||||||
return in->d.line->getPortal()->mType == PORTT_LINKED? 1:-1;
|
return saved->getPortal()->mType == PORTT_LINKED? 1:-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
Loading…
Reference in a new issue