1000.0*sqrt(square(ix-inx)+square(iy-iny))*
fabs(sin(bullseye-angle));
*hit = fabs(*hit);
-#ifndef SERGEEV
- newcnd(); /* undock */
-#endif /* SERGEEV */
+ newcnd(); /* we're blown out of dock */
/* We may be displaced. */
if (landed==1 || condit==IHDOCKED) return; /* Cheat if on a planet */
ang = angle + 2.5*(Rand()-0.5);
int i,j;
-#ifdef SERGEEV
skip(1);
-#endif /* SERGEEV */
crmena(1, type, 2, ixx, iyy);
/* Decide what kind of enemy it is and update approriately */
if (type == IHR) {
-#ifdef SERGEEV
-#include <conio.h>
-#endif /* SERGEEV */
#include "sst.h"
#include <string.h>
#include <time.h>
prouts(" 8"); skip(1);
prouts(" 7"); skip(1);
prouts(" 6"); skip(1);
-#ifdef SERGEEV
skip(1);
-#endif /* SERGEEV */
prout("ENTER-CORRECT-PASSWORD-TO-CONTINUE-");
-#ifdef SERGEEV
skip(1);
-#endif /* SERGEEV */
prout("SELF-DESTRUCT-SEQUENCE-OTHERWISE-");
-#ifdef SERGEEV
skip(1);
-#endif /* SERGEEV */
prout("SELF-DESTRUCT-SEQUENCE-WILL-BE-ABORTED");
-#ifdef SERGEEV
skip(1);
-#endif /* SERGEEV */
scan();
chew();
if (strcmp(game.passwd, citem) != 0) {
while (fp == NULL) {
proutn("File or device name for your plaque: ");
-#ifdef SERGEEV
getline(winner, sizeof(winner));
-#else
- fgets(winner, 128, stdin);
- winner[strlen(winner)-1] = '\0';
-#endif /* SERGEEV */
fp = fopen(winner, "w");
if (fp==NULL) {
prout("Invalid name.");
#endif /* SERGEEV */
}
-#ifndef SERGEEV
void getline(char *line, int max) {
-#else /* SERGEEV */
-void cgetline(char *line, int max) {
-#endif /* SERGEEV */
if (curses) {
#ifndef SERGEEV
wgetnstr(stdscr, line, max);
void iostart(int);
void ioend(void);
#ifdef SERGEEV
-#define getline cgetline
void setwnd(short);
#endif /* SERGEEV */
void getline(char *, int);