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.185 by root, Sun Apr 11 04:09:56 2010 UTC vs.
Revision 1.186 by root, Tue Apr 13 02:39:52 2010 UTC

1562 */ 1562 */
1563 for (int i = 1000; --i;) 1563 for (int i = 1000; --i;)
1564 { 1564 {
1565 object *pick = at (gen (width), gen (height)).bot; 1565 object *pick = at (gen (width), gen (height)).bot;
1566 1566
1567 // do not prefer big monsters just because they are big. 1567 // must be head: do not prefer big monsters just because they are big.
1568 if (pick && pick->is_head ()) 1568 if (pick && pick->is_head ())
1569 return pick->head_ (); 1569 return pick;
1570 } 1570 }
1571 1571
1572 // instead of crashing in the unlikely(?) case, try to return *something* 1572 // instead of crashing in the unlikely(?) case, try to return *something*
1573 return archetype::find (shstr_bug); 1573 return archetype::find (shstr_bug);
1574} 1574}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines