[svn] Added player latency reading to Characters DB. Patch by Biglad.

*** Latency readouts provided by Trollz Inc. For all your cheap yet effective statistics please come to Trollz Inc... Now with more murloc blood added for more accuracy.

--HG--
branch : trunk
This commit is contained in:
KingPin
2008-11-11 14:01:02 -06:00
parent 655d86275b
commit b9c7086f05
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
ALTER TABLE `characters`
ADD `latency` int(11) unsigned NOT NULL default '0' AFTER `taxi_path`;

View File

@@ -15097,7 +15097,7 @@ void Player::SaveToDB()
"taximask, online, cinematic, "
"totaltime, leveltime, rest_bonus, logout_time, is_logout_resting, resettalents_cost, resettalents_time, "
"trans_x, trans_y, trans_z, trans_o, transguid, extra_flags, stable_slots, at_login, zone, "
"death_expire_time, taxi_path) VALUES ("
"death_expire_time, taxi_path, latency) VALUES ("
<< GetGUIDLow() << ", "
<< GetSession()->GetAccountId() << ", '"
<< sql_name << "', "
@@ -15196,6 +15196,8 @@ void Player::SaveToDB()
ss << ", '";
ss << m_taxi.SaveTaxiDestinationsToString();
ss << "', '";
ss << GetSession()->GetLatency();
ss << "' )";
CharacterDatabase.Execute( ss.str().c_str() );