mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Prediction.CorrectHistory: reuse 'key'. same but cleaner.
This commit is contained in:
parent
0fd342e6a9
commit
8473eff1ff
@ -183,7 +183,7 @@ public static T CorrectHistory<T>(
|
||||
//
|
||||
// not saving it would also result in objects flying towards
|
||||
// infinity when using sendInterval = 0.
|
||||
stateHistory[entry.timestamp] = entry;
|
||||
stateHistory[key] = entry;
|
||||
|
||||
// debug draw the corrected state
|
||||
// Debug.DrawLine(last.position, entry.position, Color.cyan, lineTime);
|
||||
|
Loading…
Reference in New Issue
Block a user