feat: implement 64-bit gold system across server, DB, exchange, safebox, and guild (Stage 7)
This commit is contained in:
@@ -79,6 +79,14 @@ inline bool str_to_number (long long& out, const char *in)
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool str_to_number (unsigned long long& out, const char *in)
|
||||
{
|
||||
if (0==in || 0==in[0]) return false;
|
||||
|
||||
out = (unsigned long long) strtoull(in, NULL, 10);
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool str_to_number (float& out, const char *in)
|
||||
{
|
||||
if (0==in || 0==in[0]) return false;
|
||||
|
||||
Reference in New Issue
Block a user