From a4a8a1aba5a8c58e3023025e304d2b78f0e4937f Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Thu, 21 Aug 2014 17:54:49 -0400 Subject: [PATCH] Clean up some compiler warnings with Stop_Return --- zone/client.cpp | 4 ++-- zone/exp.cpp | 2 +- zone/trading.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zone/client.cpp b/zone/client.cpp index 0ac0671ef..2f2b4d370 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -2243,7 +2243,7 @@ void Client::AddMoneyToPP(uint32 copper, uint32 silver, uint32 gold, uint32 plat struct timeval read_time; char buffer[50]; gettimeofday(&read_time, 0); - sprintf(buffer, "%i.%i \n", read_time.tv_sec, read_time.tv_usec); + sprintf(buffer, "%li.%li \n", read_time.tv_sec, read_time.tv_usec); this->SetEntityVariable("Stop_Return", buffer); int32 new_value = m_pp.platinum + platinum; @@ -8277,4 +8277,4 @@ void Client::ExpeditionSay(const char *str, int ExpID) { mysql_free_result(result); -} \ No newline at end of file +} diff --git a/zone/exp.cpp b/zone/exp.cpp index 6553789d6..75d95bf25 100644 --- a/zone/exp.cpp +++ b/zone/exp.cpp @@ -54,7 +54,7 @@ void Client::AddEXP(uint32 in_add_exp, uint8 conlevel, bool resexp) { struct timeval read_time; char buffer[50]; gettimeofday(&read_time, 0); - sprintf(buffer, "%i.%i \n", read_time.tv_sec, read_time.tv_usec); + sprintf(buffer, "%li.%li \n", read_time.tv_sec, read_time.tv_usec); this->SetEntityVariable("Stop_Return", buffer); uint32 add_exp = in_add_exp; diff --git a/zone/trading.cpp b/zone/trading.cpp index 7dbc93bad..9a504d2cb 100644 --- a/zone/trading.cpp +++ b/zone/trading.cpp @@ -642,7 +642,7 @@ void Client::FinishTrade(Mob* tradingWith, ServerPacket* qspack, bool finalizer) struct timeval read_time; char buffer[50]; gettimeofday(&read_time, 0); - sprintf(buffer, "%i.%i \n", read_time.tv_sec, read_time.tv_usec); + sprintf(buffer, "%li.%li \n", read_time.tv_sec, read_time.tv_usec); this->SetEntityVariable("Stop_Return", buffer); }