X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fpacman.c;h=01a83831b1e9e85b4798df19c42c7ad3d73f138b;hb=50be9bb40dc60130c99ffa568e6677779904ff70;hp=72e08ca860bff8d67fc8311d2aa41210986544d0;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/pacman.c b/hacks/pacman.c index 72e08ca8..01a83831 100644 --- a/hacks/pacman.c +++ b/hacks/pacman.c @@ -50,7 +50,10 @@ static const char sccsid[] = "@(#)pacman.c 5.00 2000/11/01 xlockmore"; # define MODE_pacman # define DEFAULTS "*delay: 10000 \n" \ "*size: 0 \n" \ - "*ncolors: 6 \n" + "*ncolors: 6 \n" \ + "*fpsTop: true \n" \ + "*fpsSolid: true \n" \ + # define UNIFORM_COLORS # define BRIGHT_COLORS # define reshape_pacman 0 @@ -273,11 +276,9 @@ check_death (ModeInfo * mi, pacmangamestruct * pp) Display *display = MI_DISPLAY (mi); Window window = MI_WINDOW (mi); unsigned int ghost; - int alldead; if (pp->pacman.aistate == ps_dieing) return; - alldead = 1; for (ghost = 0; ghost < pp->nghosts; ghost++) { /* The ghost have to be scared before you can kill them */ @@ -303,11 +304,7 @@ check_death (ModeInfo * mi, pacmangamestruct * pp) } continue; } - - alldead = 0; } - - } /* Resets state of ghosts + pacman. Creates a new level, draws that level. */ @@ -828,8 +825,6 @@ draw_pacman_sprite (ModeInfo * mi) pp->pacman.oldcf = pp->pacman.cf; pp->pacman.oldrf = pp->pacman.rf; } - old_mask_dir = dir; - old_mask_mouth = pp->pm_mouth; } #if 0