iq.y = game.quadrant.y+(look.y+(QUADSIZE-1))/QUADSIZE - 1;
if (!VALID_QUADRANT(iq.x,iq.y) ||
game.state.galaxy[iq.x][iq.y].supernova ||
iq.y = game.quadrant.y+(look.y+(QUADSIZE-1))/QUADSIZE - 1;
if (!VALID_QUADRANT(iq.x,iq.y) ||
game.state.galaxy[iq.x][iq.y].supernova ||
- game.state.galaxy[iq.x][iq.y].klingons > 8)
- return false; /* no can do -- neg energy, supernovae, or >8 Klingons */
+ game.state.galaxy[iq.x][iq.y].klingons > MAXKLQUAD-1)
+ return false; /* no can do -- neg energy, supernovae, or >MAXKLQUAD-1 Klingons */
if (ienm == IHR) return false; /* Romulans cannot escape! */
if (!irun) {
/* avoid intruding on another commander's territory */
if (ienm == IHR) return false; /* Romulans cannot escape! */
if (!irun) {
/* avoid intruding on another commander's territory */
- proutn("=== MOTION = %1.2f, FORCES = %1.2f, ", motion, forces);
+ proutn("=== MOTION = %d, FORCES = %1.2f, ", motion, forces);
if (same(iq, game.quadrant) || !VALID_QUADRANT(iq.x, iq.y) ||
game.state.galaxy[iq.x][iq.y].supernova ||
if (same(iq, game.quadrant) || !VALID_QUADRANT(iq.x, iq.y) ||
game.state.galaxy[iq.x][iq.y].supernova ||
ibq = game.state.baseq[i];
if (same(ibq, game.quadrant) || same(ibq, game.battle) ||
game.state.galaxy[ibq.x][ibq.y].supernova ||
ibq = game.state.baseq[i];
if (same(ibq, game.quadrant) || same(ibq, game.battle) ||
game.state.galaxy[ibq.x][ibq.y].supernova ||
continue;
/* if there is a commander, an no other base is appropriate,
we will take the one with the commander */
continue;
/* if there is a commander, an no other base is appropriate,
we will take the one with the commander */