summaryrefslogtreecommitdiffstats
path: root/src/BoundingBox.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-05-15Enable some more clang-tidy linter checks (#4738)peterbell101-5/+1
* Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
2019-08-08cBoundingBox: Fix tolua warning (#4361)peterbell101-21/+0
tolua was warning about no support for `operator =`. Ref: #4360
2017-08-21Fully implemented leashes (#3798)Pablo Beltrán1-0/+10
2017-08-17Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly1-10/+10
2017-08-02Removed double includes (#3885)Lukas Pioch1-1/+0
2017-07-28Check for intersection between placed blocks and entities. (#3850)Lane Kolbly1-2/+13
* Check for intersection between placed blocks and entities. + Implemented GetPlacementCollisionBox, to permit custom placement collision boxes for blocks. * Factored block-entity placement checking into another function in cPlayer. - Removed vector min/max functions * Use GetWorld to get the world in DoesPlacingBlocksIntersectEntity. + Added block height checks, allow different cEntity subclasses to decide whether they will prevent block placement.
2016-06-18SelfTests: Moved BoundingBox test to a separate project.Mattes D1-66/+0
2016-06-05Bindings: Fixed cBoundingBox API.Mattes D1-2/+2
2016-01-22Improved tamed wolf pack cooperation and projectile reactionsLogicParrot1-5/+15
2015-06-11SelfTests are registered and executed after logging framework init.Mattes D1-4/+9
Fixes #2228.
2014-07-19Fixed style: spaces after commas.madmaxoft1-1/+1
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann1-1/+1
2014-03-14Fixed a couple of missing defsTycho1-1/+1
2014-02-16Fixed cBoundingBox self-test code-style.madmaxoft1-10/+10
Also made the class name unique and the global variable static, to avoid linkage problems with other self-tests
2014-02-05Change Output to stderrworktycho1-4/+3
2014-02-05Modified automatic test for boundingBoxTycho1-7/+26
2014-02-04Improved Type safety of eBlockFaceTycho1-3/+3
May Fix #640
2013-12-20Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft1-1/+1
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-12Bundled fixes [SEE DESC]Tiger Wang1-2/+2
* BoundingBox now returns FACE_NONE + Arrows can be picked up * Arrows dug up resume physics simulations * Added sound effects for bows, lava to stone, and arrows * Fixed SoundParticleEffect on <1.7 protocols
2013-09-02cBoundingBox: Only forward collisions are calculated.madmaxoft1-6/+14
2013-09-01Made cBoundingBox class inclusive in both coord edges.madmaxoft1-9/+51
Also added (a disabled) self-test to cBoundingBox.
2013-09-01Fixed an error in cBoundingBox's line-collision algorithm.madmaxoft1-14/+6
2013-09-01Added line collision calculation to cBoundingBox.madmaxoft1-10/+104
2013-09-01Added the cBoundingBox class.madmaxoft1-0/+195