may fix things on hiker's windows :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13187 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
d08239064b
commit
09bccbe3e2
Binary file not shown.
@ -36,8 +36,9 @@ Event::Event(ENetEvent* event)
|
||||
case ENET_EVENT_TYPE_RECEIVE:
|
||||
type = EVENT_TYPE_MESSAGE;
|
||||
break;
|
||||
default:
|
||||
type = EVENT_TYPE_MESSAGE;
|
||||
case ENET_EVENT_TYPE_NONE:
|
||||
enet_packet_destroy(event->packet);
|
||||
return;
|
||||
break;
|
||||
}
|
||||
if (type == EVENT_TYPE_MESSAGE)
|
||||
|
@ -197,7 +197,7 @@ void ServerLobbyRoomProtocol::connectionRequested(Event* event)
|
||||
Log::warn("ServerLobbyRoomProtocol", "The server is sending a badly formated message. Size is %d and first byte %d", event->data.size(), event->data[0]);
|
||||
return;
|
||||
}
|
||||
int player_id = 0;
|
||||
uint32_t player_id = 0;
|
||||
player_id = event->data.getUInt32(1);
|
||||
// can we add the player ?
|
||||
if (m_setup->getPlayerCount() < 16) // accept player
|
||||
|
Loading…
x
Reference in New Issue
Block a user