item spawn: prevent pickung up two carry heavy objects

master
Maikel de Vries 2018-02-26 12:25:00 +01:00
parent f199169c8f
commit a023b63fda
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ private func FxSpawnTimer(object target, proplist effect, int time)
var plr = crew->GetOwner();
if (!spawn_list[plr] && Visibility[plr+1] && spawn_id)
{
if (crew->ContentsCount() < crew.MaxContentsCount || (spawn_id->~IsCarryHeavy() && !crew->IsCarryingHeavy()))
if ((!spawn_id->~IsCarryHeavy() && crew->ContentsCount() < crew.MaxContentsCount) || (spawn_id->~IsCarryHeavy() && !crew->IsCarryingHeavy()))
{
// Special way to pick up carry heavy objects instantly without animation.
if (spawn_id->~IsCarryHeavy())