From a42e36e131c9db9edd54705fe950f5e8f7e29057 Mon Sep 17 00:00:00 2001 From: Caio Santoro dos Santos <61211407+csantbr@users.noreply.github.com> Date: Mon, 25 Sep 2023 17:16:23 -0300 Subject: [PATCH] Update protocolgameparse.cpp --- src/client/protocolgameparse.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/protocolgameparse.cpp b/src/client/protocolgameparse.cpp index d1cc91d208..eb69515743 100644 --- a/src/client/protocolgameparse.cpp +++ b/src/client/protocolgameparse.cpp @@ -2487,11 +2487,11 @@ void ProtocolGame::parseChangeMapAwareRange(const InputMessagePtr& msg) const uint8_t yrange = msg->getU8(); g_map.setAwareRange({ - .left = static_cast(xrange / 2 - (xrange + 1) % 2), - .top = static_cast(yrange / 2 - (yrange + 1) % 2), - .right = static_cast(xrange / 2), - .bottom = static_cast(yrange / 2) - }); + static_cast(xrange / 2 - (xrange + 1) % 2), + static_cast(yrange / 2 - (yrange + 1) % 2), + static_cast(xrange / 2), + static_cast(yrange / 2) + }); g_lua.callGlobalField("g_game", "onMapChangeAwareRange", xrange, yrange); }