ephphatha 4 years ago committed by Anders Jenbo
parent
commit
000a04ad4d
  1. 5
      Source/diablo.cpp
  2. 2
      Source/options.cpp
  3. 2
      Source/options.h

5
Source/diablo.cpp

@ -948,10 +948,9 @@ void DiabloInit()
for (size_t i = 0; i < QUICK_MESSAGE_OPTIONS; i++) {
auto &messages = sgOptions.Chat.szHotKeyMsgs[i];
if (messages.size() > 0) {
continue;
if (messages.empty()) {
messages.emplace_back(_(QuickMessages[i].message));
}
messages.emplace_back(_(QuickMessages[i].message));
}
#ifndef USE_SDL1

2
Source/options.cpp

@ -411,7 +411,7 @@ OptionEntryFlags OptionEntryBase::GetFlags() const
}
void OptionEntryBase::SetValueChangedCallback(std::function<void()> callback)
{
this->callback = callback;
this->callback = std::move(callback);
}
void OptionEntryBase::NotifyValueChanged()
{

2
Source/options.h

@ -12,7 +12,7 @@
namespace devilution {
enum class StartUpGameMode {
/** @brief If hellfire is present, asks the user what game he wants to start. */
/** @brief If hellfire is present, asks the user what game they want to start. */
Ask = 0,
Hellfire = 1,
Diablo = 2,

Loading…
Cancel
Save