From: Ant Zucaro Date: Tue, 23 Jun 2015 12:56:37 +0000 (+0000) Subject: Merge branch 'BuddyFriendGuy/fixVolumeReset' into 'master' X-Git-Tag: xonotic-v0.8.1~12 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=97c6fdd825aae064575e394db308d8ceed22fefb Merge branch 'BuddyFriendGuy/fixVolumeReset' into 'master' fix volume value preservation bug in NexuizDemoRecorder Symptom: In the original code, the user's original volume value is not preserved (the default behavior is to mute the volume during fast forward) so the program fails to set the correct volume value back -- in fact it sets it to an illegal variable name. Code problem: This bug happens in the case of user choosing to record the demo early on, i.e. the loop enters the second stage right away, so injectAtStart was never executed. Besides, srvLoop and firstLoop seem to do the same thing. Fix: Make sure injectAtStart is executed exactly once. See merge request !12 --- 97c6fdd825aae064575e394db308d8ceed22fefb