]> git.localhorst.tv Git - blank.git/blobdiff - src/net/ClientConnection.hpp
fixed old packet acks
[blank.git] / src / net / ClientConnection.hpp
index fb6420acfed074959df27449741d3cb80cb5526c..f344efdcf883d6aa277e97ae2327ed8b34f4e089 100644 (file)
@@ -3,6 +3,8 @@
 
 #include "Connection.hpp"
 #include "ConnectionHandler.hpp"
+#include "../app/IntervalTimer.hpp"
+#include "../world/EntityState.hpp"
 
 #include <list>
 #include <SDL_net.h>
@@ -61,12 +63,17 @@ private:
        void SendDespawn(SpawnStatus &);
        void SendUpdate(SpawnStatus &);
 
+       void CheckPlayerFix();
+
 private:
        Server &server;
        Connection conn;
        Entity *player;
        std::list<SpawnStatus> spawns;
        unsigned int confirm_wait;
+       EntityState player_update_state;
+       std::uint16_t player_update_pack;
+       IntervalTimer player_update_timer;
 
 };