STORM-1980 Play sound for region restarting message

master
Jonathan Yap 2013-11-05 10:01:41 -05:00
parent ea1e1b0925
commit caaaa1e5e6
2 changed files with 3 additions and 0 deletions

View File

@ -674,6 +674,7 @@ Jonathan Yap
OPEN-161
STORM-1953
STORM-1957
STORM-1980
Kadah Coba
STORM-1060
STORM-1843

View File

@ -6085,6 +6085,7 @@ void process_alert_core(const std::string& message, BOOL modal)
LLStringUtil::convertToS32(text.substr(18), mins);
args["MINUTES"] = llformat("%d",mins);
LLNotificationsUtil::add("RegionRestartMinutes", args);
send_sound_trigger(LLUUID(gSavedSettings.getString("UISndAlert")), 1.0f);
}
else if (text.substr(0,17) == "RESTART_X_SECONDS")
{
@ -6092,6 +6093,7 @@ void process_alert_core(const std::string& message, BOOL modal)
LLStringUtil::convertToS32(text.substr(18), secs);
args["SECONDS"] = llformat("%d",secs);
LLNotificationsUtil::add("RegionRestartSeconds", args);
send_sound_trigger(LLUUID(gSavedSettings.getString("UISndAlert")), 1.0f);
}
else
{