]> git.localhorst.tv Git - blank.git/blobdiff - src/net/ClientConnection.hpp
fixed old packet acks
[blank.git] / src / net / ClientConnection.hpp
index c37540907851f7cd8c1f9cc8cf4dfca3ff193941..f344efdcf883d6aa277e97ae2327ed8b34f4e089 100644 (file)
@@ -4,6 +4,7 @@
 #include "Connection.hpp"
 #include "ConnectionHandler.hpp"
 #include "../app/IntervalTimer.hpp"
+#include "../world/EntityState.hpp"
 
 #include <list>
 #include <SDL_net.h>
@@ -62,12 +63,15 @@ 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;