ashoulson / RailgunNet

A Client/Server Network State-Synchronization Layer for Games
Other
154 stars 21 forks source link

Error handling for delta decode with no valid basis #20

Closed ashoulson closed 8 years ago

ashoulson commented 8 years ago

Decode the state against the first state received as a dummy and then discard the result. This lets us read the rest of the snapshot without a problem.

Also need to add a status flag to the state for whether or not it was delta encoded (or it may be implicit from the tick offset)

ashoulson commented 8 years ago

Also check to make sure we aren't replacing an entry with an older entry in the state buffer