projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New debug-mode support.
[super-star-trek.git]
/
src
/
finish.c
diff --git
a/src/finish.c
b/src/finish.c
index e1914514bc05b1f65ca2d569b3e9cda9bbac9fdd..d23723b9813f4d491728a7f95815afbb7624592e 100644
(file)
--- a/
src/finish.c
+++ b/
src/finish.c
@@
-71,8
+71,8
@@
void kaboom(void)
void finish(FINTYPE ifin)
{
void finish(FINTYPE ifin)
{
-
int igotit = 0
;
- game.alldone =
1
;
+
bool igotit = false
;
+ game.alldone =
true
;
skip(3);
prout(_("It is stardate %.1f."), game.state.date);
skip(1);
skip(3);
prout(_("It is stardate %.1f."), game.state.date);
skip(1);
@@
-84,7
+84,7
@@
void finish(FINTYPE ifin)
prout(_("You have smashed the Klingon invasion fleet and saved"));
prout(_("the Federation."));
prout(_("You have smashed the Klingon invasion fleet and saved"));
prout(_("the Federation."));
- game.gamewon
=1
;
+ game.gamewon
= true
;
if (game.alive) {
double badpt;
badpt = 5.0*game.state.starkl + game.casual + 10.0*game.state.nplankl +
if (game.alive) {
double badpt;
badpt = 5.0*game.state.starkl + game.casual + 10.0*game.state.nplankl +
@@
-134,11
+134,7
@@
void finish(FINTYPE ifin)
break;
}
if (game.skill >= SKILL_EXPERT) {
break;
}
if (game.skill >= SKILL_EXPERT) {
- if (game.thawed
-#ifdef DEBUG
- && !game.idebug
-#endif
- )
+ if (game.thawed && !idebug)
prout(_("You cannot get a citation, so..."));
else {
proutn(_("Do you want your Commodore Emeritus Citation printed? "));
prout(_("You cannot get a citation, so..."));
else {
proutn(_("Do you want your Commodore Emeritus Citation printed? "));