Quote:
Originally Posted by Uleat
The only thing I can think of would be a possible difference in the way that MS uses conversions over Linux..assuming the servers that you logged into were
different than yours. (I'll try tonight on my win server and see what happens.)
When forcing a conversion from float to int, doesn't the rounding function automatically ignore and drop the fractional amount regardless? I know 'Excel' does and
you have to use special functions to roundup..but even that implementation changed between versions.
|
Floating point to integer conversion is defined by the C++ standard and not open to interpretation by different compiler vendors. The whole number is kept and the fraction discarded. 1.01 and 1.99 both become 1.
Looking at the database log it exactly matches what the vendor said he'd give you in all cases, and that is the amount sent to the AddMoneyToPP function.
Look in the debug zone log and see if you see the money being logged. The line would start with "Client::AddMoneyToPP()" and the values would show what the server believes your character has which should agree with the client unless there's something wrong when sending it.
I didn't see a # command that would list your money so it would seem like that log is the only way you'll easily be able to tell if what you actually have on the server is the same as what the client is showing you.