ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/shop.C
(Generate patch)

Comparing deliantra/server/server/shop.C (file contents):
Revision 1.32 by root, Thu Feb 8 13:41:44 2007 UTC vs.
Revision 1.33 by root, Thu Feb 8 13:47:18 2007 UTC

307 } 307 }
308 /* we will also have an extra 0-5% variation between shops of the same type 308 /* we will also have an extra 0-5% variation between shops of the same type
309 * for valuable items (below a value of 50 this effect wouldn't be very 309 * for valuable items (below a value of 50 this effect wouldn't be very
310 * pointful, and could give fun with rounding. 310 * pointful, and could give fun with rounding.
311 */ 311 */
312 //TODO: why use cosf at all, just % and scale linearly, gives more even distribution
312 if (val > 50) 313 if (val > 50)
313 val += float (val) * .05f * cosf ((tmp->uuid.seq & 0xffff) * float (M_PI * 2. / 0x10000)); 314 val += float (val) * .05f * cosf ((tmp->uuid.seq & 0xffff) * float (M_PI * 2. / 0x10000));
314 } 315 }
315 316
316 return (sint64) val; 317 return (sint64) val;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines