Commit suggestion

Bad copy paste on my end

Co-authored-by: Jan <Laupetin@users.noreply.github.com>
This commit is contained in:
Edo 2021-12-26 17:22:42 +01:00 committed by GitHub
parent 8cf5208c29
commit ec3cbb4d7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,19 +36,7 @@ namespace Components
// like later versions of the game do // like later versions of the game do
if (!trace->startsolid || EleSettings >= Elevators::ENABLED) if (!trace->startsolid || EleSettings >= Elevators::ENABLED)
{ {
pml->groundTrace.fraction = trace->fraction; pml->groundTrace = *trace;
pml->groundTrace.normal[0] = trace->normal[0];
pml->groundTrace.normal[1] = trace->normal[1];
pml->groundTrace.normal[2] = trace->normal[2];
pml->groundTrace.surfaceFlags = trace->surfaceFlags;
pml->groundTrace.contents = trace->contents;
pml->groundTrace.hitType = trace->hitType;
pml->groundTrace.hitId = trace->hitId;
pml->groundTrace.partName = trace->partName;
pml->groundTrace.partGroup = trace->partGroup;
pml->groundTrace.walkable = trace->walkable;
const auto fraction = trace->fraction; const auto fraction = trace->fraction;
ps->origin[0] += fraction * (point[0] - ps->origin[0]); ps->origin[0] += fraction * (point[0] - ps->origin[0]);