summaryrefslogtreecommitdiffstats
path: root/src/Generating/Caves.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Removed all Printf-family functions from StringUtils.Mattes D2023-05-161-2/+2
| | | | | Replaced them with fmt::format calls, including changes to the format strings. Also changed the format strings to use FMT_STRING, so that the format is checked compile-time against the arguments. Also fixed code-style violations already present in the code.
* Chest, weather, crash, and miscellaneous fixes (#5215)Tiger Wang2021-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Alpha-sort cChestEntity * Chests: use SendUpdateBlockEntity * Pathfinder: fix out of range Y * 1.13: correct weather packet ID * Chests: fix neighbour scanner + Add OnAddToWorld and overload to scan neighbours there, instead of in the constructor/OnUse. This fixes hoppers accessing newly loaded double chests and seeing a null m_Neighbour, thus thinking its a single chest. * Fix typo in cross coords computation. * Simplify hopper logic. * Block entities: ASSERT that type is correct If you match the block type first before calling DoWithBlockEntity, the corresponding block entity must either be empty or correspond to the block type. * Chunk: fix some forgotten PendingSendBE cleanup + Add cleanup in SetAllData, WriteBlockArea - Remove RemoveBlockEntity (used once), HasBlockEntity (not used) * Replace MakeIndex with MakeIndexNoCheck * Remove extraneous MarkDirty in hopper & chests
* Some emplace_back replacements (#5149)12xx122021-03-071-8/+8
| | | * replace push_back with emplace_back when a new object was created in the function call
* Fix debug macro situation (#5114)Tiger Wang2021-01-261-6/+6
| | | Use the standard NDEBUG.
* Using Super.Mattes D2020-04-161-3/+4
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-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)peterbell102018-07-261-2/+0
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Clang 5.0 fixesLukas Pioch2017-05-211-1/+1
| | | | | - Added override keyword - Removed inherited member variables
* Unified the doxy-comment format.Mattes D2015-07-311-10/+10
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-8/+8
|
* CheckBasicStyle: checks spaces around * and &.Mattes D2015-05-091-1/+1
|
* More style checking.Mattes D2015-05-091-2/+2
| | | | Spaces around some operators are checked.
* WormNestCaves occasionally generates sandstone around the caveSTRWarrior2014-12-131-3/+22
| | | | Only when the block around the cave is sand.
* BasicStyle: Added missing braces to control statements.Mattes D2014-12-051-2/+8
|
* Made it compile with clangChris Darnell2014-09-221-1/+1
|
* Added initializers for class members.Mattes D2014-08-211-0/+3
| | | | As reported by Coverity, these weren't initialized.
* Added cBlockInfo::CanBeTerraformed and made finishers use itSTRWarrior2014-07-291-22/+2
| | | | I might have forgotten some of them though
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-3/+3
|
* Fixed style: spaces after commas.madmaxoft2014-07-191-1/+1
|
* Fixed tabs used for alignment.madmaxoft2014-07-171-6/+6
|
* Normalized comments.madmaxoft2014-07-171-5/+5
| | | | | 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' of github.com:mc-server/MCServerTycho2014-06-161-5/+5
|
* Removed an unused macro.Mattes D2014-05-091-7/+0
|
* cWormNestCaves rewritten using cGridStructGen.Mattes D2014-05-091-208/+22
| | | | Ref.: #987.
* Fixed MSVC 64-bit build warnings.Mattes D2014-05-081-2/+8
|
* Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2014-04-181-16/+20
|
* Unified StructureGens and FinisherGens.madmaxoft2014-03-011-3/+3
| | | | Now they are all Finishers. Fixes #398.
* WormNestCaves now remove soul sand.STRWarrior2014-01-081-0/+1
|
* Fixed a few MSVC warnings.madmaxoft2014-01-071-4/+4
|
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-53/+51
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+970