diff options
-rw-r--r-- | sql/updates/220_characters.sql | 2 | ||||
-rw-r--r-- | src/game/Player.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sql/updates/220_characters.sql b/sql/updates/220_characters.sql new file mode 100644 index 00000000000..7d872b0bc70 --- /dev/null +++ b/sql/updates/220_characters.sql @@ -0,0 +1,2 @@ +ALTER TABLE `characters`
+ ADD `latency` int(11) unsigned NOT NULL default '0' AFTER `taxi_path`;
\ No newline at end of file diff --git a/src/game/Player.cpp b/src/game/Player.cpp index a659eb5c550..0119d1ee0db 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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() ); |