Added debug comment to let the server not connect any items
(--> client predictions wrong, useful for debugging).
This commit is contained in:
parent
ff6d5119b4
commit
5f8dc7b641
@ -333,6 +333,13 @@ void ItemManager::checkItemHit(AbstractKart* kart)
|
||||
i!=m_all_items.end(); i++)
|
||||
{
|
||||
if((!*i) || !(*i)->isAvailable()) continue;
|
||||
|
||||
// DEBUG: This line can be used so that the server does NOT collect
|
||||
// any items, to test that the (then) incorrect client-side prediction
|
||||
// is fixed correctly.
|
||||
//if ((*i)->hitKart(kart->getXYZ(), kart) &&
|
||||
// !NetworkConfig::get()->isServer())
|
||||
|
||||
// To allow inlining and avoid including kart.hpp in item.hpp,
|
||||
// we pass the kart and the position separately.
|
||||
if((*i)->hitKart(kart->getXYZ(), kart))
|
||||
|
Loading…
x
Reference in New Issue
Block a user