Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Tweak pickup sound pitch (#4598) | Mat | 2020-04-03 | 1 | -1/+1 |
| | |||||
* | Stabilise MoveToWorld (#4004) | Mat | 2020-03-05 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Stabilise MoveToWorld * Fix comments and deprecate ScheduleMoveToWorld * Enhanced thread safety for m_WorldChangeInfo * Return unique_ptr from cAtomicUniquePtr::exchange * cWorld now calls entity cEntity::OnAddToWorld and cEntity::OnRemoveFromWorld. Allows broadcasting entities added to the world from the world's tick thread. This also factors out some common code from cEntity::DoMoveToWorld and cEntity::Initialize. As a consequence, cEntity::Destroy(false) (i.e. Destroying the entity without broadcasting) is impossible. This isn't used anywhere in Cuberite so it's now deprecated. * Update entity position after removing it from the world. Fixes broadcasts being sent to the wrong chunk. * Fix style * cEntity: Update LastSentPosition when sending spawn packet * Add Wno-deprecated-declarations to the lua bindings * Kill uses of ScheduleMoveToWorld | ||||
* | Refactored more of Entities and BlockEntities to use Vector3. (#4403) | Mattes D | 2019-09-29 | 1 | -9/+12 |
| | |||||
* | Fix building with clang 8.0 (#4346) | Bond-009 | 2019-08-11 | 1 | -1/+1 |
| | |||||
* | Broadcast refactor (#4264) | peterbell10 | 2018-07-24 | 1 | -4/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | Exp Orbs and Pickups are destroyed instantly by cacti. (#4136) | Alexander Harkness | 2018-01-16 | 1 | -0/+15 |
| | | | | | | | | | | | | | * Cactus detection code follows pattern set in #3996 * Pickups are now destroyed on cactus contact * Add cactus detection and destruction to Exp Orbs Remove checks for IsExpOrb() in cEntity::Tick() Exp Orbs do not call super::Tick() and so this condition was pointless. | ||||
* | Rename cEntity swim states (#3996) | Alexander Harkness | 2018-01-14 | 1 | -15/+2 |
| | | | | | | | | | | * Replace cEntity:m_IsSubmerged with m_IsHeadInWater * Replace cEntity:m_IsSwimming with m_IsInWater * Add API documentation for new symbols * Apply SetSwimState to all entities, not just mobs and players * Pickups now use IsOnFire to check if they are on fire before destruction Fixes #3987 | ||||
* | Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959) | Lane Kolbly | 2017-09-19 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | * Made BroadcastSoundEffect take vector parameters. * Added docs for new vectored methods * Removed old code * Fixed lua warnings * Made old BroadcastSoundEffect not an override. * m_Block to m_BlockPos, used Vector3d constructor where prettier. * a_Block to a_BlockPos * Changed thunderbolt a_Block to a_BlockPos | ||||
* | Replace ItemCallbacks with lambdas (#3993) | peterbell10 | 2017-09-11 | 1 | -12/+11 |
| | |||||
* | Revert "Replace ItemCallbacks with lambdas (#3948)" | LogicParrot | 2017-09-02 | 1 | -11/+12 |
| | | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5. | ||||
* | Replace ItemCallbacks with lambdas (#3948) | peterbell10 | 2017-09-01 | 1 | -12/+11 |
| | |||||
* | Changing pickup lifetime and combining semantics, making these adjustable in the lua api. (#3843) | Lane Kolbly | 2017-07-12 | 1 | -5/+11 |
| | |||||
* | Avoid pickups to sink into blocks and disappear (#3739) | Pablo Beltrán | 2017-06-04 | 1 | -2/+8 |
| | | | | * Avoid pickups to sink into blocks and disappear | ||||
* | Updated sounds and effect IDs (#3422) | mathiascode | 2017-02-15 | 1 | -1/+1 |
| | |||||
* | Initial support for the 1.11 protocol. | Mattes D | 2016-12-16 | 1 | -1/+1 |
| | |||||
* | Spectators added (#2852) | bibo38 | 2016-10-12 | 1 | -0/+6 |
| | |||||
* | Entities now bail out of ticks if destroyed (#3363) | LogicParrot | 2016-09-03 | 1 | -0/+5 |
| | |||||
* | Fix issues below y = 0 | LogicParrot | 2016-04-18 | 1 | -6/+0 |
| | |||||
* | Proper entity destruction in non-ticking chunks | LogicParrot | 2016-02-19 | 1 | -2/+4 |
| | |||||
* | Bulk clearing of whitespace | LogicParrot | 2016-02-05 | 1 | -4/+4 |
| | |||||
* | Merge branch 'master' into PreventNewWarnings | tycho | 2015-05-28 | 1 | -0/+1 |
|\ | | | | | | | | | Conflicts: src/Inventory.cpp | ||||
| * | Fixes #2052 | Tiger Wang | 2015-05-18 | 1 | -0/+1 |
| | | |||||
* | | Made -Weverything an error. | tycho | 2015-05-24 | 1 | -3/+3 |
|/ | |||||
* | Changed air drag for pickups | DevToaster | 2015-03-31 | 1 | -1/+1 |
| | |||||
* | Modified physics for more vanilla-like behavior | DevToaster | 2015-03-31 | 1 | -1/+2 |
| | |||||
* | Converted cPickupEntity to std::chrono | Tycho | 2015-01-16 | 1 | -9/+9 |
| | |||||
* | Initial convertion of a_Dt to std::chrono | Tycho | 2015-01-11 | 1 | -3/+3 |
| | | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay | ||||
* | Functions in cPluginManager get references instead of pointers. | Mattes D | 2014-10-15 | 1 | -9/+7 |
| | |||||
* | Pickups combine only within one chunk. | madmaxoft | 2014-09-01 | 1 | -2/+6 |
| | | | | This greatly improves performance of the tick thread. | ||||
* | Fixed tabs used for alignment. | madmaxoft | 2014-07-17 | 1 | -1/+1 |
| | |||||
* | More trailing whitespace fixes. | madmaxoft | 2014-07-17 | 1 | -1/+1 |
| | |||||
* | Normalized comments. | madmaxoft | 2014-07-17 | 1 | -6/+6 |
| | | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign. | ||||
* | Changed BroadcastSoundEffect function to take floating pos. | Howaner | 2014-07-13 | 1 | -1/+1 |
| | |||||
* | Fixed arrow collection animation | Tiger Wang | 2014-07-09 | 1 | -1/+1 |
| | | | | * Fixed piston extension non-solidness | ||||
* | Merged branch 'howaner/Pickups'. | Mattes D | 2014-06-26 | 1 | -6/+27 |
|\ | |||||
| * | Fixed a comment and changed CombineCount to short. | Howaner | 2014-06-26 | 1 | -2/+2 |
| | | |||||
| * | Optimize combining. | Howaner | 2014-06-24 | 1 | -3/+3 |
| | | |||||
| * | Better combining. | Howaner | 2014-06-24 | 1 | -3/+20 |
| | | |||||
| * | Fix pickup combining over the maximum stack size. | Howaner | 2014-06-24 | 1 | -4/+8 |
|/ | |||||
* | cEntity::Killed(cEntity *) Handler; Achievement triggers; cPlayer::AwardAchievement() | andrew | 2014-05-12 | 1 | -0/+10 |
| | |||||
* | Entities handle chunks properly again | Tiger Wang | 2014-04-12 | 1 | -32/+31 |
| | | | | | * Entities properly handle chunks * Changed EntityStatus enums to be less shouty | ||||
* | Add ExpOrb saving. | Howaner | 2014-03-15 | 1 | -1/+1 |
| | |||||
* | Fixed most of the reordering warnings | Tycho | 2014-02-05 | 1 | -2/+2 |
| | |||||
* | Implemented pickup combining | Tiger Wang | 2014-01-25 | 1 | -0/+55 |
| | | | | | * Fixes FS393 * Part of #131 | ||||
* | Miscellaneous improvements | Tiger Wang | 2014-01-24 | 1 | -10/+4 |
| | |||||
* | Moved bindings-related to a Bindings subfolder. | madmaxoft | 2013-12-08 | 1 | -1/+1 |
| | | | | Ref.: #407 | ||||
* | Moved source to src | Alexander Harkness | 2013-11-24 | 1 | -0/+166 |