X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=planets.c;h=bce9a1a7fdfb483ec7f5f5414ff470e5286e310b;hb=6b396c7a585fcf5c54caf29c527b195999d23bfe;hp=5ea7479ec97ca992c662ba888b25533cb4c99ba2;hpb=8629b4a298e31f81ba0db0debb4796356c3966c7;p=super-star-trek.git diff --git a/planets.c b/planets.c index 5ea7479..bce9a1a 100644 --- a/planets.c +++ b/planets.c @@ -10,14 +10,14 @@ static int consumeTime(void) // double asave; ididit = 1; #if 0 - /* Don't wory about this */ + /* Don't worry about this */ if (future[FTBEAM] <= game.state.date+Time && game.state.remcom != 0 && condit != IHDOCKED) { /* We are about to be tractor beamed -- operation fails */ return 1; } #endif // asave = future[FSNOVA]; -// future[FSNOVA] = 1e30; /* defer supernovas */ +// future[FSNOVA] = FOREVER; /* defer supernovas */ events(); /* Used to avoid if future[FSCMOVE] within time */ // future[FSNOVA] = asave; /*fails if game over, quadrant super-novas or we've moved to new quadrant*/ @@ -69,7 +69,8 @@ void orbit(void) } if (plnetx == 0 || abs(sectx-plnetx) > 1 || abs(secty-plnety) > 1) { crmshp(); - prout(" not adjacent to planet.\n"); + prout(" not adjacent to planet."); + skip(1); return; } Time = 0.02+0.03*Rand(); @@ -435,7 +436,7 @@ void deathray(void) while (nenhere > 0) deadkl(game.kx[1],game.ky[1],game.quad[game.kx[1]][game.ky[1]],game.kx[1],game.ky[1]); prout("Ensign Chekov- \"Congratulations, Captain!\""); - if (game.state.remkl == 0) finish(FWON); + if (KLINGREM == 0) finish(FWON); prout("Spock- \"Captain, I believe the `Experimental Death Ray'"); if (Rand() <= 0.05) { prout(" is still operational.\"");