lizrad / recursio

0 stars 1 forks source link

Add confirmations to local wall #208

Closed AmonGruenwald closed 2 years ago

AmonGruenwald commented 2 years ago

Sometimes locally placed walls did not get to server, resulting in an disparate state between client and server. (This mainly happened when the player places a wall a split second before dying, which most likely meant he was already dead on the server so the locally place walled did not happen server side.) This fixes this by having local walls wait for a server confirmation. If they do not get the confirmation in time they despawn and give the player back their ammunition.