Fix weapon cooldown bug (fixes #45)