mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
Changed: Simplify toString
This commit is contained in:
parent
86f66e678d
commit
004d88b989
3 changed files with 4 additions and 4 deletions
|
@ -894,7 +894,7 @@ void CObjectInteger::inPlaceCopy(const CObjectInteger &src)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
std::string CObjectInteger::doToString() const { return NLMISC::toString("%" NL_I64 "d", _Value); }
|
std::string CObjectInteger::doToString() const { return NLMISC::toString(_Value); }
|
||||||
|
|
||||||
void CObjectInteger::doSerialize(std::string& out, CSerializeContext& /* context */) const
|
void CObjectInteger::doSerialize(std::string& out, CSerializeContext& /* context */) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -1002,7 +1002,7 @@ ENTITY_VARIABLE(Money, "Money")
|
||||||
|
|
||||||
if (get)
|
if (get)
|
||||||
{
|
{
|
||||||
value = toString("%"NL_I64"u", c->getMoney());
|
value = toString(c->getMoney());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1054,7 +1054,7 @@ ENTITY_VARIABLE(MoneyGuild, "MoneyGuild")
|
||||||
|
|
||||||
if (get)
|
if (get)
|
||||||
{
|
{
|
||||||
value = toString("%"NL_I64"u", guild->getMoney());
|
value = toString(guild->getMoney());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -1011,7 +1011,7 @@ NLMISC_COMMAND(getMoney, "get money of player", "<uid>")
|
||||||
{
|
{
|
||||||
GET_ACTIVE_CHARACTER
|
GET_ACTIVE_CHARACTER
|
||||||
|
|
||||||
string value = toString("%"NL_I64"u", c->getMoney());
|
string value = toString(c->getMoney());
|
||||||
|
|
||||||
log.displayNL(value.c_str());
|
log.displayNL(value.c_str());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue