Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Pulled the BlockID and BlockInfo headers from Globals.h. (#4591) | Mattes D | 2020-04-03 | 1 | -0/+1 |
| | | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values | ||||
* | CheckBasicStyle: Check number of empty lines between functions (#4267) | peterbell10 | 2018-07-26 | 1 | -0/+2 |
| | | | | Add check for number of empty lines between functions and fix the corresponding failures | ||||
* | Optimise chunk set (#4260) | peterbell10 | 2018-07-23 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | 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 | ||||
* | cChunk and cChunkData: Use vectors for block get and set functions (#4172) | peterbell10 | 2018-02-04 | 1 | -71/+69 |
| | | | | | * cChunkData: Change interface to use Vector3i * cChunk: Add Vector3i overloads for bounded block get and set functions. | ||||
* | Implement anvil chunk sparsing | peterbell10 | 2017-08-26 | 1 | -0/+123 |
| | |||||
* | Implement protocol level chunk sparsing (#3864) | peterbell10 | 2017-08-21 | 1 | -85/+91 |
| | |||||
* | Out of world blocks are now always considered air blocks | LogicParrot | 2016-04-23 | 1 | -4/+9 |
| | |||||
* | Bulk clearing of whitespace | LogicParrot | 2016-02-05 | 1 | -17/+17 |
| | |||||
* | Silenced and fixed many warning messages across multiple files. | Samuel Barney | 2015-07-29 | 1 | -15/+15 |
| | |||||
* | Fixed Bug in cChunkData. | worktycho | 2015-03-10 | 1 | -1/+1 |
| | | | FIxed a bug where if the index was not aligned with the sections empty sections would not be set in the correct location. | ||||
* | En masse NULL -> nullptr replace | Tiger Wang | 2014-10-23 | 1 | -26/+26 |
| | |||||
* | Merge branch 'master' of github.com:mc-server/MCServer | Tycho | 2014-06-16 | 1 | -11/+14 |
| | |||||
* | Further improvements on redstone speed | Tiger Wang | 2014-06-07 | 1 | -1/+1 |
| | | | | | | | Based on suggestions of @worktycho * Repeaters now walk their data structure only when needed * Fixed a bug with cChunkData returning an incorrect value for whether a meta had changed | ||||
* | Fixed #1057 | Tiger Wang | 2014-06-04 | 1 | -1/+1 |
| | |||||
* | removed NULL assignment to const value | Tycho | 2014-05-30 | 1 | -1/+0 |
| | |||||
* | removed unneded addressof | Tycho | 2014-05-30 | 1 | -7/+11 |
| | |||||
* | Fixed cChunkData nibble copying. | madmaxoft | 2014-05-30 | 1 | -9/+9 |
| | |||||
* | Fixed sign comparison. | madmaxoft | 2014-05-30 | 1 | -1/+1 |
| | |||||
* | Fixed wrong copy sizes in cChunkData. | madmaxoft | 2014-05-30 | 1 | -10/+10 |
| | |||||
* | Attempt at fixing an unresolved symbol in gcc / clang. | madmaxoft | 2014-05-29 | 1 | -1/+1 |
| | |||||
* | Fix bug when a_Idx is not a multiple of SectionBLockCount | worktycho | 2014-05-29 | 1 | -1/+1 |
| | |||||
* | Derp | worktycho | 2014-05-29 | 1 | -1/+1 |
| | |||||
* | fix underflow | worktycho | 2014-05-29 | 1 | -1/+1 |
| | | | Wish c++ could specify saturating unsigned underflow. | ||||
* | Fixed wrong block sizes for copying / setting. | madmaxoft | 2014-05-29 | 1 | -40/+35 |
| | |||||
* | Fixed Wrong types in nibble sizeofs | worktycho | 2014-05-29 | 1 | -3/+3 |
| | |||||
* | Fixed overflow bug | worktycho | 2014-05-29 | 1 | -6/+9 |
| | |||||
* | Added comments, reformatted code. | madmaxoft | 2014-05-29 | 1 | -249/+142 |
| | |||||
* | Fixed forgotten changes. | madmaxoft | 2014-05-29 | 1 | -3/+3 |
| | |||||
* | cChunkData: Normalized code style. | madmaxoft | 2014-05-28 | 1 | -78/+90 |
| | |||||
* | Fixed cChunkData formatting. | madmaxoft | 2014-05-28 | 1 | -28/+90 |
| | |||||
* | Fixed test globals to work with precompiled headers | Tycho | 2014-05-27 | 1 | -4/+0 |
| | |||||
* | inject TestGlobals.h correctly | Tycho | 2014-05-24 | 1 | -3/+7 |
| | |||||
* | Moved accessors to cpp file | Tycho | 2014-05-24 | 1 | -1/+229 |
| | |||||
* | Implemented style changes | Tycho | 2014-05-24 | 1 | -33/+28 |
| | |||||
* | Fixed if spaces | Tycho | 2014-05-21 | 1 | -6/+7 |
| | |||||
* | Fixed reversed comparisons to null | Tycho | 2014-05-21 | 1 | -9/+9 |
| | |||||
* | Added space to ChunkData.cpp | Tycho | 2014-05-21 | 1 | -20/+100 |
| | |||||
* | Fixed stylistic issues | Tycho | 2014-05-21 | 1 | -9/+9 |
| | |||||
* | Renamed cChunkBuffer to cChunkData | Tycho | 2014-05-21 | 1 | -0/+320 |