forked from StrafesNET/strafe-client
warn about time travel
This commit is contained in:
parent
971e83e392
commit
500db0a5b9
@ -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