#include <unistd.h>
-#include "conio.h"
#include "sst.h"
void doshield(int i) {
deltax /= bigger;
deltay /= bigger;
if (game.damage[DSRSENS]==0 || condit==IHDOCKED)
- setwnd(LEFTUPPER_WINDOW);
+ setwnd(srscan_window);
else
- setwnd(LOWER_WINDOW);
+ setwnd(message_window);
/* Loop to move a single torpedo */
for (l=1; l <= 15; l++) {
x += deltax;
wait = 1;
if (iquad==IHDOT) continue;
/* hit something */
- setwnd(LOWER_WINDOW);
+ setwnd(message_window);
+ skip(1); /* start new line after text track */
switch(iquad) {
case IHE: /* Hit our ship */
case IHF:
plnetx = plnety = 0;
game.quad[ix][iy] = IHDOT;
if (landed==1) {
- /* captain parishes on planet */
+ /* captain perishes on planet */
finish(FDPLANET);
}
return;
}
break;
}
- if(curwnd!=LOWER_WINDOW) {
- setwnd(LOWER_WINDOW);
+ if(curwnd!=message_window) {
+ setwnd(message_window);
}
if (shoved) {
game.quad[jx][jy]=iquad;