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]
/
moving.c
diff --git
a/moving.c
b/moving.c
index 4f2af10ad9dd8cba777d127e3c1ce495b4310464..887977afc6fbca9be2088b9acec2922bceb52ff1 100644
(file)
--- a/
moving.c
+++ b/
moving.c
@@
-1,6
+1,5
@@
-#include "conio.h"
-#include "sstlinux.h"
#include <unistd.h>
#include <unistd.h>
+#include "sstlinux.h"
#include "sst.h"
static void getcd(int, int);
#include "sst.h"
static void getcd(int, int);
@@
-107,7
+106,7
@@
void imove(void) {
quady = (iy+9)/10;
sectx = ix - 10*(quadx-1);
secty = iy - 10*(quady-1);
quady = (iy+9)/10;
sectx = ix - 10*(quadx-1);
secty = iy - 10*(quady-1);
- prout
n
("\n\rEntering %s.",
+ prout("\n\rEntering %s.",
cramlc(quadrant, quadx, quady));
game.quad[sectx][secty] = ship;
newqad(0);
cramlc(quadrant, quadx, quady));
game.quad[sectx][secty] = ship;
newqad(0);
@@
-209,9
+208,7
@@
label100:
}
newcnd();
iattak = 0;
}
newcnd();
iattak = 0;
-#ifdef SERGEEV
drawmaps(0);
drawmaps(0);
-#endif /* SERGEEV */
return;
}
return;
}
@@
-989,16
+986,16
@@
void help(void) {
textcolor(RED);
prout("fails.");
delay(500);
textcolor(RED);
prout("fails.");
delay(500);
- textcolor(
LIGHTGRAY
);
+ textcolor(
DEFAULT
);
}
if (l > 3) {
finish(FMATERIALIZE);
return;
}
game.quad[ix][iy]=ship;
}
if (l > 3) {
finish(FMATERIALIZE);
return;
}
game.quad[ix][iy]=ship;
- textcolor(
WHITE
);
+ textcolor(
GREEN
);
prout("succeeds.");
prout("succeeds.");
- textcolor(
LIGHTGRAY
);
+ textcolor(
DEFAULT
);
dock(0);
skip(1);
prout("Lt. Uhura- \"Captain, we made it!\"");
dock(0);
skip(1);
prout("Lt. Uhura- \"Captain, we made it!\"");