projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More elimination of FORTAN-style if statements.
[super-star-trek.git]
/
src
/
reports.c
diff --git
a/src/reports.c
b/src/reports.c
index 93a525d8abc0bbb1d706b6bb7fc051955e2965eb..e7c433f213a2f5b2be7266b93f2ed9152d183d28 100644
(file)
--- a/
src/reports.c
+++ b/
src/reports.c
@@
-350,7
+350,7
@@
void status(int req)
RQ(10,
if (game.options & OPTION_WORLDS) {
int plnet = game.state.galaxy[game.quadrant.x][game.quadrant.y].planet;
RQ(10,
if (game.options & OPTION_WORLDS) {
int plnet = game.state.galaxy[game.quadrant.x][game.quadrant.y].planet;
- if (plnet != NOPLANET && game.state.plnets[plnet].inhabited != UNINHABITED)
+ if (plnet != NOPLANET && game.state.pl
a
nets[plnet].inhabited != UNINHABITED)
prstat(_("Major system"), "%s", systnames[plnet]);
else
prout(_("Sector is uninhabited"));
prstat(_("Major system"), "%s", systnames[plnet]);
else
prout(_("Sector is uninhabited"));
@@
-480,7
+480,8
@@
void eta(void)
proutn(_("Time or arrival date? "));
if (scan()==IHREAL) {
ttime = aaitem;
proutn(_("Time or arrival date? "));
if (scan()==IHREAL) {
ttime = aaitem;
- if (ttime > game.state.date) ttime -= game.state.date; // Actually a star date
+ if (ttime > game.state.date)
+ ttime -= game.state.date; // Actually a star date
if (ttime <= 1e-10 ||
(twarp=(floor(sqrt((10.0*game.dist)/ttime)*10.0)+1.0)/10.0) > 10) {
prout(_("We'll never make it, sir."));
if (ttime <= 1e-10 ||
(twarp=(floor(sqrt((10.0*game.dist)/ttime)*10.0)+1.0)/10.0) > 10) {
prout(_("We'll never make it, sir."));