Fixed the infinite range gun bug

The gun no longer has infinite range when using the aimed-shooting
function. Hurrah