Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
Fixed unintentional fall-through in SV_Physics_Step().
Browse files Browse the repository at this point in the history
  • Loading branch information
m-x-d committed Jul 31, 2019
1 parent dbf5e9c commit 9bb6364
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions game/g_phys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1706,8 +1706,8 @@ static void SV_Physics_Step(edict_t *ent)
case CONTENTS_CURRENT_90: ent->velocity[1] = v; break;
case CONTENTS_CURRENT_180: ent->velocity[0] = -v; break;
case CONTENTS_CURRENT_270: ent->velocity[1] = -v; break;
case CONTENTS_CURRENT_UP : ent->velocity[2] = max(v, ent->velocity[2]); //TODO: mxd. Is this fall-through intentional?
case CONTENTS_CURRENT_DOWN: ent->velocity[2] = min(-v, ent->velocity[2]);
case CONTENTS_CURRENT_UP : ent->velocity[2] = max(v, ent->velocity[2]); break;
case CONTENTS_CURRENT_DOWN: ent->velocity[2] = min(-v, ent->velocity[2]); break;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion qcommon/pmove.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ static void PM_CatagorizePosition()
}
else
{
trace_t trace = pm->trace (pml.origin, pm->mins, pm->maxs, point);
trace_t trace = pm->trace(pml.origin, pm->mins, pm->maxs, point);
pml.groundplane = trace.plane;
pml.groundsurface = trace.surface;
pml.groundcontents = trace.contents;
Expand Down

0 comments on commit 9bb6364

Please sign in to comment.