Cleanups from https://github.com/diasurgical/devilutionX/pull/3980
This commit is contained in:
parent
3546b41be0
commit
000a04ad4d
3 changed files with 4 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue