Fixed cannon rotation

Charles Spurrill 2011-09-13 00:42:52 -07:00
parent 9b5f995334
commit 62fbd3636d
1 changed files with 4 additions and 2 deletions

View File

@ -290,7 +290,8 @@ func Timer()
{
if(!GetEffect("IntTurning",this))
{
turn_anim = PlayAnimation("TurnRight", 5, Anim_Linear(0, 0, GetAnimationLength("TurnRight"), 36, ANIM_Remove), Anim_Const(1000));
StopAnimation(turn_anim);
turn_anim = PlayAnimation("TurnRight", 5, Anim_Linear(0, 0, GetAnimationLength("TurnRight"), 36, ANIM_Hold), Anim_Const(1000));
AddEffect("IntTurning",this,1,1,this);
}
else
@ -305,7 +306,8 @@ func Timer()
{
if(!GetEffect("IntTurning",this))
{
turn_anim = PlayAnimation("TurnLeft", 5, Anim_Linear(0, 0, GetAnimationLength("TurnLeft"), 36, ANIM_Remove), Anim_Const(1000));
StopAnimation(turn_anim);
turn_anim = PlayAnimation("TurnLeft", 5, Anim_Linear(0, 0, GetAnimationLength("TurnLeft"), 36, ANIM_Hold), Anim_Const(1000));
AddEffect("IntTurning",this,1,1,this);
}
else