From 7a2c0d34569b9336bc19f84abf5ddfef97ed8061 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 24 Feb 2023 01:26:39 -0500 Subject: [PATCH] Work variable cleanup. --- src/engine/net/client/handlers/CityDataHandler.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/engine/net/client/handlers/CityDataHandler.java b/src/engine/net/client/handlers/CityDataHandler.java index cad913b3..17071b8d 100644 --- a/src/engine/net/client/handlers/CityDataHandler.java +++ b/src/engine/net/client/handlers/CityDataHandler.java @@ -28,8 +28,7 @@ public class CityDataHandler extends AbstractClientMsgHandler { @Override protected boolean _handleNetMsg(ClientNetMsg baseMsg, ClientConnection origin) throws MsgSendException { - boolean updateMine = false; - boolean updateCity = false; + boolean updateCities = false; Session playerSession; PlayerCharacter playerCharacter; Dispatch dispatch; @@ -52,12 +51,12 @@ public class CityDataHandler extends AbstractClientMsgHandler { if (playerCharacter.getTimeStamp("cityUpdate") <= City.lastCityUpdate) { playerCharacter.setTimeStamp("cityUpdate", System.currentTimeMillis()); - updateCity = true; + updateCities = true; } cityDataMsg cityDataMsg = new cityDataMsg(SessionManager.getSession(playerCharacter), false); cityDataMsg.updateMines(true); - cityDataMsg.updateCities(updateCity); + cityDataMsg.updateCities(updateCities); dispatch = Dispatch.borrow(playerCharacter, cityDataMsg); DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);