X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=sst.c;h=31202254ae78c2a785f392a4c7d46970522c777b;hb=02f05de93d48d0147cfffbb8e55ca7776ca09797;hp=e4fe2afe0fcf55a0eab1f3f5d3a4001e47c6bd79;hpb=f14a35629e403d9b2cd4e406e80666671fd2a594;p=super-star-trek.git diff --git a/sst.c b/sst.c index e4fe2af..3120225 100644 --- a/sst.c +++ b/sst.c @@ -323,7 +323,7 @@ static void makemoves(void) { events(); if (alldone) break; // Events did us in } - if (d.galaxy[quadx][quady] == 1000) { // Galaxy went Nova! + if (game.state.galaxy[quadx][quady] == 1000) { // Galaxy went Nova! atover(0); continue; } @@ -331,7 +331,7 @@ static void makemoves(void) { if (hitme && justin==0) { attack(2); if (alldone) break; - if (d.galaxy[quadx][quady] == 1000) { // went NOVA! + if (game.state.galaxy[quadx][quady] == 1000) { // went NOVA! atover(0); hitme = TRUE; continue; @@ -657,7 +657,7 @@ void debugme(void) { key = scan(); if (key == IHALPHA && isit("y")) { damage[i] = 10.0; - if (i == DRADIO) stdamtim = d.date; + if (i == DRADIO) stdamtim = game.state.date; } } } @@ -676,12 +676,12 @@ void debugme(void) { case FSCMOVE: proutn("SC Move "); break; case FSCDBAS: proutn("SC Base Destroy "); break; } - cramf(future[i]-d.date, 8, 2); + cramf(future[i]-game.state.date, 8, 2); chew(); proutn(" ?"); key = scan(); if (key == IHREAL) { - future[i] = d.date + aaitem; + future[i] = game.state.date + aaitem; } } chew();