ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/monster.C
(Generate patch)

Comparing deliantra/server/server/monster.C (file contents):
Revision 1.59 by root, Sun Dec 28 10:05:42 2008 UTC vs.
Revision 1.60 by root, Sun Dec 28 17:09:24 2008 UTC

532 sdir = ndir; 532 sdir = ndir;
533 533
534 // perturbing the path might let the monster lose track, 534 // perturbing the path might let the monster lose track,
535 // but it will also widen the actual path, spreading information 535 // but it will also widen the actual path, spreading information
536 if (!rndm (20)) // even smarter, deviate and spread? 536 if (!rndm (20)) // even smarter, deviate and spread?
537 sdir += absdir (1 - rndm (2) * 2); 537 sdir = absdir (sdir + 1 - rndm (2) * 2);
538 } 538 }
539 } 539 }
540 } 540 }
541 541
542 if (sdir) 542 if (sdir)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines