Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clarify cClientHandle, cPlayer ownership semantics | Tiger Wang | 2021-01-12 | 1 | -6/+4 |
| | | | | | | | | + A cPlayer, once created, has a strong pointer to the cClientHandle. The player ticks the clienthandle. If he finds the handle destroyed, he destroys himself in turn. Nothing else can kill the player. * The client handle has a pointer to the player. Once a player is created, the client handle never outlasts the player, nor does it manage the player's lifetime. The pointer is always safe to use after FinishAuthenticate, which is also the point where cProtocol is put into the Game state that allows player manipulation. + Entities are once again never lost by constructing a chunk when they try to move into one that doesn't exist. * Fixed a forgotten Super invocation in cPlayer::OnRemoveFromWorld. * Fix SaveToDisk usage in destructor by only saving things cPlayer owns, instead of accessing cWorld. | ||||
* | Reverse order of ChunkSender priorities (#4858) | Tiger Wang | 2020-09-12 | 1 | -18/+15 |
| | | | | | * Reduces confusion when using overloaded operator< and priority_queue Co-authored-by: peterbell10 <peterbell10@live.co.uk> | ||||
* | ChunkDataSerializer: don't repeatedly mallocate | Tiger Wang | 2020-08-21 | 1 | -0/+4 |
| | | | | + Store an instance of the class, the way it seems it is meant to be used. | ||||
* | Precompile unordered_map/set | Tiger Wang | 2020-07-19 | 1 | -3/+0 |
| | | | | | | + Add inclusions to Globals.h * Sort Globals.h - Remove sys/stat.h from Globals.h | ||||
* | Send entities in cChunkSender (#4532) | Mat | 2020-06-24 | 1 | -1/+1 |
| | | | Confer issue #3696 | ||||
* | Using Super. | Mattes D | 2020-04-16 | 1 | -1/+3 |
| | |||||
* | Broadcast refactor (#4264) | peterbell10 | 2018-07-24 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | * Move Broadcast functions from cChunkMap to cBroadcaster - Remove cBroadcastInterface in favour of cBroadcaster. - cChunk: Remove broadcast functions. * resurect broadcast interface * Absorb cBroadcaster into cWorld. Removes the need for forwarding the function calls. * Improve const-correctness * Use Int8 instead of char + Comment `ForClients` functions * Improve comments * Broadcaster: Rename ForClients functions | ||||
* | cIsThread: Reset m_ShouldTerminate after the thread has stopped (#4258) | peterbell10 | 2018-07-22 | 1 | -2/+0 |
| | | | | | This allows threads to be restarted after stopping. Fixes #4257 | ||||
* | Removed UTF-8 BOM (#4033) | Lukas Pioch | 2017-09-19 | 1 | -1/+1 |
| | |||||
* | Implement protocol level chunk sparsing (#3864) | peterbell10 | 2017-08-21 | 1 | -1/+1 |
| | |||||
* | Remove double includes part 2 (#3890) | peterbell10 | 2017-08-03 | 1 | -1/+0 |
| | |||||
* | Clang 5.0 fixes | Lukas Pioch | 2017-05-21 | 1 | -1/+1 |
| | | | | | - Added override keyword - Removed inherited member variables | ||||
* | Bulk clearing of whitespace | LogicParrot | 2016-02-05 | 1 | -11/+11 |
| | |||||
* | Unified the doxy-comment format. | Mattes D | 2015-07-31 | 1 | -4/+4 |
| | |||||
* | Fixed minor errors in Tycho's code | Tiger Wang | 2015-06-22 | 1 | -7/+16 |
| | | | | Everything should work now :) | ||||
* | Reinstate "Chunk queue collapsing" | Tiger Wang | 2015-06-10 | 1 | -51/+30 |
| | | | | | This reinstates commit f36acb683594daff5af3971dcbe3c3a171628b78 and reverts commit adfbc42c021e1bcfcb355933c0fd784306ce0e18. | ||||
* | Revert "Chunk queue collapsing" | worktycho | 2015-06-07 | 1 | -30/+51 |
| | |||||
* | Rewrote ChunkSending queue for significantly improved performance | tycho | 2015-06-05 | 1 | -45/+26 |
| | |||||
* | Moved Chunk Broadcasts over to the regular queue | tycho | 2015-06-05 | 1 | -8/+6 |
| | |||||
* | Made cLightingThread own its callbacks | tycho | 2015-05-30 | 1 | -22/+0 |
| | |||||
* | CheckBasicStyle: checks spaces around * and &. | Mattes D | 2015-05-09 | 1 | -1/+1 |
| | |||||
* | Use 3 priorities. | Howaner | 2014-10-23 | 1 | -1/+3 |
| | |||||
* | Merge branch 'master' into ChunkLoader | Howaner | 2014-10-23 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | Conflicts: src/ChunkSender.cpp src/ClientHandle.cpp src/World.h | ||||
| * | En masse NULL -> nullptr replace | Tiger Wang | 2014-10-23 | 1 | -1/+1 |
| | | |||||
* | | Use two lists and 2 chunk send prioritys. | Howaner | 2014-10-21 | 1 | -11/+4 |
| | | |||||
* | | Stream 4 chunks per tick. Added priority. | Howaner | 2014-10-06 | 1 | -2/+16 |
|/ | |||||
* | remove y-coord from chunks | LO1ZB | 2014-08-28 | 1 | -5/+2 |
| | |||||
* | Style: Normalized to no spaces before closing parenthesis. | madmaxoft | 2014-07-21 | 1 | -1/+1 |
| | |||||
* | Fixed basic whitespace problems. | madmaxoft | 2014-07-17 | 1 | -5/+5 |
| | | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines. | ||||
* | Fixed issue with types not being defined for an unused parameter | Tycho | 2014-05-18 | 1 | -1/+1 |
| | |||||
* | Implemented Chunk Sparsing with segments | Tycho | 2014-04-26 | 1 | -0/+1 |
| | |||||
* | Moved source to src | Alexander Harkness | 2013-11-24 | 1 | -0/+169 |