View Single Post
Old 05-18-2009, 04:42 AM   #15 (permalink)
Hawkins
Forum Novice
 
Join Date: Aug 2003
Location: Hong Kong
Posts: 574
Send a message via ICQ to Hawkins
Default

The most critical bug I found by far is in CommissionedVendor.cs, the last code line of the file,

Code:
if ( !cv.Deleted && cv.IsComm && cv.CommRate > 0 && cv.CommRate <= 100 && cv.LastHold > cv.HoldGold )
{
	int left = cv.HoldGold - cv.LastHold;
	int comm = (int)( left * cv.CommRate / 100 );

	cv.HoldGold -= comm;
	cv.LastHold = cv.HoldGold;
}

without adding the highted line, the commission calculation is wrong, HoldGold will be reduced time and again.
Hawkins is offline   Reply With Quote