munawarb / Treasure-Hunt

A top-down shooter audio game for the blind and visually impaired
GNU General Public License v3.0
8 stars 5 forks source link

Reference problem with voiceNumber function that causes the game state to freeze #13

Closed munawarb closed 5 years ago

munawarb commented 5 years ago

Because of the pass-by-reference parameter in the VoiceNumber function, if the game's state is updated while a number is being spoken out, the state doesn't reflect. This means that if you were to fire your weapon during an ammunition readout, the ammo count wouldn't decrease.