Skip to content

Commit

Permalink
Fixed|Heretic|Hexen: "Fly Up" should do nothing if Wings isn't owned
Browse files Browse the repository at this point in the history
IssueID #2039
  • Loading branch information
skyjake committed May 8, 2015
1 parent 4ac02e4 commit 7dcc7e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doomsday/plugins/common/src/p_user.c
Expand Up @@ -1190,8 +1190,11 @@ void P_PlayerThinkItems(player_t *player)
#if __JHERETIC__ || __JHEXEN__
if(player->brain.upMove > 0 && !player->powers[PT_FLIGHT])
{
// Start flying automatically.
P_InventoryUse(pnum, IIT_FLY, false);
// Start flying automatically, if Wings are available.
if(P_InventoryCount(pnum, IIT_FLY))
{
P_InventoryUse(pnum, IIT_FLY, false);
}
}
#endif
}
Expand Down

0 comments on commit 7dcc7e2

Please sign in to comment.