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

Comparing deliantra/server/common/map.C (file contents):
Revision 1.91 by root, Sat Feb 17 23:32:11 2007 UTC vs.
Revision 1.92 by root, Sun Feb 18 17:24:16 2007 UTC

1687 for (int i = 1000; --i;) 1687 for (int i = 1000; --i;)
1688 { 1688 {
1689 object *pick = at (rndm (width), rndm (height)).bot; 1689 object *pick = at (rndm (width), rndm (height)).bot;
1690 1690
1691 // do not prefer big monsters just because they are big. 1691 // do not prefer big monsters just because they are big.
1692 if (pick->head_ () == pick) 1692 if (pick && pick->head_ () == pick)
1693 return pick->head_ (); 1693 return pick->head_ ();
1694 } 1694 }
1695 1695
1696 // instead of crashing in the unlikely(?) case, try to return *something* 1696 // instead of crashing in the unlikely(?) case, try to return *something*
1697 return get_archetype ("blocked"); 1697 return get_archetype ("blocked");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines