Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2020-05-15 | Enable some more clang-tidy linter checks (#4738) | peterbell10 | 1 | -1/+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 | |||||
2020-04-03 | Pulled the BlockID and BlockInfo headers from Globals.h. (#4591) | Mattes D | 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 | |||||
2019-09-06 | Separated chunk generator from world / plugin interfaces. | Mattes D | 1 | -1/+0 | |
The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests. | |||||
2018-09-24 | Add a formatting function for Vector3 (#4282) | peterbell10 | 1 | -2/+2 | |
* Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG | |||||
2018-05-03 | Generate cacti and sugarcane with different heights (#4137) | Cocosushi6 | 1 | -25/+80 | |
When generating foliage, create cacti with height in the interval [1; MaxCactusHeight] and sugarcane with height in [1; MaxSugarcaneHeight] (with MaxCactusHeight and MaxSugarcaneHeight declared in world.ini) Fixes #4135 | |||||
2018-04-11 | Removed duplicate code (#4198) | Bond-009 | 1 | -80/+7 | |
Should also fix dogs not despawning | |||||
2018-03-20 | Wolves only spawn in taiga biomes (#4197) | Bond-009 | 1 | -2/+1 | |
Ref: https://minecraft.gamepedia.com/Wolf#Spawning | |||||
2017-09-18 | cFinishGenPreSimulator: Preserve sand meta (#4025) | peterbell10 | 1 | -9/+7 | |
Fixes #1516. | |||||
2017-09-14 | Fix switch warnings (#4013) | peterbell10 | 1 | -2/+4 | |
* Fix switch warnings * Fix a variety of -Wswitch and -Wswitch-enum warnings * Remove unneeded -Wno-error flags * Reorganise some eMonsterType switches * Alpha sort eMonsterType cases in WriteMobMetadata and in cNBTChunkSerializer::AddMonsterEntity * List all mob types in protocol 1.12 and NBTChunkSerializer * cStructGenTrees::GetNumTrees: remove switch default * cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type | |||||
2017-08-07 | Changed entity ownership model to use smart pointers | Tiger Wang | 1 | -2/+2 | |
2017-08-03 | Remove double includes part 2 (#3890) | peterbell10 | 1 | -1/+0 | |
2017-07-07 | BigFlower fixes (#3826) | peterbell10 | 1 | -2/+2 | |
* BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision | |||||
2017-06-19 | Generated tall flowers have flower type meta in both blocks | peterbell10 | 1 | -2/+2 | |
2017-02-24 | Finishers now update the heightmap for tall flowers. (#3545) | Jacob | 1 | -0/+7 | |
2016-09-27 | Use cChunkDef::Height for Y coord comparison where applicable. | Moritz Borcherding | 1 | -2/+2 | |
2016-08-14 | Implemented OverworldClumpFlowers | NiLSPACE | 1 | -0/+204 | |
2016-02-05 | Bulk clearing of whitespace | LogicParrot | 1 | -4/+4 | |
2015-12-09 | Fixed opposite condition in OreNests finisher. | Mattes D | 1 | -2/+2 | |
2015-11-27 | Normalized OrePockets generator config names. | Mattes D | 1 | -2/+2 | |
All INI values use AllInitialCapsStyle, no underscores. | |||||
2015-11-25 | OrePockets finisher is now configurable. | Mattes D | 1 | -19/+105 | |
2015-11-25 | Added OrePockets and DirtPockets finish gens. | Mattes D | 1 | -0/+367 | |
2015-07-15 | Fixed tall grass trying to be placed in cold biomes. | Samuel Barney | 1 | -1/+7 | |
2015-05-30 | Fixed minor cast warning | tycho | 1 | -1/+1 | |
2015-05-30 | Fix FreeBSD/clang errors caused by -Werror | linnemannr | 1 | -1/+5 | |
With FreeBSD/clang, -Werror combined with the configured warning flags yields some fatal errors, specifically related to signed conversion, 64 to 32 bit conversion, and tautological compares. CONTRIBUTORS Add myself to the contributor list src/Generating/FinishGen.cpp In cFinishGenPassiveMobs::GetRandomMob(), change the type of RandMob from size_t to the difference_type of the ListOfSpawnables iterator MobIter. Using size_t triggers a 64 bit to 32 bit conversion if the difference_type of the iterator class is 64 bit Also explicitly cast the noise expression to unsigned long so we don't get a signed conversion warning from the modulo against ListOfSpawnables.size() src/OSSupport/StackTrace.cpp FreeBSD 10 and above includes a non glibc implementation of benchmark() for which size_t, not int, is the return type. To account for this and prevent a signed conversion warning, abstract the type for numItems with a macro btsize src/StringUtils.h In StringToInteger(), correct a tautological compare warning for unsigned types with the template. If T is unsigned, comparing std::numeric_limits<T>::min() to the unsigned result is always false. That control can enter this branch in an evaluated template with an unsigned type T may also permit a signed number to be parsed and erroneously stripped of its signedness at runtime. To guard against this and avoid the warning in the case that the number parsed from the string is non-positive, return false and don't try to parse if T is unsigned and control enters the non-positive branch | |||||
2015-05-24 | Made -Weverything an error. | tycho | 1 | -7/+7 | |
2015-05-24 | Wolves don't spawn in rivers. | Alexander Harkness | 1 | -1/+1 | |
2015-05-23 | Cows and rabbits no longer spawn over water. | Alexander Harkness | 1 | -1/+1 | |
Fixes #2080 | |||||
2015-05-19 | Fixed a lot of warnings | tycho | 1 | -8/+8 | |
2015-05-18 | Fix the health of animals | Lukas Pioch | 1 | -0/+1 | |
2015-05-09 | More style checking. | Mattes D | 1 | -1/+1 | |
Spaces around some operators are checked. | |||||
2015-04-19 | Fixed style | STRWarrior | 1 | -2/+2 | |
2015-04-19 | Added GlowStone finisher | STRWarrior | 1 | -1/+113 | |
2015-03-20 | Correct world height validations. | Tommy Santerre | 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 | |||||
2015-03-01 | Replaced IntNoiseXX with IntNoiseXXInt | STRWarrior | 1 | -2/+2 | |
2015-02-28 | Made the minimum vine level configurable | STRWarrior | 1 | -1/+1 | |
2015-02-28 | Implemented a vines finisher that creates vines in jungle biomes | STRWarrior | 1 | -0/+94 | |
2015-02-25 | Ice finisher uses GetSnowStartHeight instead of specific biomes | STRWarrior | 1 | -26/+19 | |
2015-02-25 | Snow finisher uses GetSnowStartHeight instead of specific biomes | STRWarrior | 1 | -22/+14 | |
2014-12-07 | Fixed error message in cFinishGenPassiveMobs | STRWarrior | 1 | -1/+1 | |
It would send an error message when trying to spawn mobs in a desert | |||||
2014-12-05 | FinishGenPassiveMobs: Cosmetic changes. | Mattes D | 1 | -23/+22 | |
2014-12-05 | formatting and default spawn percentage | p-mcgowan | 1 | -1/+2 | |
2014-12-05 | reformat | p-mcgowan | 1 | -9/+5 | |
2014-12-05 | restructure, with logic this time | p-mcgowan | 1 | -5/+13 | |
2014-12-05 | restructured random animals, added check for desert (update as per wiki) | p-mcgowan | 1 | -19/+17 | |
2014-12-05 | handle non-vanilla dimensions | p-mcgowan | 1 | -2/+2 | |
2014-12-05 | handle non-vanilla dimensions | p-mcgowan | 1 | -2/+3 | |
2014-12-05 | formatting fixes | p-mcgowan | 1 | -4/+11 | |
2014-12-04 | format blocks and randomizing | p-mcgowan | 1 | -8/+9 | |
2014-12-04 | awful comment fixing, randomizer fix | p-mcgowan | 1 | -11/+24 | |
2014-12-03 | clearing CheckBasicStyle.lua messages | p-mcgowan | 1 | -13/+13 | |
2014-12-03 | class description and doxy-commenting | p-mcgowan | 1 | -3/+3 | |
2014-12-02 | typos and oversights for lua and CI | p-mcgowan | 1 | -1/+5 | |
2014-12-02 | indentation, repeatable random, small corrections | p-mcgowan | 1 | -98/+93 | |
2014-12-02 | fix comments after replacing spaces with tabs | p-mcgowan | 1 | -4/+4 | |
2014-12-02 | animal terrain finisher | p-mcgowan | 1 | -175/+175 | |
2014-12-02 | animal terrain finisher | p-mcgowan | 1 | -0/+212 | |
2014-12-02 | reformat for lua and CI | p-mcgowan | 1 | -5/+8 | |
2014-12-02 | formatting and commenting fixes | p-mcgowan | 1 | -4/+4 | |
2014-12-01 | cacti no longer spawn outside of desert variants | p-mcgowan | 1 | -1/+13 | |
2014-12-01 | Simplefied SoulsandRims | STRWarrior | 1 | -36/+6 | |
Replaced two for loops with a single if | |||||
2014-12-01 | Added better soulsand rims | STRWarrior | 1 | -0/+82 | |
As a finisher called SoulsandRims | |||||
2014-11-30 | Hopefully fixed random build fails | STRWarrior | 1 | -1/+1 | |
2014-11-26 | Merge remote-tracking branch 'origin-master' into c++11 | Tiger Wang | 1 | -1/+1 | |
2014-11-18 | Moved all Noise-related files into a separate folder. | Mattes D | 1 | -1/+0 | |
2014-11-15 | Snow generator: Fixed failure at top of the world. | Mattes D | 1 | -1/+1 | |
2014-11-10 | TallGrassGenerator: Fixed crash when too high | STRWarrior | 1 | -0/+5 | |
2014-10-27 | Another switch. | Alexander Harkness | 1 | -0/+5 | |
2014-10-27 | Fix missing biomes in enum. | Alexander Harkness | 1 | -0/+5 | |
2014-10-23 | Merged IniFile into main MCS sources. | Mattes D | 1 | -1/+1 | |
2014-09-17 | Added first test to show the object can be created | Tycho | 1 | -0/+1 | |
2014-08-10 | Removed an old and outdated comment. | STRWarrior | 1 | -2/+0 | |
2014-07-30 | PreSimulator: Added configurations. | STRWarrior | 1 | -4/+18 | |
You can now choose if it should pregenerate something or not | |||||
2014-07-29 | Fixed comment above cFinishGenSingleTopBlock | STRWarrior | 1 | -1/+1 | |
2014-07-28 | Renamed cFinishGenSingleBiomeSingleTopBlock to cFinishGenSingleTopBlock | STRWarrior | 1 | -8/+13 | |
Now accepts a vector of biomes and a vector of allowed blocks. | |||||
2014-07-27 | NetherClumpGenerator: Fixed generating stuff on halfslabs and fences | STRWarrior | 1 | -1/+1 | |
2014-07-27 | NetherClumpFoliage: Fixed assert | STRWarrior | 1 | -8/+39 | |
2014-07-25 | Tweaks to NetherClumpFoliage | STRWarrior | 1 | -34/+6 | |
Simplefied the way NetherClupFoliage creates the X and Z coordinate. | |||||
2014-07-25 | Speed up the NetherClumpFoliage finisher. | STRWarrior | 1 | -8/+9 | |
Using IntNoiseXX instead of CubicNoiseXX. | |||||
2014-07-23 | Fixed possible crash in the NetherClumpFoliage finisher. | STRWarrior | 1 | -0/+5 | |
2014-07-21 | Style: Normalized to no spaces before closing parenthesis. | madmaxoft | 1 | -4/+4 | |
2014-07-21 | Fixed a missing enter. | STRWarrior | 1 | -0/+1 | |
2014-07-21 | Removed y for-loop. | STRWarrior | 1 | -27/+27 | |
Only the top block now gets long grass. | |||||
2014-07-20 | Changed CubicNoiseXX to IntNoiseXX | STRWarrior | 1 | -27/+36 | |
Added some comments | |||||
2014-07-20 | Renamed cFinishGenFoliage to cFinishGenTallGrass | STRWarrior | 1 | -8/+26 | |
Better grass density Added double tall grass. | |||||
2014-07-20 | Fixed warnings | STRWarrior | 1 | -2/+1 | |
2014-07-20 | First attempt for a new foliage finisher | STRWarrior | 1 | -0/+32 | |
2014-07-18 | Fixed spaces before commas. | madmaxoft | 1 | -2/+2 | |
2014-07-17 | Basic style fixes. | madmaxoft | 1 | -2/+2 | |
2014-07-17 | Normalized comments. | madmaxoft | 1 | -11/+11 | |
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. | |||||
2014-06-04 | Fixed a NetherFinisher bug | Tiger Wang | 1 | -0/+9 | |
2014-03-01 | g_BlockXXX => cBlockInfo::XXX | andrew | 1 | -3/+3 | |
2014-01-18 | Fixed errors. | STRWarrior | 1 | -1/+1 | |
2014-01-18 | Renamed cFinishGenNetherSprinkleFoliage to cFinishGenNetherClumpFoliage. Fixed typo's | STRWarrior | 1 | -6/+6 | |
2014-01-18 | Some tweaks. | STRWarrior | 1 | -5/+18 | |
Everything generates more often. Fire can only spawn on ForeverBurning blocks. | |||||
2014-01-18 | Fixed bug where only brown mushrooms would spawn. | STRWarrior | 1 | -3/+3 | |
2014-01-18 | It now actualy works. | STRWarrior | 1 | -20/+42 | |
2014-01-17 | First attempt at creating a clumb version NetherFinisher. | STRWarrior | 1 | -22/+62 | |
2014-01-10 | Decoupled cChunkGenerator from cWorld and cRoot. | madmaxoft | 1 | -2/+2 | |
Now the chunk generator can be used by other projects without depending on the two hugest structures in MCS. | |||||
2014-01-10 | Added cFinishGenNetherSprinkleFoliage. | STRWarrior | 1 | -0/+45 | |
2014-01-07 | Fixed a few MSVC warnings. | madmaxoft | 1 | -1/+1 | |
2013-12-20 | Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT). | madmaxoft | 1 | -3/+3 | |
2013-11-24 | Moved source to src | Alexander Harkness | 1 | -0/+0 | |
2013-06-22 | Added the End height and composition generators. | madmaxoft@gmail.com | 1 | -3/+3 | |
Also made the dimension in world.ini specifiable by a string. Exported StringToDimension() and StringToBiome() to Lua API. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1621 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2013-03-19 | The subgenerators use cChunkDesc instead of raw arrays. cChunkDesc is based on cBlockArea. Initial version of Lakes generator. | madmaxoft@gmail.com | 1 | -10/+5 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1286 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2013-03-17 | Rewritten generators so that they use the cChunkDesc class (and thus can use cBlockArea merging) | madmaxoft@gmail.com | 1 | -221/+77 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1282 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2013-03-17 | Fixed zero-probability height distribution in FluidSprings finisher | madmaxoft@gmail.com | 1 | -4/+11 | |
FS #330 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1279 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2013-03-14 | Added water and lava springs. | madmaxoft@gmail.com | 1 | -0/+175 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1269 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2013-03-03 | FinishGen: Fixed sand collapsing and fluid stationarizing | madmaxoft@gmail.com | 1 | -3/+14 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1246 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2013-03-02 | Presimulator finisher now drops sand and gravel through fire blocks as well | madmaxoft@gmail.com | 1 | -0/+1 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1238 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-12-22 | PreSimulator finisher should now drop blocks through water and lava (untested) | madmaxoft@gmail.com | 1 | -0/+4 | |
http://forum.mc-server.org/showthread.php?tid=409&pid=5728#pid5728 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1097 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-11-11 | Added DeadBushes finisher (initial patch by STR_Warrior; DeathBushes FTW!) | madmaxoft@gmail.com | 1 | -8/+76 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1037 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-10-21 | cFinishGenPreSimulator sets correct fluid type (stationary in the middle, flowing on chunk borders / holes next to water. | madmaxoft@gmail.com | 1 | -1/+82 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@999 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-10-21 | Added the first part of the PreSimulator finisher, drops floating sand and gravel to ground. | madmaxoft@gmail.com | 1 | -0/+79 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@998 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-09-24 | Source files cleanup: The rest of the files renamed. | madmaxoft@gmail.com | 1 | -1/+1 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-09-23 | Source files cleanup: Generating-related files in a separate subfolder | madmaxoft@gmail.com | 1 | -2/+2 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@881 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-07-27 | Removed bottom lava from caves generator, added a new finish generator BottomLava for that. Also fixed a slight error in SameBlock composition generator cfg | madmaxoft@gmail.com | 1 | -0/+29 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@698 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-07-03 | Added a lilypad finisher | madmaxoft@gmail.com | 1 | -0/+73 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@647 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-06-14 | Attempt to bring sanity to newlines across systems. | cedeel@gmail.com | 1 | -285/+285 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@606 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-06-08 | Sugarcane and Pumpkins get placed (quite rarely) in the SprinkleSmallFoliage FinishGen | madmaxoft@gmail.com | 1 | -5/+84 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@576 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-05-27 | Ice finisher generator; fixed snow on water. | madmaxoft@gmail.com | 1 | -1/+29 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@515 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-05-27 | Added a snow finisher generator | madmaxoft@gmail.com | 1 | -1/+25 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@514 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-05-25 | Merged the composable_generator branch into the trunk | madmaxoft@gmail.com | 1 | -0/+154 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@504 0a769ca7-a7f5-676a-18bf-c427514a06d6 |