Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Enable some more clang-tidy linter checks (#4738) | peterbell10 | 2020-05-15 | 1 | -8/+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 | ||||
* | Using Super. | Mattes D | 2020-04-16 | 1 | -2/+2 |
| | |||||
* | Moved growing from cWorld / cChunk to cBlockHandler descendants. | Mattes D | 2019-10-28 | 1 | -18/+18 |
| | |||||
* | Refactored more of Entities and BlockEntities to use Vector3. (#4403) | Mattes D | 2019-09-29 | 1 | -6/+6 |
| | |||||
* | Add a formatting function for Vector3 (#4282) | peterbell10 | 2018-09-24 | 1 | -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 | ||||
* | 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 | ||||
* | Prefer static_cast to reinterpret_cast (#4223) | peterbell10 | 2018-05-02 | 1 | -1/+1 |
| | | | | | | | * Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there. | ||||
* | Fixed 2 small warnings (#4055) | Bond-009 | 2017-10-02 | 1 | -1/+1 |
| | |||||
* | BroadcastBlockBreakAnimation and BroadcastBlockEntity use vectors (#4038) | Bond-009 | 2017-09-25 | 1 | -1/+1 |
| | |||||
* | Removed UTF-8 BOM (#4033) | Lukas Pioch | 2017-09-19 | 1 | -1/+1 |
| | |||||
* | Replace ItemCallbacks with lambdas (#3993) | peterbell10 | 2017-09-11 | 1 | -28/+13 |
| | |||||
* | Revert "Replace ItemCallbacks with lambdas (#3948)" | LogicParrot | 2017-09-02 | 1 | -13/+28 |
| | | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5. | ||||
* | Replace ItemCallbacks with lambdas (#3948) | peterbell10 | 2017-09-01 | 1 | -28/+13 |
| | |||||
* | Changed entity ownership model to use smart pointers | Tiger Wang | 2017-08-07 | 1 | -2/+2 |
| | |||||
* | BlockEntities: Support cloning self. | Mattes D | 2017-06-16 | 1 | -5/+19 |
| | |||||
* | FastRandom rewrite (#3754) | peterbell10 | 2017-06-13 | 1 | -6/+6 |
| | |||||
* | Removed ClientHandle.h dependencies from common headers. | Mattes D | 2016-11-18 | 1 | -0/+1 |
| | |||||
* | allow use failures to propagate from the entity/block to the player | Gargaj | 2015-12-13 | 1 | -2/+4 |
| | |||||
* | Add enum for Sound and Particle Effects | Dave Tucker | 2015-11-24 | 1 | -1/+1 |
| | | | | | | Fixes #2603 Signed-off-by: Dave Tucker <dave@dtucker.co.uk> | ||||
* | Fix comments | tycho | 2015-05-28 | 1 | -1/+2 |
| | |||||
* | Made -Weverything an error. | tycho | 2015-05-24 | 1 | -4/+9 |
| | |||||
* | Make -Werror disabling file only | tycho | 2015-05-19 | 1 | -2/+2 |
| | | | | Ad fix a load of warnings | ||||
* | Changed cEntity::m_UniqueID to UInt32. | Mattes D | 2015-03-21 | 1 | -1/+1 |
| | |||||
* | Initial convertion of a_Dt to std::chrono | Tycho | 2015-01-11 | 1 | -1/+1 |
| | | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay | ||||
* | NULL -> nullptr | Tiger Wang | 2014-12-17 | 1 | -2/+2 |
| | |||||
* | MobSpawner fixes. | Howaner | 2014-12-01 | 1 | -2/+2 |
| | |||||
* | Many api fixes, add vanilla names to mob type -> string functions and mob spawner fixes. | Howaner | 2014-11-29 | 1 | -46/+1 |
| | |||||
* | Finished mob spawner implementation. | Howaner | 2014-11-18 | 1 | -29/+4 |
| | |||||
* | Fixed compile errors. | Howaner | 2014-09-27 | 1 | -38/+38 |
| | |||||
* | Implemented mob spawner. | Howaner | 2014-09-19 | 1 | -21/+289 |
| | |||||
* | Created MobSpawnerEntity class. | Howaner | 2014-09-17 | 1 | -0/+92 |