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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user