… | |
… | |
115 | object * |
115 | object * |
116 | find_nearest_living_creature (object *npc) |
116 | find_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++) |
… | |
… | |
1421 | npc_call_help (object *op) |
1421 | npc_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 | |
1611 | void |
1611 | void |
1612 | check_earthwalls (object *op, mapstruct *m, int x, int y) |
1612 | check_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 | |
1626 | void |
1626 | void |
1627 | check_doors (object *op, mapstruct *m, int x, int y) |
1627 | check_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 | |
1836 | int |
1836 | int |
1837 | stand_in_light (object *op) |
1837 | stand_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) |