Lines Matching defs:from
36 fire_torp(OBJECT *from, int ydir, int xdir)
40 if (from->type == Enemy ||
41 (from == ent && etorp > 0) ||
42 (from == base && btorp > 0)) {
43 to = occupant[(from->posy+from->vely+ydir+YSIZE00)%YSIZE]
44 [(from->posx+from->velx+xdir+XSIZE00)%XSIZE];
45 if (from->type != Enemy || !to || to->vely || to->velx) {
46 if (from->type != Enemy &&
47 (to = isatorp[from==base][ydir+1][xdir+1])) {
52 if (from == ent) {
53 to = make_object(Torp, '+', from->posy,from->posx,
54 from->vely+ydir,from->velx+xdir, 0L, 1L,&root);
59 else if (from == base) {
60 to = make_object(Torp, '+', from->posy,from->posx,
61 from->vely+ydir,from->velx+xdir, 0L, 1L,&root);
66 else if (from->image == 'G') {
68 to = make_object(Torp, 'o', from->posy,from->posx,
69 from->vely+ydir,from->velx+xdir, 100L, 1L,&root);
84 to = make_object(Torp, 'x', from->posy,from->posx,
85 from->vely+ydir,from->velx+xdir, 0L, 1L,&root);