mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fixed: A_CheckBlock performed item pickup checks which could be done in completely inappropriate spots if this function was used from weapon overlays, for example.
This commit is contained in:
parent
6dd570c538
commit
1767dd6a42
1 changed files with 5 additions and 1 deletions
|
@ -2763,7 +2763,11 @@ bool P_CheckMove(AActor *thing, const DVector2 &pos, int flags)
|
|||
FCheckPosition tm;
|
||||
double newz = thing->Z();
|
||||
|
||||
if (!P_CheckPosition(thing, pos, tm))
|
||||
auto f1 = thing->flags & MF_PICKUP;
|
||||
thing->flags &= MF_PICKUP;
|
||||
auto res = P_CheckPosition(thing, pos, tm);
|
||||
thing->flags |= f1;
|
||||
if (!res)
|
||||
{
|
||||
// Ignore PCM_DROPOFF. Not necessary here: a little later it is.
|
||||
if (!flags || (!(flags & PCM_NOACTORS) && !(flags & PCM_NOLINES)))
|
||||
|
|
Loading…
Reference in a new issue