X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fnet%2FClientConnection.hpp;h=f344efdcf883d6aa277e97ae2327ed8b34f4e089;hb=8e7e042296946ba2aed73b77ab02feb267eb17d4;hp=c37540907851f7cd8c1f9cc8cf4dfca3ff193941;hpb=68f47f2824989b21ff9a480a367a6d0a41804f41;p=blank.git diff --git a/src/net/ClientConnection.hpp b/src/net/ClientConnection.hpp index c375409..f344efd 100644 --- a/src/net/ClientConnection.hpp +++ b/src/net/ClientConnection.hpp @@ -4,6 +4,7 @@ #include "Connection.hpp" #include "ConnectionHandler.hpp" #include "../app/IntervalTimer.hpp" +#include "../world/EntityState.hpp" #include #include @@ -62,12 +63,15 @@ private: void SendDespawn(SpawnStatus &); void SendUpdate(SpawnStatus &); + void CheckPlayerFix(); + private: Server &server; Connection conn; Entity *player; std::list spawns; unsigned int confirm_wait; + EntityState player_update_state; std::uint16_t player_update_pack; IntervalTimer player_update_timer;