Browse Source

Unused variable removed.

master
MagicBot 2 years ago
parent
commit
c596aa5a01
  1. 5
      src/engine/objects/Mine.java

5
src/engine/objects/Mine.java

@ -60,7 +60,6 @@ public class Mine extends AbstractGameObject {
private Zone parentZone; private Zone parentZone;
private MineProduction mineType; private MineProduction mineType;
public boolean dirtyMine = false;
//flags 1: never been claimed (make active). //flags 1: never been claimed (make active).
@ -491,7 +490,7 @@ try{
if (mineBuilding.getRank() > 0) { if (mineBuilding.getRank() > 0) {
//never knocked down, let's just move on. //never knocked down, let's just move on.
//hasn't been claimed since server start. //hasn't been claimed since server start.
if (this.dirtyMine && this.lastClaimerID == 0 && (this.owningGuild == null || this.owningGuild.isErrant())) if (this.lastClaimerID == 0 && (this.owningGuild == null || this.owningGuild.isErrant()))
return false; return false;
this.setActive(false); this.setActive(false);
return true; return true;
@ -529,8 +528,6 @@ try{
updateGuildOwner(null); updateGuildOwner(null);
return false; return false;
} }
this.dirtyMine = false;
mineBuilding.rebuildMine(); mineBuilding.rebuildMine();
WorldGrid.updateObject(mineBuilding); WorldGrid.updateObject(mineBuilding);

Loading…
Cancel
Save