diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-29 21:43:34 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-29 21:43:34 +0200 |
commit | 70546f25a0209c2b61dadf61840dfa628a9a75b7 (patch) | |
tree | ca7d9e9742dcdd1b2d5f9aa7859d2e3ea99f4fad /source/Player.cpp | |
parent | AnvilStats: can draw biome map (method 1) (diff) | |
download | cuberite-70546f25a0209c2b61dadf61840dfa628a9a75b7.tar cuberite-70546f25a0209c2b61dadf61840dfa628a9a75b7.tar.gz cuberite-70546f25a0209c2b61dadf61840dfa628a9a75b7.tar.bz2 cuberite-70546f25a0209c2b61dadf61840dfa628a9a75b7.tar.lz cuberite-70546f25a0209c2b61dadf61840dfa628a9a75b7.tar.xz cuberite-70546f25a0209c2b61dadf61840dfa628a9a75b7.tar.zst cuberite-70546f25a0209c2b61dadf61840dfa628a9a75b7.zip |
Diffstat (limited to 'source/Player.cpp')
-rw-r--r-- | source/Player.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/Player.cpp b/source/Player.cpp index b20287750..a0be947bf 100644 --- a/source/Player.cpp +++ b/source/Player.cpp @@ -66,6 +66,9 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName) m_CurrentWindow = m_InventoryWindow; m_InventoryWindow->OpenedByPlayer(*this); + // DEBUG: + LOGD("Inventory window for player %p is at %p", this, m_InventoryWindow); + SetMaxHealth(20); m_MaxFoodLevel = 20; m_MaxFoodSaturationLevel = 20.f; @@ -103,7 +106,7 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName) cPlayer::~cPlayer(void) { - LOG("Deleting cPlayer \"%s\" at %p, ID %d", m_PlayerName.c_str(), this, GetUniqueID()); + LOG("Deleting cPlayer \"%s\" at %p, ID %d; inv win %p", m_PlayerName.c_str(), this, GetUniqueID(), m_InventoryWindow); SaveToDisk(); |