Fixed compiler warnings.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13582 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2013-08-28 03:39:44 +00:00
parent c940616909
commit de14757419
4 changed files with 3 additions and 5 deletions

View File

@ -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()

View File

@ -36,7 +36,6 @@ void* waitInput(void* data)
{
std::string str = "";
bool stop = false;
int n = 0;
while(!stop)
{

View File

@ -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);

View File

@ -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)
{