projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up the rather nasty logoc of snova(), and fix a minor navigation bug.
[super-star-trek.git]
/
src
/
battle.c
diff --git
a/src/battle.c
b/src/battle.c
index 7e1d12454fa7945dc4330d797762b44415888668..08a8b16a97a17a76ea0ea9415e9e7258bc78a808 100644
(file)
--- a/
src/battle.c
+++ b/
src/battle.c
@@
-16,7
+16,7
@@
void doshield(int i)
action = NRG;
else {
chew();
action = NRG;
else {
chew();
- if (
!
damaged(DSHIELD)) {
+ if (damaged(DSHIELD)) {
prout(_("Shields damaged and down."));
return;
}
prout(_("Shields damaged and down."));
return;
}
@@
-350,7
+350,7
@@
void torpedo(double course, double r, int inx, int iny, double *hit, int i, int
return;
case IHSTAR: /* Hit a star */
if (Rand() > 0.10) {
return;
case IHSTAR: /* Hit a star */
if (Rand() > 0.10) {
- nova(w
.x, w.y
);
+ nova(w);
return;
}
crmena(true, IHSTAR, sector, w);
return;
}
crmena(true, IHSTAR, sector, w);