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 | ||||
* | TNT position fixes (#4519) | Mat | 2020-03-22 | 1 | -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 | ||||
* | Moved growing from cWorld / cChunk to cBlockHandler descendants. | Mattes D | 2019-10-28 | 1 | -69/+51 |
| | |||||
* | Refactored block-to-pickup conversion. (#4417) | Mattes D | 2019-10-16 | 1 | -6/+6 |
| | |||||
* | Add a formatting function for Vector3 (#4282) | peterbell10 | 2018-09-24 | 1 | -13/+11 |
| | | | | | | | | | | * Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG | ||||
* | Force all headers other than "Globals.h" to be included with relative paths (#4269) | peterbell10 | 2018-08-29 | 1 | -1/+1 |
| | | | | | | | Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work. | ||||
* | Add the fmt library (#4065) | peterbell10 | 2018-01-03 | 1 | -8/+9 |
| | | | | | | | * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style. | ||||
* | improve rain simulation (#4017) | Alexander Harkness | 2017-12-26 | 1 | -22/+45 |
| | | | | | | | | | | | * Uses vanilla logic to decide which blocks rain falls through. * Rain falls infinitely above the world, and stops at y=0. * Entities will now be extinguished if they are under rain-blocking blocks, and fire will now be extinguished by rain similarly. * Create IsWeatherWetAtXYZ to identify wetness at a particular location. * Use new code for enderman rain detection. * Fixes issue #916 * Disable warnings for global constructors in the fire simulator. | ||||
* | Changed some int parameters to vector parameters (#3937) | Bond-009 | 2017-09-07 | 1 | -6/+6 |
| | |||||
* | Changed int parameters to vector parameters in cCuboid and simulators (#3874) | Lane Kolbly | 2017-08-17 | 1 | -7/+7 |
| | |||||
* | Remove double includes part 2 (#3890) | peterbell10 | 2017-08-03 | 1 | -1/+0 |
| | |||||
* | Increment fire block iterator | Tiger Wang | 2017-07-21 | 1 | -0/+1 |
| | | | | * Resolves potential deadlock | ||||
* | FastRandom rewrite (#3754) | peterbell10 | 2017-06-13 | 1 | -3/+3 |
| | |||||
* | Bulk clearing of whitespace | LogicParrot | 2016-02-05 | 1 | -11/+11 |
| | |||||
* | Silenced and fixed many warning messages across multiple files. | Samuel Barney | 2015-07-29 | 1 | -5/+5 |
| | |||||
* | Improved maps | Tiger Wang | 2015-07-14 | 1 | -2/+2 |
| | |||||
* | Correct world height validations. | Tommy Santerre | 2015-03-20 | 1 | -1/+1 |
| | | | | | Unify the way we test block above the current one (Height - 1 instead of a_RelY + 1). Allow generation of world of flat height = 255 | ||||
* | Fixed type conversion warnings. | Mattes D | 2015-01-18 | 1 | -1/+1 |
| | |||||
* | Initial convertion of a_Dt to std::chrono | Tycho | 2015-01-11 | 1 | -2/+2 |
| | | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay | ||||
* | En masse NULL -> nullptr replace | Tiger Wang | 2014-10-23 | 1 | -2/+2 |
| | |||||
* | Functions in cPluginManager get references instead of pointers. | Mattes D | 2014-10-15 | 1 | -2/+2 |
| | |||||
* | Added blocks to the fire simulator | Masy98 | 2014-09-11 | 1 | -0/+11 |
| | |||||
* | Added missing HOOK_BLOCK_SPREAD call. | Howaner | 2014-08-01 | 1 | -6/+14 |
| | |||||
* | Style: Normalized spaces after if, for and while. | madmaxoft | 2014-07-21 | 1 | -1/+1 |
| | |||||
* | Fixed style: spaces after commas. | madmaxoft | 2014-07-19 | 1 | -1/+1 |
| | |||||
* | Basic style fixes. | madmaxoft | 2014-07-17 | 1 | -2/+2 |
| | |||||
* | Normalized comments. | madmaxoft | 2014-07-17 | 1 | -1/+1 |
| | | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign. | ||||
* | Merge branch 'master' into chunksparsing/structs | Tycho | 2014-04-27 | 1 | -1/+1 |
|\ | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Chunk.h | ||||
| * | Did some static analysis, fixed some bugs and optimized a lot of code | jfhumann | 2014-04-18 | 1 | -1/+1 |
| | | |||||
* | | Implemented Chunk Sparsing with segments | Tycho | 2014-04-26 | 1 | -4/+6 |
|/ | |||||
* | Fixed compilation after last PR merge. | madmaxoft | 2014-03-28 | 1 | -1/+1 |
| | |||||
* | Change SpreadSource prefix to ss | Howaner | 2014-03-27 | 1 | -1/+1 |
| | |||||
* | Add SpreadSource | Howaner | 2014-03-27 | 1 | -1/+1 |
| | |||||
* | Add HOOK_BLOCK_SPREAD | Howaner | 2014-03-27 | 1 | -3/+11 |
| | |||||
* | Fixed compile | Tiger Wang | 2014-03-10 | 1 | -1/+2 |
| | |||||
* | Removed uneeded meta obtain | Tiger Wang | 2014-03-09 | 1 | -3/+1 |
| | |||||
* | TNT explodes when consumed by fire | Tiger Wang | 2014-03-09 | 1 | -6/+19 |
| | | | | Fixed FS#406 | ||||
* | Merge pull request #738 from xdot/master | Mattes D | 2014-03-02 | 1 | -1/+1 |
|\ | | | | | Refactored global block property arrays | ||||
| * | g_BlockXXX => cBlockInfo::XXX | andrew | 2014-03-01 | 1 | -1/+1 |
| | | |||||
* | | Fix Double Slabs, fix Slab Meta and add more things to burnable | Howaner | 2014-02-28 | 1 | -0/+13 |
|/ | |||||
* | Add Hay Bale to Burnable | Howaner | 2014-02-20 | 1 | -0/+1 |
| | |||||
* | Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT). | madmaxoft | 2013-12-20 | 1 | -3/+3 |
| | |||||
* | Merged if statements. | Samuel Barney | 2013-12-05 | 1 | -7/+1 |
| | |||||
* | Made suggested changes | Samuel Barney | 2013-12-04 | 1 | -5/+10 |
| | |||||
* | Fire no longer goes out when on top of nether rack | Samuel Barney | 2013-12-02 | 1 | -1/+6 |
| | |||||
* | Moved source to src | Alexander Harkness | 2013-11-24 | 1 | -0/+374 |