mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
Fix use of potentially-unrelated global instead of local with MOVETYPE_WALK.
This commit is contained in:
parent
277f833ef7
commit
3c848f993e
1 changed files with 4 additions and 4 deletions
|
@ -935,12 +935,12 @@ qboolean SV_CheckWater (edict_t *ent)
|
|||
|
||||
tr = SV_Move(ent->v.origin, ent->v.mins, ent->v.maxs, point, 0, ent);
|
||||
if (tr.fraction < 1)
|
||||
sv_player->onladder = true;
|
||||
ent->onladder = true;
|
||||
else
|
||||
sv_player->onladder = false;
|
||||
ent->onladder = false;
|
||||
}
|
||||
else
|
||||
sv_player->onladder = false;
|
||||
ent->onladder = false;
|
||||
|
||||
point[0] = ent->v.origin[0];
|
||||
point[1] = ent->v.origin[1];
|
||||
|
@ -1098,7 +1098,7 @@ void SV_WalkMove (edict_t *ent)
|
|||
if (sv_nostep.value)
|
||||
return;
|
||||
|
||||
if ( (int)sv_player->v.flags & FL_WATERJUMP )
|
||||
if ( (int)ent->v.flags & FL_WATERJUMP )
|
||||
return;
|
||||
|
||||
VectorCopy (ent->v.origin, nosteporg);
|
||||
|
|
Loading…
Reference in a new issue