diff options
author | madmaxoft <github@xoft.cz> | 2013-08-08 09:13:13 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-08 09:13:13 +0200 |
commit | 3f4abe8c95e4d37a84018ca4d478a908fca423ac (patch) | |
tree | 4315077d767775ae9bd938a6301d59c0191c507d /source/Player.cpp | |
parent | Merge branch 'master' of github.com:mc-server/MCServer (diff) | |
download | cuberite-3f4abe8c95e4d37a84018ca4d478a908fca423ac.tar cuberite-3f4abe8c95e4d37a84018ca4d478a908fca423ac.tar.gz cuberite-3f4abe8c95e4d37a84018ca4d478a908fca423ac.tar.bz2 cuberite-3f4abe8c95e4d37a84018ca4d478a908fca423ac.tar.lz cuberite-3f4abe8c95e4d37a84018ca4d478a908fca423ac.tar.xz cuberite-3f4abe8c95e4d37a84018ca4d478a908fca423ac.tar.zst cuberite-3f4abe8c95e4d37a84018ca4d478a908fca423ac.zip |
Diffstat (limited to 'source/Player.cpp')
-rw-r--r-- | source/Player.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/Player.cpp b/source/Player.cpp index bbf39f789..ae119a1fb 100644 --- a/source/Player.cpp +++ b/source/Player.cpp @@ -121,10 +121,14 @@ cPlayer::~cPlayer(void) -void cPlayer::Initialize(cWorld * a_World) +bool cPlayer::Initialize(cWorld * a_World) { - super::Initialize(a_World); - GetWorld()->AddPlayer(this); + if (super::Initialize(a_World)) + { + GetWorld()->AddPlayer(this); + return true; + } + return false; } |