|
|
@ -1,10 +1,10 @@ |
|
|
|
package engine.net.client.handlers; |
|
|
|
package engine.net.client.handlers; |
|
|
|
|
|
|
|
|
|
|
|
import engine.mbEnums; |
|
|
|
|
|
|
|
import engine.mbEnums.BuildingGroup; |
|
|
|
|
|
|
|
import engine.InterestManagement.WorldGrid; |
|
|
|
import engine.InterestManagement.WorldGrid; |
|
|
|
import engine.exception.MsgSendException; |
|
|
|
import engine.exception.MsgSendException; |
|
|
|
import engine.gameManager.BuildingManager; |
|
|
|
import engine.gameManager.BuildingManager; |
|
|
|
|
|
|
|
import engine.mbEnums; |
|
|
|
|
|
|
|
import engine.mbEnums.BuildingGroup; |
|
|
|
import engine.net.client.ClientConnection; |
|
|
|
import engine.net.client.ClientConnection; |
|
|
|
import engine.net.client.msg.ClientNetMsg; |
|
|
|
import engine.net.client.msg.ClientNetMsg; |
|
|
|
import engine.net.client.msg.DestroyBuildingMsg; |
|
|
|
import engine.net.client.msg.DestroyBuildingMsg; |
|
|
@ -91,8 +91,9 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler { |
|
|
|
building.disableSpire(true); |
|
|
|
building.disableSpire(true); |
|
|
|
|
|
|
|
|
|
|
|
if (blueprint.getBuildingGroup() == BuildingGroup.WAREHOUSE) { |
|
|
|
if (blueprint.getBuildingGroup() == BuildingGroup.WAREHOUSE) { |
|
|
|
|
|
|
|
|
|
|
|
if (city != null) |
|
|
|
if (city != null) |
|
|
|
city.setWarehouseBuildingID(0); |
|
|
|
city.warehouse = null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
BuildingManager.setRank(building, -1); |
|
|
|
BuildingManager.setRank(building, -1); |
|
|
|