Here's how the bug manifests during the game:
- During normal gameplay, a sound plays due to whatever reason (picking up an item, teleporting etc.)
- As soon as the sound has finished playing, I do a quick save.
- Immediately after saving, the sound plays again.
Due to the nature of this bug, it is only possible to reliably reproduce it with an automation script. I tried reproducing it using an ACS script triggering an autosave after a delay, but my attempt was not successful. Therefore, I wrote an AutoIt script that I've attached to this report along with the test map. This script can be used to reproduce the issue more or less reliably. Note that it assumes that the "use" action is bound to the space key and F6 opens the save menu (this is the default setup). Here's how to use it:
- Run the script first (it won't do anything until the Home key is pressed).
- Launch GZDoom with the test map loaded.
- Save the game once so that F6 brings up the quick save dialog.
- Press the Home key. The script will simulate a spacebar press. Assuming that the player character has not been moved, this will trigger a teleportation sequence and the teleport sound will play. Then, after a certain amount of time, the script will trigger a quick save. With a certain chance - about 50% of the time, according to my own experience - the teleport sound will play again as soon as the game has been saved.
- Press the Home key again to repeat the whole sequence (there is no need to move the player character anywhere within the map), or press the End key to terminate the script.