diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index 0f08b665..081dc74d 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -1127,13 +1127,11 @@ static void server_command_drop(shared_ptrs, shared_ptr l, shared_ptr c, const std::u16string&) { check_is_game(l, true); check_is_leader(l, c); - if (s->drops_enabled == true) - { + if (s->drops_enabled == true) { send_text_message(c, u"Drops disabled."); s->drops_enabled = false; } - else - { + else { send_text_message(c, u"Drops enabled."); s->drops_enabled = true; } diff --git a/src/ReceiveSubcommands.cc b/src/ReceiveSubcommands.cc index 7a510f2d..c2cde5d7 100644 --- a/src/ReceiveSubcommands.cc +++ b/src/ReceiveSubcommands.cc @@ -989,7 +989,7 @@ static bool drop_item( return true; } -static void on_enemy_drop_item_request(shared_ptrs, +static void on_enemy_drop_item_request(shared_ptr s, shared_ptr l, shared_ptr c, uint8_t command, uint8_t flag, const string& data) { if (!l->is_game()) {