version 1.66 | | version 1.67 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.66 2001/11/27 04:33:46 michtoen Exp $"; | | * "$Id: spell_effect.c,v 1.67 2001/12/03 07:51:46 mwedel Exp $"; |
*/ | | */ |
| | |
| | |
| | |
| | |
remove_ob(op); | | remove_ob(op); |
op->x=x,op->y=y; | | op->x=x,op->y=y; |
if ((op = insert_ob_in_map(op,op->map,op,0)) != NULL) | | if ((op = insert_ob_in_map(op,op->map,op,0)) != NULL) { |
draw(op); | | /* I believe that currently, this will always be true as |
| | * only players can use dimension door, but might as |
| | * well be safe. comment out call to draw - the main |
| | * update loop will figure it out. |
| | */ |
| | if( op->type == PLAYER) |
| | MapNewmapCmd(op->contr); |
| | /* draw(op);*/ |
| | } |
return 1; | | return 1; |
} | | } |
} else { /* Player didn't specify a distance, so lets see how far | | } else { /* Player didn't specify a distance, so lets see how far |
| | |
op->x+=freearr_x[dir]*dist,op->y+=freearr_y[dir]*dist; | | op->x+=freearr_x[dir]*dist,op->y+=freearr_y[dir]*dist; |
if ((op = insert_ob_in_map(op,op->map,op,0)) == NULL) | | if ((op = insert_ob_in_map(op,op->map,op,0)) == NULL) |
return 1; | | return 1; |
draw(op); | | |
| | if( op->type == PLAYER) |
| | MapNewmapCmd(op->contr); |
| | /* draw(op);*/ |
op->speed_left= -FABS(op->speed)*5; /* Freeze them for a short while */ | | op->speed_left= -FABS(op->speed)*5; /* Freeze them for a short while */ |
return 1; | | return 1; |
} | | } |