static int consumeTime(void) {\r
/* I think most of this avoidance was caused by overlay scheme.\r
Let's see what happens if all events can occur here */\r
static int consumeTime(void) {\r
/* I think most of this avoidance was caused by overlay scheme.\r
Let's see what happens if all events can occur here */\r
events(); /* Used to avoid if future[FSCMOVE] within time */\r
// future[FSNOVA] = asave;\r
/*fails if game over, quadrant super-novas or we've moved to new quadrant*/\r
events(); /* Used to avoid if future[FSCMOVE] within time */\r
// future[FSNOVA] = asave;\r
/*fails if game over, quadrant super-novas or we've moved to new quadrant*/\r
proutn(" Planet at");\r
cramlc(2, plnetx, plnety);\r
proutn(" is of class ");\r
proutn(" Planet at");\r
cramlc(2, plnetx, plnety);\r
proutn(" is of class ");\r
skip(1);\r
prout("Spock- \"May I suggest the shuttle craft, Sir?\" ");\r
if (ja() != 0) shuttle();\r
skip(1);\r
prout("Spock- \"May I suggest the shuttle craft, Sir?\" ");\r
if (ja() != 0) shuttle();\r
prout("Spock- \"Captain, we have no information on this planet");\r
prout(" and Starfleet Regulations clearly state that in this situation");\r
prout(" you may not go down.\"");\r
prout("Spock- \"Captain, we have no information on this planet");\r
prout(" and Starfleet Regulations clearly state that in this situation");\r
prout(" you may not go down.\"");\r
prout("Spock- \"Captain, I fail to see the logic in");\r
prout(" exploring a planet with no dilithium crystals.");\r
proutn(" Are you sure this is wise?\" ");\r
prout("Spock- \"Captain, I fail to see the logic in");\r
prout(" exploring a planet with no dilithium crystals.");\r
proutn(" Are you sure this is wise?\" ");\r
- if(damage[DSHUTTL] != 0.0) {\r
- if (damage[DSHUTTL] == -1.0) {\r
- if (inorbit && state.plnets[iplnet].known == 2)\r
+ if(game.damage[DSHUTTL] != 0.0) {\r
+ if (game.damage[DSHUTTL] == -1.0) {\r
+ if (inorbit && game.state.plnets[iplnet].known == shuttle_down)\r
prout("Ye Faerie Queene has no shuttle craft bay to dock it at.");\r
else\r
prout("Ye Faerie Queene had no shuttle craft.");\r
}\r
prout("Ye Faerie Queene has no shuttle craft bay to dock it at.");\r
else\r
prout("Ye Faerie Queene had no shuttle craft.");\r
}\r
prout("Spock- \"Captain, we have no information on this planet");\r
prout(" and Starfleet Regulations clearly state that in this situation");\r
prout(" you may not fly down.\"");\r
return;\r
}\r
Time = 3.0e-5*height;\r
prout("Spock- \"Captain, we have no information on this planet");\r
prout(" and Starfleet Regulations clearly state that in this situation");\r
prout(" you may not fly down.\"");\r
return;\r
}\r
Time = 3.0e-5*height;\r
prout("First Officer Spock- \"Captain, I compute that such");\r
prout(" a maneuver would require approximately ");\r
prout("First Officer Spock- \"Captain, I compute that such");\r
prout(" a maneuver would require approximately ");\r
prout("shuttle craft for the trip back to the Enterprise.");\r
skip(1);\r
prout("The short hop begins . . .");\r
prout("shuttle craft for the trip back to the Enterprise.");\r
skip(1);\r
prout("The short hop begins . . .");\r
- deadkl(kx[1],ky[1],frozen.quad[kx[1]][ky[1]],kx[1],ky[1]);\r
+ deadkl(game.kx[1],game.ky[1],game.quad[game.kx[1]][game.ky[1]],game.kx[1],game.ky[1]);\r
prout("Spock- \"Captain, I believe the `Experimental Death Ray'");\r
if (Rand() <= 0.05) {\r
prout(" is still operational.\"");\r
}\r
else {\r
prout("Spock- \"Captain, I believe the `Experimental Death Ray'");\r
if (Rand() <= 0.05) {\r
prout(" is still operational.\"");\r
}\r
else {\r
prout(" Captain, our quadrant is now infested with");\r
prouts(" - - - - - - *THINGS*.");\r
skip(1);\r
prout(" Captain, our quadrant is now infested with");\r
prouts(" - - - - - - *THINGS*.");\r
skip(1);\r