Skip to content

Commit

Permalink
fixed #278
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed Jul 21, 2016
1 parent 58bd09f commit 3b25d3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion BUILD_NUMBER
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1146
1149
7 changes: 4 additions & 3 deletions gamemodes/sss/core/item/torso.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ hook OnPlayerCloseContainer(playerid, containerid)
if(gut_TargetItem[playerid] != INVALID_ITEM_ID)
{
gut_TargetItem[playerid] = INVALID_ITEM_ID;
ClearAnimations(playerid);
CancelPlayerMovement(playerid);
}

return Y_HOOKS_CONTINUE_RETURN_0;
Expand All @@ -119,7 +119,8 @@ hook OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
if(IsValidItem(gut_TargetItem[playerid]))
{
StopHoldAction(playerid);
ClearAnimations(playerid);
CancelPlayerMovement(playerid);
gut_TargetItem[playerid] = INVALID_ITEM_ID;
}
}
}
Expand Down Expand Up @@ -148,7 +149,7 @@ hook OnHoldActionFinish(playerid)
SetItemArrayDataAtCell(itemid, 0, food_amount, 5 + random(4));

SetItemArrayDataAtCell(gut_TargetItem[playerid], 0, 0);
ClearAnimations(playerid);
CancelPlayerMovement(playerid);

gut_TargetItem[playerid] = INVALID_ITEM_ID;

Expand Down

0 comments on commit 3b25d3a

Please sign in to comment.