ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/util.h
(Generate patch)

Comparing deliantra/server/include/util.h (file contents):
Revision 1.103 by root, Thu Apr 29 15:49:04 2010 UTC vs.
Revision 1.104 by root, Thu Apr 29 21:21:34 2010 UTC

486 } 486 }
487 487
488 // return a number within the closed interval [min .. max] 488 // return a number within the closed interval [min .. max]
489 int operator () (int r_min, int r_max) 489 int operator () (int r_min, int r_max)
490 { 490 {
491 return is_constant (r_min) && is_constant (r_max) && r_min <= r_max 491 return is_constant (r_min <= r_max) && r_min <= r_max
492 ? r_min + operator ()(r_max - r_min + 1) 492 ? r_min + operator ()(r_max - r_min + 1)
493 : get_range (r_min, r_max); 493 : get_range (r_min, r_max);
494 } 494 }
495 495
496 // return a number within the closed interval [0..1] 496 // return a number within the closed interval [0..1]

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines