Skip to content

Commit

Permalink
Don't re-throw windrider if it didn't make it back.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksylvie365 committed Feb 4, 2024
1 parent 0d1ed3d commit a03aeb6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dothrow.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,14 @@ int shotlimit;
remove_worn_item(otmp, FALSE);
oldslot = obj->nobj;
}

// If was_thrown flag is set, the item is not in inventory
// and thus can't be thrown again. This largely matters
// for multishot, returnable projectiles like Windrider.
if (otmp->was_thrown) {
break;
}

freeinv(otmp);
throwit(otmp, wep_mask, twoweap, oldslot);
}
Expand Down

0 comments on commit a03aeb6

Please sign in to comment.