projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to handle message scrolling in curses.
[super-star-trek.git]
/
setup.c
diff --git
a/setup.c
b/setup.c
index d729c615576ba411ca1d8dd6a0cbd15df19780ab..6ea71b53166729ef5c50e9d40767a06909a24de5 100644
(file)
--- a/
setup.c
+++ b/
setup.c
@@
-264,13
+264,13
@@
void setup(int needprompt)
if (distq < 6.0*(BASEMAX+1-inbase) && Rand() < 0.75) {
contflag = TRUE;
#ifdef DEBUG
if (distq < 6.0*(BASEMAX+1-inbase) && Rand() < 0.75) {
contflag = TRUE;
#ifdef DEBUG
- prout
n("DEBUG: Abandoning base #%d at %d-%d\n
", i, ix, iy);
+ prout
("DEBUG: Abandoning base #%d at %d-%d
", i, ix, iy);
#endif
break;
}
#ifdef DEBUG
else if (distq < 6.0 * (BASEMAX+1-inbase)) {
#endif
break;
}
#ifdef DEBUG
else if (distq < 6.0 * (BASEMAX+1-inbase)) {
- prout
n("DEBUG: saving base #%d, close to #%d\n
", i, j);
+ prout
("DEBUG: saving base #%d, close to #%d
", i, j);
}
#endif
}
}
#endif
}
@@
-290,7
+290,9
@@
void setup(int needprompt)
int klump = (1.0 - r*r)*klumper;
if (klump > krem) klump = krem;
krem -= klump;
int klump = (1.0 - r*r)*klumper;
if (klump > krem) klump = krem;
krem -= klump;
- do iran(GALSIZE,&ix,&iy); while (game.state.galaxy[ix][iy].supernova);
+ do iran(GALSIZE,&ix,&iy);
+ while (game.state.galaxy[ix][iy].supernova ||
+ game.state.galaxy[ix][iy].klingons + klump > 9);
game.state.galaxy[ix][iy].klingons += klump;
} while (krem > 0);
// Position Klingon Commander Ships
game.state.galaxy[ix][iy].klingons += klump;
} while (krem > 0);
// Position Klingon Commander Ships