Skip to content

Commit

Permalink
Fixed GameEventProtocol (e.g. collecting items).
Browse files Browse the repository at this point in the history
  • Loading branch information
hiker committed Feb 2, 2016
1 parent f589700 commit 878760e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/network/protocols/game_events_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ void GameEventsProtocol::collectedItem(Item* item, AbstractKart* kart)
ns.ai8(0x01).ai32(item->getItemId()).ai8(powerup)
.ai8(player_profile->getGlobalPlayerId());
ProtocolManager::getInstance()->sendMessage(this, peers[i], ns,
/*reliable*/true);
/*reliable*/true,
/*synchronous*/true);
Log::info("GameEventsProtocol",
"Notified a peer that a kart collected item %d.",
(int)(kart->getPowerup()->getType()));
Expand Down

0 comments on commit 878760e

Please sign in to comment.