diff options
Diffstat (limited to 'src/notifymanager.cpp')
-rw-r--r-- | src/notifymanager.cpp | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/notifymanager.cpp b/src/notifymanager.cpp index c9c7adbb8..aed5dd9f8 100644 --- a/src/notifymanager.cpp +++ b/src/notifymanager.cpp @@ -1,9 +1,9 @@ /* - * The ManaPlus Client + * The ManaVerse Client * Copyright (C) 2013-2020 The ManaPlus Developers - * Copyright (C) 2020-2023 The ManaVerse Developers + * Copyright (C) 2020-2025 The ManaVerse Developers * - * This file is part of The ManaPlus Client. + * This file is part of The ManaVerse Client. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,6 +21,8 @@ #include "notifymanager.h" +#include "configuration.h" + #include "soundmanager.h" #include "being/localplayer.h" @@ -162,12 +164,21 @@ namespace NotifyManager { return; } + + soundManager.playSfx(SoundDB::getSound(message), 0, 0); + + if (message == NotifyTypes::MONEY_GET && + !config.getBoolValue("showpickupchat")) + { + return; + } + const NotificationInfo &info = notifications[message]; if (*info.text == 0) { - soundManager.playSfx(SoundDB::getSound(message), 0, 0); return; } + switch (info.flags) { case NotifyFlags::STRING: @@ -199,7 +210,6 @@ namespace NotifyManager default: break; } - soundManager.playSfx(SoundDB::getSound(message), 0, 0); } int getIndexBySound(const std::string &sound) |