Aphs.243 net.games.pacman utcsrgv!utzoo!decvax!duke!phs!dennis Sun Feb 21 16:59:31 1982 pacman magic passage bug fixed There's a bug in the distributed pacman which allows the monsters to get one free move as they go through the magic passage. This caused me great pain until I fixed it, as I often get chased through there. The fixes are as follows. Add to pacdefs.h: #define xleft(x) ((x)+LEFTINT>=0?(x)+LEFTINT:XWRAP) #define xright(x) ((x)+RIGHTINT<=XWRAP?(X)+RIGHTINT:0) THESE + < MONSTER.C: NEWX="tmpx" TO CHANGES THEN, --- 108C108 MAKE LEFTINT;> newx = xleft(tmpx); 110,111d109 newx = xright(tmpx); 117,118d114 = XWRAP) default: > errgen("bad which"); > break; 184d182 ((next = brd[y+UPINT][x]) != WALL) && 200c197 ((next = brd[y+DOWNINT][x]) != WALL) && 206c203 ((next = brd[y][xleft(x)]) != WALL) && 212c209 ((next = brd[y][xright(x)]) != WALL) && 234,235c231,232 if (((next = brd[y+DOWNINT][x]) != WALL) && > (next != GATE)) 242,243c239,240 if (((next = brd[y+UPINT][x]) != WALL) && > (next != GATE)) 250,251c247,248 if ((next = brd[y][xleft(x)]) != WALL && > (next != GATE)) 258,259c255,256 if ((next = brd[y][xright(x)]) != WALL && > (next != GATE)) ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.