X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fsst.c;h=32208d8cf557d1ba37798ebcdade5b36e0741bd4;hp=21c803e770c362e3b494d6ba0e6b818387fad743;hb=188965b8e49bc7a0233258627917239b57429e77;hpb=28815fe0dea83042dbcd6f112ae6ce1821edd1e0 diff --git a/src/sst.c b/src/sst.c index 21c803e..32208d8 100644 --- a/src/sst.c +++ b/src/sst.c @@ -848,7 +848,7 @@ void debugme(void) int i; for (i = 1; i < NEVENTS; i++) { int key; - if (game.future[i] == FOREVER) continue; + if (!is_scheduled(i)) continue; switch (i) { case FSNOVA: proutn("Supernova "); break; case FTBEAM: proutn("T Beam "); break; @@ -858,12 +858,12 @@ void debugme(void) case FSCMOVE: proutn("SC Move "); break; case FSCDBAS: proutn("SC Base Destroy "); break; } - proutn("%.2f", game.future[i]-game.state.date); + proutn("%.2f", scheduled(i)-game.state.date); chew(); proutn(" ?"); key = scan(); if (key == IHREAL) { - game.future[i] = game.state.date + aaitem; + schedule(i, aaitem); } } chew();