forked from StrafesNET/strafe-client
time travel warning
This commit is contained in:
parent
85ba12ff92
commit
8a13640c55
@ -1655,6 +1655,9 @@ fn atomic_input_instruction(state:&mut PhysicsState,data:&PhysicsData,ins:TimedI
|
|||||||
|PhysicsInstruction::Internal(PhysicsInternalInstruction::ReachWalkTargetVelocity)=>(),
|
|PhysicsInstruction::Internal(PhysicsInternalInstruction::ReachWalkTargetVelocity)=>(),
|
||||||
_=>println!("{}|{:?}",ins.time,ins.instruction),
|
_=>println!("{}|{:?}",ins.time,ins.instruction),
|
||||||
}
|
}
|
||||||
|
if ins.time<state.time{
|
||||||
|
println!("@@@@ Time travel warning! {:?}",ins);
|
||||||
|
}
|
||||||
state.time=ins.time;
|
state.time=ins.time;
|
||||||
match ins.instruction{
|
match ins.instruction{
|
||||||
PhysicsInstruction::Internal(instruction)=>atomic_internal_instruction(state,data,TimedInstruction{time:ins.time,instruction}),
|
PhysicsInstruction::Internal(instruction)=>atomic_internal_instruction(state,data,TimedInstruction{time:ins.time,instruction}),
|
||||||
|
Loading…
Reference in New Issue
Block a user