Well, believe it or not, it's once again a bracket error, this time only a }-bracket instead of a )-bracket. But I also saw another bug, that's more or less related to the bracket problem: there's 1 else clause to little. Here's what the fixed part should look like:
[This message has been edited by Locutus (edited March 20, 2001).]
Code:
if (tmpUnit == UnitDB(UNIT_PIKEMEN)) { if (tmpCity.owner == 1 | | tmpCity.owner == 3 | | tmpCity.owner == 4) { // player 1, 3 or 4 if (tmpCity.location != athensLoc && tmpCity.location != piraeusLoc && tmpCity.location != corinthLoc && tmpCity.location != thebesLoc) { return 1; // except for big cities, all greeks can build this } else { return 0; } // big cities and non-Greeks can't build this } else { // new return 0; // new } // new } elseif (tmpUnit == UnitDB(UNIT_MACHINE_GUNNER)) {
Comment