forked from Mirrors/openclonk
do collection check more often for faster moving objects
Otherwise falling objects would easily move through the collection zone of the lorry.shapetextures
parent
f99db85c97
commit
4b3f9ce4b9
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue