condit == IHDOCKED) {\r
proutn("***");\r
cramen(ienm);\r
- proutn(" escapes to");\r
- cramlc(1, iqx, iqy);\r
- prout(" (and regains strength).");\r
+ proutn(" escapes to %s (and regains strength).",\r
+ cramlc(quadrant, iqx, iqy));\r
}\r
/* handle local matters related to escape */\r
game.kx[loccom] = game.kx[nenhere];\r
}\r
#ifdef DEBUG\r
if (idebug) {\r
- proutn("MOTION = ");\r
- cramf(motion, 1, 2);\r
- proutn(" FORCES = ");\r
- cramf(forces, 1, 2);\r
- skip(1);\r
+ proutn("MOTION = %1.2f", motion);\r
+ proutn(" FORCES = %1,2f", forces);\r
}\r
#endif\r
/* don't move if no motion */\r
nexty = looky;\r
#ifdef DEBUG\r
if (idebug) {\r
- cramlc(0, nextx, nexty);\r
- skip(1);\r
+ prout(cramlc(neither, nextx, nexty));\r
}\r
#endif\r
}\r
proutn("***");\r
cramen(ienm);\r
if (game.kdist[loccom] < dist1) proutn(" advances to");\r
- else proutn(" retreats to");\r
- cramlc(2, nextx, nexty);\r
- skip(1);\r
+ else proutn(" retreats to ");\r
+ prout(cramlc(sector, nextx, nexty));\r
}\r
}\r
}\r
if (*ipage==0) pause(1);\r
*ipage = 1;\r
prout("Lt. Uhura- \"Captain, Starfleet Intelligence reports");\r
- proutn(" a planet in");\r
- cramlc(1, game.state.isx, game.state.isy);\r
+ proutn(" a planet in ");\r
+ proutn(cramlc(quadrant, game.state.isx, game.state.isy));\r
prout(" has been destroyed");\r
prout(" by the Super-commander.\"");\r
}\r
iseenit = 1;\r
if (*ipage == 0) pause(1);\r
*ipage=1;\r
- proutn("Lt. Uhura- \"Captain, the starbase in");\r
- cramlc(1, game.state.isx, game.state.isy);\r
+ proutn("Lt. Uhura- \"Captain, the starbase in ");\r
+ proutn(cramlc(quadrant, game.state.isx, game.state.isy));\r
skip(1);\r
prout(" reports that it is under attack from the Klingon Super-commander.");\r
- proutn(" It can survive until stardate ");\r
- cramf(game.future[FSCDBAS], 0, 1);\r
- prout(" .\"");\r
+ proutn(" It can survive until stardate %d.\"",\r
+ (int)game.future[FSCDBAS]);\r
if (resting==0) return;\r
prout("Mr. Spock- \"Captain, shall we cancel the rest period?\"");\r
if (ja()==0) return;\r
if (*ipage==0) pause(1);\r
*ipage = 1;\r
prout("Lt. Uhura- \"Captain, Starfleet Intelligence reports");\r
- proutn(" the Super-commander is in");\r
- cramlc(1, game.state.isx, game.state. isy);\r
+ proutn(" the Super-commander is in ");\r
+ proutn(cramlc(quadrant, game.state.isx, game.state. isy));\r
prout(".\"");\r
return;\r
}\r