projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.jwz.org/xscreensaver/xscreensaver-5.12.tar.gz
[xscreensaver]
/
hacks
/
pacman_ai.c
diff --git
a/hacks/pacman_ai.c
b/hacks/pacman_ai.c
index 1452226af93e19af2d81e9e76c787482df8cbd00..070f9aa5fe3debb997e419605432339a95ff5614 100644
(file)
--- a/
hacks/pacman_ai.c
+++ b/
hacks/pacman_ai.c
@@
-609,10
+609,8
@@
static void
pac_chasing (pacmangamestruct * pp, pacmanstruct * p)
{
int posdirs[DIRVECS], nrdirs, i, highest = -(1 << 16),
pac_chasing (pacmangamestruct * pp, pacmanstruct * p)
{
int posdirs[DIRVECS], nrdirs, i, highest = -(1 << 16),
- score, dir = 0, prox, worst = 0;
- int vx, vy;
-
- prox = pac_ghost_prox_and_vector (pp, p, &vx, &vy);
+ score, dir = 0, worst = 0;
+ int vx = 0, vy = 0;
nrdirs = pac_get_posdirs (pp, p, posdirs);
nrdirs = pac_get_posdirs (pp, p, posdirs);
@@
-629,7
+627,6
@@
pac_chasing (pacmangamestruct * pp, pacmanstruct * p)
}
nrdirs--;
posdirs[worst] = 0;
}
nrdirs--;
posdirs[worst] = 0;
- highest = -(1 << 16);
/* get last possible direction if all else fails */
/* get last possible direction if all else fails */