mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-18 17:01:20 +00:00
Restore tmthing after a call to P_CheckPosition in G_CheckSpot
This commit is contained in:
parent
d03d597963
commit
0450d2d914
1 changed files with 4 additions and 3 deletions
|
@ -2820,10 +2820,11 @@ static boolean G_CheckSpot(INT32 playernum, mapthing_t *mthing)
|
|||
x = mthing->x << FRACBITS;
|
||||
y = mthing->y << FRACBITS;
|
||||
|
||||
if (!P_CheckPosition(players[playernum].mo, x, y))
|
||||
return false;
|
||||
mobj_t *ptmthing = tmthing;
|
||||
boolean success = P_CheckPosition(players[playernum].mo, x, y);
|
||||
P_SetTarget(&tmthing, ptmthing);
|
||||
|
||||
return true;
|
||||
return success;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue