item spawn: instantly pick carry heavy items

master
Maikel de Vries 2018-02-25 21:32:18 +01:00
parent 701adc2eae
commit f199169c8f
1 changed files with 5 additions and 1 deletions

View File

@ -109,7 +109,11 @@ private func FxSpawnTimer(object target, proplist effect, int time)
{
if (crew->ContentsCount() < crew.MaxContentsCount || (spawn_id->~IsCarryHeavy() && !crew->IsCarryingHeavy()))
{
spawn_list[plr] = crew->CreateContents(spawn_id);
// Special way to pick up carry heavy objects instantly without animation.
if (spawn_id->~IsCarryHeavy())
spawn_list[plr] = crew->CreateCarryHeavyContents(spawn_id);
else
spawn_list[plr] = crew->CreateContents(spawn_id);
UpdateVisibility(plr);
crew->~Get(spawn_list[plr]); // for sound
}