Difference for common/utils.c from version 1.22 to 1.23


version 1.22 version 1.23
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_utils_c =   * static char *rcsid_utils_c =
  *   "$Id: utils.c,v 1.22 2006/01/08 22:47:56 qal21 Exp $";   *   "$Id: utils.c,v 1.23 2006/02/09 00:48:36 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 49
 
Line 49
  * not the recipient (ie, the poor slob getting hit). [garbled 20010916]   * not the recipient (ie, the poor slob getting hit). [garbled 20010916]
  */   */
   
 int random_roll(int min, int max, object *op, int goodbad) {  int random_roll(int min, int max, const object *op, int goodbad) {
     int omin, diff, luck, base, ran;      int omin, diff, luck, base, ran;
   
     omin = min;      omin = min;
Line 85
 
Line 85
  * for exp loss calculations for players changing religions.   * for exp loss calculations for players changing religions.
  */   */
   
 sint64 random_roll64(sint64 min, sint64 max, object *op, int goodbad) {  sint64 random_roll64(sint64 min, sint64 max, const object *op, int goodbad) {
     sint64 omin, diff, luck, ran;      sint64 omin, diff, luck, ran;
     int base;      int base;
   
Line 134
 
Line 134
  * The args are num D size (ie 4d6)  [garbled 20010916]   * The args are num D size (ie 4d6)  [garbled 20010916]
  */   */
   
 int die_roll(int num, int size, object *op, int goodbad) {  int die_roll(int num, int size, const object *op, int goodbad) {
     int min, diff, luck, total, i, gotlucky, base, ran;      int min, diff, luck, total, i, gotlucky, base, ran;
   
     diff = size;      diff = size;
Line 268
 
Line 268
  * as some that did not apply previously, may apply now.   * as some that did not apply previously, may apply now.
  */   */
   
 void transmute_materialname(object *op, object *change)  void transmute_materialname(object *op, const object *change)
 {  {
     materialtype_t *mt;      materialtype_t *mt;
     int j;      int j;


Legend:
line(s) removed in v.1.22 
line(s) changed
 line(s) added in v.1.23

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:19