summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-03-01 13:20:29 +0100
committerandrew <xdotftw@gmail.com>2014-03-01 13:20:29 +0100
commit692a84af31889af7a83b780009b1fcc81bfa3d99 (patch)
treeaafc6ace2e30ff55b082cbcef306c23d8b0a4b68 /src/Entities/Player.cpp
parentExported cScoreboard::ForEachObjective (diff)
downloadcuberite-692a84af31889af7a83b780009b1fcc81bfa3d99.tar
cuberite-692a84af31889af7a83b780009b1fcc81bfa3d99.tar.gz
cuberite-692a84af31889af7a83b780009b1fcc81bfa3d99.tar.bz2
cuberite-692a84af31889af7a83b780009b1fcc81bfa3d99.tar.lz
cuberite-692a84af31889af7a83b780009b1fcc81bfa3d99.tar.xz
cuberite-692a84af31889af7a83b780009b1fcc81bfa3d99.tar.zst
cuberite-692a84af31889af7a83b780009b1fcc81bfa3d99.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 416bda2ec..8f94f1feb 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -859,7 +859,7 @@ void cPlayer::KilledBy(cEntity * a_Killer)
{
GetWorld()->BroadcastChatDeath(Printf("%s was killed by %s", GetName().c_str(), ((cPlayer *)a_Killer)->GetName().c_str()));
- m_World->GetScoreBoard().AddPlayerScore(((cPlayer *)a_Killer)->GetName(), cObjective::E_TYPE_PLAYER_KILL_COUNT, 1);
+ m_World->GetScoreBoard().AddPlayerScore(((cPlayer *)a_Killer)->GetName(), cObjective::otPlayerKillCount, 1);
}
else
{
@@ -869,7 +869,7 @@ void cPlayer::KilledBy(cEntity * a_Killer)
GetWorld()->BroadcastChatDeath(Printf("%s was killed by a %s", GetName().c_str(), KillerClass.c_str()));
}
- m_World->GetScoreBoard().AddPlayerScore(GetName(), cObjective::E_TYPE_DEATH_COUNT, 1);
+ m_World->GetScoreBoard().AddPlayerScore(GetName(), cObjective::otDeathCount, 1);
}