X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fsst.c;h=021e3d9bef3885a69f8c290e46043ca4d6b9b5ab;hp=7fbbfc2ef558af029e37e827537410314a35ef4f;hb=b3d872bf30cc6b7e4a0b88f0580c2f5e35ccaf2d;hpb=4c3ff8ac78499d53339de7d67081e99582a9fb75 diff --git a/src/sst.c b/src/sst.c index 7fbbfc2..021e3d9 100644 --- a/src/sst.c +++ b/src/sst.c @@ -909,20 +909,23 @@ void debugme(void) chew(); proutn("In quadrant- "); key = scan(); - if (key != IHREAL) { - prout("Event %d canceled, no y coordinate.", i); - unschedule(i); - continue; + /* IHEOL says to leave coordinates as they are */ + if (key != IHEOL) { + if (key != IHREAL) { + prout("Event %d canceled, no x coordinate.", i); + unschedule(i); + continue; + } + w.x = (int)aaitem; + key = scan(); + if (key != IHREAL) { + prout("Event %d canceled, no y coordinate.", i); + unschedule(i); + continue; + } + w.y = (int)aaitem; + ev->quadrant = w; } - w.y = (int)aaitem; - key = scan(); - if (key != IHREAL) { - prout("Event %d canceled, no x coordinate.", i); - unschedule(i); - continue; - } - w.x = (int)aaitem; - ev->quadrant = w; } } }