X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=events.c;fp=events.c;h=51470c12942cb52dedbf76dd36b5d7f5c3c41193;hp=4923660b118e13b88f442fa45396536ee989c94c;hb=f972ad4a9a237ecae732391e0c37345fdfb9acea;hpb=d7ddf0df59133fd0ff3f49d0ed83079e3a695aeb diff --git a/events.c b/events.c index 4923660..51470c1 100644 --- a/events.c +++ b/events.c @@ -304,8 +304,8 @@ void events(void) { game.future[FDSPROB] = game.state.date + 0.01; probex += probeinx; probey += probeiny; - i = (int)(probex/10 +0.05); - j = (int)(probey/10 + 0.05); + i = (int)(probex/QUADSIZE +0.05); + j = (int)(probey/QUADSIZE + 0.05); if (probecx != i || probecy != j) { probecx = i; probecy = j; @@ -410,7 +410,7 @@ void wait(void) { void nova(int ix, int iy) { static double course[] = {0.0, 10.5, 12.0, 1.5, 9.0, 0.0, 3.0, 7.5, 6.0, 4.5}; - int bot, top, top2, hits[11][3], kount, icx, icy, mm, nn, j; + int bot, top, top2, hits[QUADSIZE+1][3], kount, icx, icy, mm, nn, j; int iquad, iquad1, i, ll, newcx, newcy, ii, jj; if (Rand() < 0.05) { /* Wow! We've supernova'ed */