Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2020-08-01 | Replaced cpp14::make_unique<> with std::make_unique<>. | Mattes D | 1 | -1/+1 | |
2020-04-03 | Manage block entity lifetime with unique_ptr (#4080) | peterbell10 | 1 | -2/+1 | |
2019-02-20 | Limit the size of cListAllocationPool's free list | peterbell10 | 1 | -1/+1 | |
2018-09-24 | Add a formatting function for Vector3 (#4282) | peterbell10 | 1 | -4/+4 | |
* Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG | |||||
2018-07-26 | CheckBasicStyle: Check number of empty lines between functions (#4267) | peterbell10 | 1 | -1/+0 | |
Add check for number of empty lines between functions and fix the corresponding failures | |||||
2018-07-23 | Optimise chunk set (#4260) | peterbell10 | 1 | -23/+33 | |
Closes #1244 Initially I was just going to add the cChunkData to cSetChunkData but profiling revealed that the copying wasn't even the biggest slowdown. Much more time was being spent in cChunk::CreateBlockEntities and cChunk::WakeUpSimulators than was in memcpy so I've made those significantly faster as well. Optimisations performed: * cSetChunkData now stores blocks in a cChunkData object * cChunkData objects can now perform moves even if they are using different pools * cChunk::CreateBlockEntities now iterates in the correct order and only over present chunk sections * Similarly for cChunk::WakeUpSimulators * cSetChunkData::CalculateHeightMap now shortcuts to the highest present chunk section before checking blocks directly | |||||
2017-08-07 | Changed entity ownership model to use smart pointers | Tiger Wang | 1 | -0/+1 | |
2017-05-22 | Store cChunk::m_BlockEntities in a map (#3717) | peterbell10 | 1 | -10/+8 | |
* Store block entities in a map from block index * Cleanup ForEachBlockEntity * Cleanup DoWithBlockEntityAt | |||||
2016-02-05 | Bulk clearing of whitespace | LogicParrot | 1 | -4/+4 | |
2015-05-08 | Tracer::signum function now returns int | Woazboat | 1 | -1/+1 | |
convert c style casts to c++ static casts Changed fabs() to std::abs() | |||||
2015-05-05 | Revert "Small code cleanup" | worktycho | 1 | -2/+5 | |
2015-04-28 | convert c style casts to c++ static casts | Woazboat | 1 | -1/+1 | |
2015-04-27 | Removed redundant temp iterator. std::list.erase already returns | Woazboat | 1 | -4/+1 | |
iterator to next valid list element | |||||
2015-04-27 | cSetChunkData constructor explicitly requires std::move() instead of | Woazboat | 1 | -4/+4 | |
unsafely stealing data | |||||
2015-01-17 | Fixed CppCheck: (performance) Prefer prefix ++/-- operators for non-primitive types. | Kirill Kirilenko | 1 | -1/+1 | |
2014-10-23 | En masse NULL -> nullptr replace | Tiger Wang | 1 | -5/+5 | |
2014-10-20 | En masse NULL -> nullptr replace | Tiger Wang | 1 | -5/+5 | |
2014-09-05 | Fixed loading empty chunks. | Mattes D | 1 | -1/+0 | |
Reported on the Dropper map in #1307. | |||||
2014-08-31 | Delete the entity before removing from the list | worktycho | 1 | -1/+1 | |
Old code was calling dereference on invalid iterator | |||||
2014-08-29 | Rewritten block entity loading. | Mattes D | 1 | -0/+33 | |
Block entities are now loaded based on the blocktype at the coords they specify; before loading, their type ("id" NBT tag) is checked. The chunk now expects that all block entities given to it via cChunk::SetAllData() have their valid blocktype; asserts if they don't. Fixes #1354. | |||||
2014-08-21 | cSetChunkData: Added missing initializers. | Mattes D | 1 | -0/+3 | |
2014-07-24 | Added a queue for setting chunk data. | madmaxoft | 1 | -0/+115 | |
Fixes #1196. |