Fixed cmf_aimdirection doubling up the spawn Z

This commit is contained in:
Edward Richardson 2016-01-22 23:06:09 +13:00
parent 2dff9a743c
commit 2034f4e49f

View file

@ -953,7 +953,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CustomMissile)
break;
case 2:
self->SetXYZ(self->Vec3Offset(x, y, self->Z()));
self->SetXYZ(self->Vec3Offset(x, y, 0));
missile = P_SpawnMissileAngleZSpeed(self, self->Z() + self->GetBobOffset() + spawnheight, ti, self->angle, 0, GetDefaultByType(ti)->Speed, self, false);
self->SetXYZ(pos);