From 3ef2f76705eef39d0a6d77b084b64edd1ac8ab76 Mon Sep 17 00:00:00 2001 From: Reason <44870510+reason44@users.noreply.github.com> Date: Thu, 8 Jun 2023 18:07:25 -0400 Subject: [PATCH] Fixing code style Cleaning up this code. --- src/ChatCommands.cc | 6 ++---- src/ReceiveSubcommands.cc | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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()) {