Skip to content

Commit

Permalink
Fixes a very bad gun jamming bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GrrrKitten committed Jun 15, 2024
1 parent 7655ff9 commit 506c855
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,8 @@ User can be passed as null, (a gun reloading itself for instance), so we need to

if(!current_mag || QDELETED(current_mag) || (current_mag.loc != src && !loc_override))
cock(user)
current_mag = null
update_icon()
return

if(drop_override || !user) //If we want to drop it on the ground or there's no user.
Expand Down

0 comments on commit 506c855

Please sign in to comment.