Fix ProcessSyncPacket

This commit is contained in:
Jens Pitkänen 2020-08-08 01:26:28 +03:00
parent 3b2c3adf35
commit cb7ce9bb87

View File

@ -84,10 +84,11 @@ namespace NeonTea.Quakeball.Players {
bool ShouldApply = shouldApplyWithoutInspection; bool ShouldApply = shouldApplyWithoutInspection;
if (!shouldApplyWithoutInspection) { if (!shouldApplyWithoutInspection) {
// TODO: Gaze into the crystal ball to determine the nefariousness level of the packet and update ShouldApply accordingly. // TODO: Gaze into the crystal ball to determine the nefariousness level of the packet and update ShouldApply accordingly.
ShouldApply = true;
} }
if (ShouldApply) { if (ShouldApply) {
transform.position = syncPckt.Location; transform.position = syncPckt.Location;
GroundVelocity = syncPckt.Location; GroundVelocity = syncPckt.GroundVelocity;
} }
return ShouldApply; return ShouldApply;
} }