X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=reports.c;h=54c73d98ad2131478eafffe32c5fd26203f8c3b1;hb=89e52d61fcf689e15a8f831dea084a33ceaa8217;hp=cbbf1ffb6c81a13cb20ddf6618442ab57b85de0b;hpb=4db9f58f3d225517845712696e3c58a16e4fb19c;p=super-star-trek.git diff --git a/reports.c b/reports.c index cbbf1ff..54c73d9 100644 --- a/reports.c +++ b/reports.c @@ -2,7 +2,6 @@ #include #include #include -#include "conio.h" void attakreport(int l) { if (!l) { @@ -272,10 +271,12 @@ int srscan(int l) { case IHDOCKED: textcolor(LIGHTGRAY); break; case IHDEAD: textcolor(WHITE); } - if (game.quad[i][j]!=ship) highvideo(); + if (game.quad[i][j] != ship) + highvideo(); } - if (game.quad[i][j] & 128) highvideo(); - proutn("%c ",game.quad[i][j] & 127); + if (game.quad[i][j] & DAMAGED) + highvideo(); + proutn("%c ",game.quad[i][j] & ~DAMAGED); textcolor(LIGHTGRAY); } else