From 212a68054138dd872559d772c4d3e8f0db219993 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Mon, 29 Jul 2013 16:32:18 +0200 Subject: [PATCH] Close singing interface + abort any song when avatar_setBlockSinging(true) is called --- Aquaria/Avatar.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Aquaria/Avatar.cpp b/Aquaria/Avatar.cpp index 6bf4ad7..4a8f518 100644 --- a/Aquaria/Avatar.cpp +++ b/Aquaria/Avatar.cpp @@ -3320,6 +3320,11 @@ void Avatar::startCharge(int ability) void Avatar::setBlockSinging(bool v) { blockSinging = v; + if (v) + { + currentSong.notes.clear(); // abort singing without triggering a song, if queued + closeSingingInterface(); + } } bool Avatar::canSetBoneLock()