Server saves if a player is flying.
This commit is contained in:
parent
9b8112dbc2
commit
007d668c1b
@ -1517,6 +1517,7 @@ bool cPlayer::LoadFromDisk()
|
|||||||
m_FoodExhaustionLevel = root.get("foodExhaustion", 0).asDouble();
|
m_FoodExhaustionLevel = root.get("foodExhaustion", 0).asDouble();
|
||||||
m_LifetimeTotalXp = (short) root.get("xpTotal", 0).asInt();
|
m_LifetimeTotalXp = (short) root.get("xpTotal", 0).asInt();
|
||||||
m_CurrentXp = (short) root.get("xpCurrent", 0).asInt();
|
m_CurrentXp = (short) root.get("xpCurrent", 0).asInt();
|
||||||
|
m_IsFlying = root.get("isflying", 0).asBool();
|
||||||
|
|
||||||
//SetExperience(root.get("experience", 0).asInt());
|
//SetExperience(root.get("experience", 0).asInt());
|
||||||
|
|
||||||
@ -1568,6 +1569,7 @@ bool cPlayer::SaveToDisk()
|
|||||||
root["foodTickTimer"] = m_FoodTickTimer;
|
root["foodTickTimer"] = m_FoodTickTimer;
|
||||||
root["foodExhaustion"] = m_FoodExhaustionLevel;
|
root["foodExhaustion"] = m_FoodExhaustionLevel;
|
||||||
root["world"] = GetWorld()->GetName();
|
root["world"] = GetWorld()->GetName();
|
||||||
|
root["isflying"] = IsFlying();
|
||||||
|
|
||||||
if (m_GameMode == GetWorld()->GetGameMode())
|
if (m_GameMode == GetWorld()->GetGameMode())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user