version 1.23 | | version 1.24 |
---|
| | |
/* | | /* |
* static char *rcsid_button_c = | | * static char *rcsid_button_c = |
* "$Id: button.c,v 1.23 2003/10/27 03:44:33 temitchell Exp $"; | | * "$Id: button.c,v 1.24 2004/04/18 07:59:36 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
op->stats.wc = state; | | op->stats.wc = state; |
if (state) { | | if (state) { |
use_trigger(op); | | use_trigger(op); |
op->speed = 1.0 / op->arch->clone.stats.exp; | | if (op->stats.exp > 0) /* check sanity */ |
| | op->speed = 1.0 / op->stats.exp; |
| | else |
| | op->speed = 1.0; |
update_ob_speed(op); | | update_ob_speed(op); |
op->speed_left = -1; | | op->speed_left = -1; |
} else { | | } else { |