mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-03 06:20:57 +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);
|
tr = SV_Move(ent->v.origin, ent->v.mins, ent->v.maxs, point, 0, ent);
|
||||||
if (tr.fraction < 1)
|
if (tr.fraction < 1)
|
||||||
sv_player->onladder = true;
|
ent->onladder = true;
|
||||||
else
|
else
|
||||||
sv_player->onladder = false;
|
ent->onladder = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
sv_player->onladder = false;
|
ent->onladder = false;
|
||||||
|
|
||||||
point[0] = ent->v.origin[0];
|
point[0] = ent->v.origin[0];
|
||||||
point[1] = ent->v.origin[1];
|
point[1] = ent->v.origin[1];
|
||||||
|
@ -1098,7 +1098,7 @@ void SV_WalkMove (edict_t *ent)
|
||||||
if (sv_nostep.value)
|
if (sv_nostep.value)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ( (int)sv_player->v.flags & FL_WATERJUMP )
|
if ( (int)ent->v.flags & FL_WATERJUMP )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
VectorCopy (ent->v.origin, nosteporg);
|
VectorCopy (ent->v.origin, nosteporg);
|
||||||
|
|
Loading…
Reference in a new issue