version 1.46 | | version 1.47 |
---|
| | |
/* | | /* |
* static char *rcsid_time_c = | | * static char *rcsid_time_c = |
* "$Id: time.c,v 1.46 2002/12/13 05:09:49 garbled Exp $"; | | * "$Id: time.c,v 1.47 2002/12/25 06:45:46 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
} | | } |
| | |
| | /* if the arrow is moving too slow.. stop it. 0.5 was chosen as lower |
| | values look rediculous. */ |
| | if (op->speed < 0.5 && op->type==ARROW) { |
| | stop_arrow(op); |
| | return; |
| | } |
| | |
/* Calculate target map square */ | | /* Calculate target map square */ |
new_x = op->x + DIRX(op); | | new_x = op->x + DIRX(op); |
new_y = op->y + DIRY(op); | | new_y = op->y + DIRY(op); |
| | |
remove_ob (op); | | remove_ob (op); |
op->x = new_x; | | op->x = new_x; |
op->y = new_y; | | op->y = new_y; |
| | |
| | /* decrease the speed as it flies. 0.05 means a standard bow will shoot |
| | about 17 squares. Tune as needed. */ |
| | op->speed -= 0.05; |
insert_ob_in_map (op, op->map, op,0); | | insert_ob_in_map (op, op->map, op,0); |
} | | } |
| | |