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.11 by root, Thu Sep 14 23:13:49 2006 UTC vs.
Revision 1.12 by root, Sat Sep 16 22:24:13 2006 UTC

115object * 115object *
116find_nearest_living_creature (object *npc) 116find_nearest_living_creature (object *npc)
117{ 117{
118 int i, mflags; 118 int i, mflags;
119 sint16 nx, ny; 119 sint16 nx, ny;
120 mapstruct *m; 120 maptile *m;
121 object *tmp; 121 object *tmp;
122 int search_arr[SIZEOFFREE]; 122 int search_arr[SIZEOFFREE];
123 123
124 get_search_arr (search_arr); 124 get_search_arr (search_arr);
125 for (i = 0; i < SIZEOFFREE; i++) 125 for (i = 0; i < SIZEOFFREE; i++)
1421npc_call_help (object *op) 1421npc_call_help (object *op)
1422{ 1422{
1423 int x, y, mflags; 1423 int x, y, mflags;
1424 object *npc; 1424 object *npc;
1425 sint16 sx, sy; 1425 sint16 sx, sy;
1426 mapstruct *m; 1426 maptile *m;
1427 1427
1428 for (x = -3; x < 4; x++) 1428 for (x = -3; x < 4; x++)
1429 for (y = -3; y < 4; y++) 1429 for (y = -3; y < 4; y++)
1430 { 1430 {
1431 m = op->map; 1431 m = op->map;
1607 if (move_object (ob, ob->move_status = RANDOM () % 8 + 1)) 1607 if (move_object (ob, ob->move_status = RANDOM () % 8 + 1))
1608 return; 1608 return;
1609} 1609}
1610 1610
1611void 1611void
1612check_earthwalls (object *op, mapstruct *m, int x, int y) 1612check_earthwalls (object *op, maptile *m, int x, int y)
1613{ 1613{
1614 object *tmp; 1614 object *tmp;
1615 1615
1616 for (tmp = get_map_ob (m, x, y); tmp != NULL; tmp = tmp->above) 1616 for (tmp = get_map_ob (m, x, y); tmp != NULL; tmp = tmp->above)
1617 { 1617 {
1622 } 1622 }
1623 } 1623 }
1624} 1624}
1625 1625
1626void 1626void
1627check_doors (object *op, mapstruct *m, int x, int y) 1627check_doors (object *op, maptile *m, int x, int y)
1628{ 1628{
1629 object *tmp; 1629 object *tmp;
1630 1630
1631 for (tmp = get_map_ob (m, x, y); tmp != NULL; tmp = tmp->above) 1631 for (tmp = get_map_ob (m, x, y); tmp != NULL; tmp = tmp->above)
1632 { 1632 {
1835 1835
1836int 1836int
1837stand_in_light (object *op) 1837stand_in_light (object *op)
1838{ 1838{
1839 sint16 nx, ny; 1839 sint16 nx, ny;
1840 mapstruct *m; 1840 maptile *m;
1841 1841
1842 1842
1843 if (!op) 1843 if (!op)
1844 return 0; 1844 return 0;
1845 if (op->glow_radius > 0) 1845 if (op->glow_radius > 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines