if (nsteps < 1) nsteps = 1; /* This shouldn't be necessary */\r
#ifdef DEBUG\r
if (idebug) {\r
- proutn("NSTEPS = ");\r
- crami(nsteps, 1);\r
- skip(1);\r
+ prout("NSTEPS = %d", nsteps);\r
}\r
#endif\r
/* Compute preferred values of delta X and Y */\r
for (ll = 1; ll <= nsteps; ll++) {\r
#ifdef DEBUG\r
if (idebug) {\r
- crami(ll,2);\r
- skip(1);\r
+ prout("%d", ll);\r
}\r
#endif\r
/* Check if preferred position available */\r
sortkl();\r
}\r
/* check for a helpful planet */\r
- for (i = 1; i <= inplan; i++) {\r
+ for (i = 0; i < inplan; i++) {\r
if (game.state.plnets[i].x==game.state.isx && game.state.plnets[i].y==game.state.isy &&\r
game.state.plnets[i].crystals == 1) {\r
/* destroy the planet */\r
- game.state.plnets[i] = nulplanet;\r
+ DESTROY(&game.state.plnets[i]);\r
game.state.newstuf[game.state.isx][game.state.isy] -= 1;\r
if (game.damage[DRADIO] == 0.0 || condit == IHDOCKED) {\r
if (*ipage==0) pause(1);\r