From 9769961eaa3bab6b4f40a95b732c184a0680d637 Mon Sep 17 00:00:00 2001 From: Ayush Saini Date: Sun, 6 Nov 2022 02:40:43 +0530 Subject: [PATCH] added header to ping packet --- src/ballistica/logic/connection/connection.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ballistica/logic/connection/connection.cc b/src/ballistica/logic/connection/connection.cc index 0e51f5e8..2e34e0b0 100644 --- a/src/ballistica/logic/connection/connection.cc +++ b/src/ballistica/logic/connection/connection.cc @@ -390,10 +390,10 @@ void Connection::Update() { if (can_communicate() && real_time - last_ping_update_time_ > kPingUpdateInterval + 1000) { - // Send a reliable message if ping not updated in a while - // purpose of this message it just to calculate ping. + // Send a reliable message if ping not updated in a while. std::vector data(1); + data[0] = BA_PACKET_SIMPLE_PING; SendReliableMessage(data); }