#showstats not working under ubunto/gcc
#showstats uses itoa extensively, and at least on my system/compiler, itoa seems to use an internal static string. About 15 fields were all displaying level instead of the stat intended.
I simply added this after the last #include in client.cpp: Code:
#include <sstream> I have too many other changes to this file to provide a diff that would be easier to use than following the above instructions. I expect some other areas could benefit from this as well. |
Since our current target compilers are VS10 and gcc 4.6, we can use the C++11 std::to_string instead. Or should be able to, I will test this today.
EDIT: apparently VS10 has implemented std::to_string in a stupid method making it rather impractical to use : | |
All times are GMT -4. The time now is 07:52 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.