do collection check more often for faster moving objects

Otherwise falling objects would easily move through the collection zone of the lorry.
shapetextures
Maikel de Vries 2016-01-08 19:14:30 +01:00
parent f99db85c97
commit 4b3f9ce4b9
1 changed files with 2 additions and 4 deletions

View File

@ -96,10 +96,8 @@ void C4GameObjects::CrossCheck() // Every Tick1 by ExecObjects
focf = tocf = OCF_None;
// High level: Collection, Hit
if (!::Game.iTick3)
{
focf |= OCF_Collection; tocf |= OCF_Carryable;
}
focf |= OCF_Alive; tocf |= OCF_HitSpeed2;
tocf |= OCF_Carryable;
focf |= OCF_Collection; focf |= OCF_Alive; tocf |= OCF_HitSpeed2;
for (C4Object* obj1 : *this)
if (obj1->Status && !obj1->Contained && (obj1->OCF & focf))