X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=setup.c;fp=setup.c;h=572d92284d088680fb9527e5fdad451a5aa53d12;hp=0ecac03b081801da608d2d75cb8cdc2d44b225bb;hb=1c22a200da79b10c888c63f412906d60a05b68e2;hpb=f972ad4a9a237ecae732391e0c37345fdfb9acea diff --git a/setup.c b/setup.c index 0ecac03..572d922 100644 --- a/setup.c +++ b/setup.c @@ -253,7 +253,7 @@ void setup(int needprompt) { for (j = i-1; j > 0; j--) { /* Improved placement algorithm to spread out bases */ double distq = square(ix-game.state.baseqx[j]) + square(iy-game.state.baseqy[j]); - if (distq < 6.0*(6-inbase) && Rand() < 0.75) { + if (distq < 6.0*(BASEMAX-inbase) && Rand() < 0.75) { contflag = TRUE; #ifdef DEBUG proutn("DEBUG: Abandoning base #%d at %d-%d\n", i, ix, iy); @@ -261,7 +261,7 @@ void setup(int needprompt) { break; } #ifdef DEBUG - else if (distq < 6.0 * (6-inbase)) { + else if (distq < 6.0 * (BASEMAX-inbase)) { proutn("DEBUG: saving base #%d, close to #%d\n", i, j); } #endif