version 1.50 | | version 1.51 |
---|
| | |
/* | | /* |
* static char *rcsid_skill_util_c = | | * static char *rcsid_skill_util_c = |
* "$Id: skill_util.c,v 1.50 2005/03/06 20:38:55 akirschbaum Exp $"; | | * "$Id: skill_util.c,v 1.51 2005/05/22 07:41:40 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
/* Gives a percentage clipped to 0% -> 100% of a/b. */ | | /* Gives a percentage clipped to 0% -> 100% of a/b. */ |
/* Probably belongs in some global utils-type file? */ | | /* Probably belongs in some global utils-type file? */ |
static int clipped_percent(int a, int b) | | static int clipped_percent(sint64 a, sint64 b) |
{ | | { |
int rv; | | int rv; |
| | |