summaryrefslogtreecommitdiffstats
path: root/src/Entities/TNTEntity.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update entity sizesTiger Wang2021-04-121-1/+1
|
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-2/+6
| | | | | | | | | | | | | | | * Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Use tracing for explosions (#4845)Tiger Wang2020-09-121-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | * TNT: Implement tracing algorithm + Add intensity tracing * Fix iterating over all players to SendExplosion, even those not in range * Implemented TNT entity interaction * Fixed misaligned destruction tracing * Finalise TNT algorithm - Remove BlockArea and just use chunks Using SetBlock makes it so that we can update everything properly, and does appear to be faster. * BlockInfo learns about explosion attentuation * Rename Explodinator parameters * TNT: pull block destruction into common function Co-authored-by: Alexander Harkness <me@bearbin.net>
* Unify entity spawn packet sendingTiger Wang2020-05-011-2/+2
|
* Delet SpawnObject paramsTiger Wang2020-04-201-1/+1
| | | | | | * Fix #4679 awkward...
* Using Super.Mattes D2020-04-161-2/+2
|
* TNT position fixes (#4519)Mat2020-03-221-1/+1
| | | | | | | | | | | | | | | | | | | * TNT position fixes * Don't add offset to explosion spawn coords * Don't make other entities push TNT * Correct initial TNT speed * Fix typo * Improvements * Revert unwanted change * Style fixes * Update format
* Change outdated air drag value for TNTMat2020-03-191-1/+1
|
* Stabilise MoveToWorld (#4004)Mat2020-03-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 D2019-09-291-1/+1
|
* Add a formatting function for Vector3 (#4282)peterbell102018-09-241-1/+1
| | | | | | | | | | * Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-0/+1
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Changed some int parameters to vector parameters (#3937)Bond-0092017-09-071-13/+1
|
* Entities now bail out of ticks if destroyed (#3363)LogicParrot2016-09-031-0/+5
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-1/+1
|
* Changed air drag units to 'interpolated ticks' per secondDevToaster2015-03-311-1/+1
|
* Modified physics for more vanilla-like behaviorDevToaster2015-03-311-0/+4
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* Fixed style: spaces after commas.madmaxoft2014-07-191-1/+1
|
* Some change to Entity.cppTiger Wang2014-04-231-2/+0
| | | | * Added comments to BroadcastMovementUpdate() and the collision tracer
* Change TNT Fuse to ticksHowaner2014-03-081-6/+6
|
* Add TNT Save/Load and add Netbeans projects to .gitignoreHowaner2014-03-081-10/+17
|
* Moved source to srcAlexander Harkness2013-11-241-0/+62