diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-29 21:50:30 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-29 21:50:30 +0200 |
commit | 4f5d73b7704e351365a987b421c35f1384afa240 (patch) | |
tree | 88b4da666ea4723377cfa489c737618ef8cde2b1 /src/World.h | |
parent | Merge pull request #1061 from mc-server/portals (diff) | |
download | cuberite-4f5d73b7704e351365a987b421c35f1384afa240.tar cuberite-4f5d73b7704e351365a987b421c35f1384afa240.tar.gz cuberite-4f5d73b7704e351365a987b421c35f1384afa240.tar.bz2 cuberite-4f5d73b7704e351365a987b421c35f1384afa240.tar.lz cuberite-4f5d73b7704e351365a987b421c35f1384afa240.tar.xz cuberite-4f5d73b7704e351365a987b421c35f1384afa240.tar.zst cuberite-4f5d73b7704e351365a987b421c35f1384afa240.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/World.h b/src/World.h index 4bf5a9d64..6649c4163 100644 --- a/src/World.h +++ b/src/World.h @@ -281,8 +281,9 @@ public: /** Removes the player from the world. Removes the player from the addition queue, too, if appropriate. - If the player has a ClientHandle, the ClientHandle is removed from all chunks in the world and will not be ticked by this world anymore. */ - void RemovePlayer(cPlayer * a_Player); + If the player has a ClientHandle, the ClientHandle is removed from all chunks in the world and will not be ticked by this world anymore. + @param a_RemoveFromChunk determines if the entity should be removed from its chunk as well. Should be false when ticking from cChunk. */ + void RemovePlayer(cPlayer * a_Player, bool a_RemoveFromChunk); /** Calls the callback for each player in the list; returns true if all players processed, false if the callback aborted by returning true */ virtual bool ForEachPlayer(cPlayerListCallback & a_Callback) override; // >> EXPORTED IN MANUALBINDINGS << |