mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-28 15:45:41 +03:00
PM_CategorizePosition: Do not stick to the ground of an OBSERVER or NOCLIP mode
This commit is contained in:
parent
e636cbc8f5
commit
c0f47949ec
@ -1436,6 +1436,13 @@ void PM_CategorizePosition()
|
|||||||
// water on each call, and the converse case will correct itself if called twice.
|
// water on each call, and the converse case will correct itself if called twice.
|
||||||
PM_CheckWater();
|
PM_CheckWater();
|
||||||
|
|
||||||
|
// Do not stick to the ground of an OBSERVER or NOCLIP mode
|
||||||
|
if (pmove->movetype == MOVETYPE_NOCLIP || pmove->movetype == MOVETYPE_NONE)
|
||||||
|
{
|
||||||
|
pmove->onground = -1;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
point[0] = pmove->origin[0];
|
point[0] = pmove->origin[0];
|
||||||
point[1] = pmove->origin[1];
|
point[1] = pmove->origin[1];
|
||||||
point[2] = pmove->origin[2] - 2;
|
point[2] = pmove->origin[2] - 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user