Skip to content

Commit

Permalink
Updated WorldUpdate handler
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt committed Sep 2, 2013
1 parent 5ef406b commit 0ec3d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Client/NetClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ namespace spades {
PosRecord& rec = playerPosRecords[idx];
if(rec.valid) {
float timespan = GetWorld()->GetTime() - rec.time;
timespan = std::max(0.02f, timespan);
timespan = std::max(0.16f, timespan);
Vector3 vel = (pos - rec.pos) / timespan;
vel *= 1.f / 32.f;
p->SetVelocity(vel);
Expand Down

0 comments on commit 0ec3d74

Please sign in to comment.