Clean up some compiler warnings with Stop_Return

This commit is contained in:
Michael Cook (mackal) 2014-08-21 17:54:49 -04:00
parent fb84f7f84f
commit a4a8a1aba5
3 changed files with 4 additions and 4 deletions

View File

@ -2243,7 +2243,7 @@ void Client::AddMoneyToPP(uint32 copper, uint32 silver, uint32 gold, uint32 plat
struct timeval read_time; struct timeval read_time;
char buffer[50]; char buffer[50];
gettimeofday(&read_time, 0); 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); this->SetEntityVariable("Stop_Return", buffer);
int32 new_value = m_pp.platinum + platinum; int32 new_value = m_pp.platinum + platinum;

View File

@ -54,7 +54,7 @@ void Client::AddEXP(uint32 in_add_exp, uint8 conlevel, bool resexp) {
struct timeval read_time; struct timeval read_time;
char buffer[50]; char buffer[50];
gettimeofday(&read_time, 0); 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); this->SetEntityVariable("Stop_Return", buffer);
uint32 add_exp = in_add_exp; uint32 add_exp = in_add_exp;

View File

@ -642,7 +642,7 @@ void Client::FinishTrade(Mob* tradingWith, ServerPacket* qspack, bool finalizer)
struct timeval read_time; struct timeval read_time;
char buffer[50]; char buffer[50];
gettimeofday(&read_time, 0); 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); this->SetEntityVariable("Stop_Return", buffer);
} }