working powerup synchronization (not tested but should work ;p)

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13428 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hilnius
2013-08-06 23:46:15 +00:00
parent 7bf6b3cc25
commit 367892e055
2 changed files with 4 additions and 1 deletions

View File

@@ -311,7 +311,10 @@ void ItemManager::checkItemHit(AbstractKart* kart)
if (!NetworkWorld::getInstance()->isRunning())
collectedItem(*i, kart);
else if (NetworkManager::getInstance()->isServer())
{
collectedItem(*i, kart);
NetworkWorld::getInstance()->collectedItem(*i, kart);
}
} // if hit
} // for m_all_items
} // checkItemHit

View File

@@ -27,7 +27,7 @@ void NetworkWorld::update(float dt)
ProtocolManager::getInstance()->getProtocol(PROTOCOL_SYNCHRONIZATION));
if (protocol) // if this protocol exists, that's that we play online
{
Log::info("NetworkWorld", "Coutdown value is %f", protocol->getCountdown());
Log::debug("NetworkWorld", "Coutdown value is %f", protocol->getCountdown());
if (protocol->getCountdown() > 0.0)
{
return;