Fewer and fewer errors...

This commit is contained in:
Olof Larsson
2011-03-22 17:20:21 +01:00
parent d7c1d0fce3
commit 4e964ba194
26 changed files with 247 additions and 1593 deletions

View File

@@ -55,7 +55,7 @@ public class Board {
}
public static void setFactionAt(Faction faction, FLocation flocation) {
setIdAt(faction.id, flocation);
setIdAt(faction.getId(), flocation);
}
public static void removeAt(FLocation flocation) {
@@ -112,7 +112,7 @@ public class Board {
}
public static int getFactionCoordCount(Faction faction) {
return getFactionCoordCount(faction.id);
return getFactionCoordCount(faction.getId());
}
//----------------------------------------------//
@@ -144,7 +144,7 @@ public class Board {
} else {
FLocation flocationHere = topLeft.getRelative(dx, dz);
Faction factionHere = getFactionAt(flocationHere);
if (factionHere.id == 0) {
if (factionHere.getId() == 0) {
row += ChatColor.GRAY+"-";
} else {
row += factionHere.getRelation(faction).getColor()+"+";