diff --git a/src/modes/standard_race.cpp b/src/modes/standard_race.cpp index 45004e081..3bdbc1d3f 100644 --- a/src/modes/standard_race.cpp +++ b/src/modes/standard_race.cpp @@ -21,7 +21,7 @@ #include "items/powerup_manager.hpp" #include "karts/abstract_kart.hpp" #include "karts/controller/controller.hpp" -#include "network/network_manager.hpp"œ +#include "network/network_manager.hpp" //----------------------------------------------------------------------------- StandardRace::StandardRace() : LinearWorld() diff --git a/src/network/client_network_manager.cpp b/src/network/client_network_manager.cpp index 22a22f186..5fe0b6a93 100644 --- a/src/network/client_network_manager.cpp +++ b/src/network/client_network_manager.cpp @@ -36,7 +36,6 @@ void* waitInput(void* data) { std::string str = ""; bool stop = false; - int n = 0; while(!stop) { diff --git a/src/network/protocols/controller_events_protocol.cpp b/src/network/protocols/controller_events_protocol.cpp index 341d007d3..60021eb11 100644 --- a/src/network/protocols/controller_events_protocol.cpp +++ b/src/network/protocols/controller_events_protocol.cpp @@ -78,14 +78,14 @@ bool ControllerEventsProtocol::notifyEventAsynchronous(Event* event) return true; } NetworkString ns = pure_message; - float event_timestamp = ns.getFloat(); + ns.removeFront(4); uint8_t client_index = -1; while (ns.size() >= 9) { uint8_t controller_index = ns.gui8(); client_index = controller_index; - uint8_t serialized_1 = ns.gui8(1), serialized_2 = ns.gui8(2), serialized_3 = ns.gui8(3); + uint8_t serialized_1 = ns.gui8(1); PlayerAction action = (PlayerAction)(ns.gui8(4)); int action_value = ns.gui32(5); diff --git a/src/network/protocols/kart_update_protocol.cpp b/src/network/protocols/kart_update_protocol.cpp index f9642fc90..1287818fd 100644 --- a/src/network/protocols/kart_update_protocol.cpp +++ b/src/network/protocols/kart_update_protocol.cpp @@ -38,7 +38,6 @@ bool KartUpdateProtocol::notifyEventAsynchronous(Event* event) Log::info("KartUpdateProtocol", "Message too short."); return true; } - float game_time = ns.getFloat(0); ns.removeFront(4); while(ns.size() >= 16) {