Thread: Money bug fix
View Single Post
  #5  
Old 06-11-2003, 10:15 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Ah, when converting, the converted amount was never deducted from the original amount...

101 copper should be 101/1000 = 0 by integer division, then 101/100 = 1, so 1 gold, so new amount is now 101-100 = 1 remainder, 1 /10 = 0 silver, then +1 copper, so 101 copper = 1 gold 1 copper.

Good catch on that Yoda. Just merged the fix in.
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote