Fixed Catapult using only the first/second inventory slot instead of the selected ones.

rope
Bernhard Bonigl 2012-03-12 17:04:57 +01:00
parent d7af22ba81
commit e8cd3c2871
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ protected func DoFire(object clonk, int power, int hand)
var projectile = nil;
if(Contents(0)) projectile = Contents(0); //Is clonk sitting in the catapult? Then (s)he shall be the projectile!
else
if(clonk->GetItem(hand)) projectile = clonk->GetItem(hand); //otherwise, fire what is in the clonk's hand
if(clonk->GetHandItem(hand)) projectile = clonk->GetHandItem(hand); //otherwise, fire what is in the clonk's hand
if(projectile)
{
//finding the spot of the catapult's arm depending on rotation