Fixed item collection in networking.
This commit is contained in:
parent
df4ad4ab63
commit
796ff5b361
@ -536,8 +536,8 @@ void ItemManager::switchItems()
|
|||||||
*/
|
*/
|
||||||
void ItemManager::switchItemsInternal(std::vector<ItemState*> &all_items)
|
void ItemManager::switchItemsInternal(std::vector<ItemState*> &all_items)
|
||||||
{
|
{
|
||||||
for(AllItemTypes::iterator i = m_all_items.begin();
|
for(AllItemTypes::iterator i = all_items.begin();
|
||||||
i != m_all_items.end(); i++)
|
i != all_items.end(); i++)
|
||||||
{
|
{
|
||||||
if(!*i) continue;
|
if(!*i) continue;
|
||||||
|
|
||||||
@ -559,7 +559,7 @@ void ItemManager::switchItemsInternal(std::vector<ItemState*> &all_items)
|
|||||||
m_item_lowres_mesh[(int)new_type]);
|
m_item_lowres_mesh[(int)new_type]);
|
||||||
else
|
else
|
||||||
(*i)->switchBack();
|
(*i)->switchBack();
|
||||||
} // for m_all_items
|
} // for all_items
|
||||||
|
|
||||||
// if the items are already switched (m_switch_ticks >=0)
|
// if the items are already switched (m_switch_ticks >=0)
|
||||||
// then switch back, and set m_switch_ticks to -1 to indicate
|
// then switch back, and set m_switch_ticks to -1 to indicate
|
||||||
|
Loading…
Reference in New Issue
Block a user