mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 18:08:10 +00:00
Minor cleanup
This commit is contained in:
parent
b4db8dcab7
commit
d00c29ab6e
@ -11,13 +11,14 @@
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
#include "chat_command_handler.hpp"
|
||||
|
||||
#include "chat_events.hpp"
|
||||
#include "game_version.hpp"
|
||||
#include "gui/dialogs/preferences_dialog.hpp"
|
||||
#include "map_command_handler.hpp"
|
||||
#include "chat_command_handler.hpp"
|
||||
#include "chat_events.hpp"
|
||||
#include "preferences/game.hpp"
|
||||
#include "preferences/display.hpp"
|
||||
#include "game_config_manager.hpp"
|
||||
#include "preferences/game.hpp"
|
||||
|
||||
namespace events {
|
||||
|
||||
@ -31,7 +32,6 @@ void chat_command_handler::print(const std::string& title, const std::string& me
|
||||
chat_handler_.add_chat_message(std::time(nullptr), title, 0, message);
|
||||
}
|
||||
|
||||
|
||||
void chat_command_handler::do_emote()
|
||||
{
|
||||
chat_handler_.send_chat_message("/me " + get_data(), allies_only_);
|
||||
|
@ -35,7 +35,7 @@ advanced_manager::advanced_manager(const game_config_view& gc)
|
||||
try {
|
||||
prefs.emplace_back(pref);
|
||||
} catch(const std::invalid_argument& e) {
|
||||
std::cerr << e.what() << std::endl;
|
||||
ERR_ADV << e.what() << std::endl;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@ -77,4 +77,4 @@ const advanced_pref_list& get_advanced_preferences()
|
||||
return singleton->get_preferences();
|
||||
}
|
||||
|
||||
} // namespace preferences
|
||||
} // namespace preferences
|
||||
|
@ -67,4 +67,4 @@ using advanced_pref_list = std::vector<advanced_manager::option>;
|
||||
/** Gets a list of the available advanced preferences. */
|
||||
const advanced_pref_list& get_advanced_preferences();
|
||||
|
||||
} // namespace preferences
|
||||
} // namespace preferences
|
||||
|
Loading…
x
Reference in New Issue
Block a user