projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct the prompt-setting.
[super-star-trek.git]
/
battle.c
diff --git
a/battle.c
b/battle.c
index 79043385397cd4cd284e7e6385a44a175f7d389c..0f760d9bb73b74e324abdb1a17c3db4fdad65017 100644
(file)
--- a/
battle.c
+++ b/
battle.c
@@
-1,5
+1,4
@@
#include <unistd.h>
#include <unistd.h>
-#include "conio.h"
#include "sst.h"
void doshield(int i) {
#include "sst.h"
void doshield(int i) {
@@
-187,9
+186,9
@@
void torpedo(double course, double r, int inx, int iny, double *hit, int wait, i
deltax /= bigger;
deltay /= bigger;
if (game.damage[DSRSENS]==0 || condit==IHDOCKED)
deltax /= bigger;
deltay /= bigger;
if (game.damage[DSRSENS]==0 || condit==IHDOCKED)
- setwnd(
LEFTUPPER_WINDOW
);
+ setwnd(
srscan_window
);
else
else
- setwnd(
LOWER_WINDOW
);
+ setwnd(
message_window
);
/* Loop to move a single torpedo */
for (l=1; l <= 15; l++) {
x += deltax;
/* Loop to move a single torpedo */
for (l=1; l <= 15; l++) {
x += deltax;
@@
-203,7
+202,7
@@
void torpedo(double course, double r, int inx, int iny, double *hit, int wait, i
wait = 1;
if (iquad==IHDOT) continue;
/* hit something */
wait = 1;
if (iquad==IHDOT) continue;
/* hit something */
- setwnd(
LOWER_WINDOW
);
+ setwnd(
message_window
);
switch(iquad) {
case IHE: /* Hit our ship */
case IHF:
switch(iquad) {
case IHE: /* Hit our ship */
case IHF:
@@
-398,8
+397,8
@@
void torpedo(double course, double r, int inx, int iny, double *hit, int wait, i
}
break;
}
}
break;
}
- if(curwnd!=
LOWER_WINDOW
) {
- setwnd(
LOWER_WINDOW
);
+ if(curwnd!=
message_window
) {
+ setwnd(
message_window
);
}
if (shoved) {
game.quad[jx][jy]=iquad;
}
if (shoved) {
game.quad[jx][jy]=iquad;