version 1.42 | | version 1.43 |
---|
| | |
/* | | /* |
* static char *rcsid_skill_util_c = | | * static char *rcsid_skill_util_c = |
* "$Id: skill_util.c,v 1.42 2003/10/26 06:56:57 mwedel Exp $"; | | * "$Id: skill_util.c,v 1.43 2003/10/27 07:24:14 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
lvl_mult = 1.0; | | lvl_mult = 1.0; |
} | | } |
} else { | | } else { |
lvl_mult = (float) op_lvl / (float) skill->level; | | /* Don't divide by zero here! */ |
| | lvl_mult = (float) op_lvl / (float) (skill->level?skill->level:1); |
} | | } |
} | | } |
| | |