peterbell10
950aeffff8
CheckBasicStyle: Check number of empty lines between functions ( #4267 )
...
Add check for number of empty lines between functions and fix the corresponding failures
2018-07-26 22:24:36 +01:00
peterbell10
7b431bed51
cIsThread: Reset m_ShouldTerminate after the thread has stopped ( #4258 )
...
This allows threads to be restarted after stopping.
Fixes #4257
2018-07-22 22:35:58 +01:00
Cocosushi6
fbf5cf7aa6
Generate cacti and sugarcane with different heights ( #4137 )
...
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-05-03 19:25:08 +01:00
peterbell10
a4dbb5c582
Prefer static_cast to reinterpret_cast ( #4223 )
...
* Change reinterpret_cast -> static_cast wherever possible
* Remove more unnecessary `const_cast`s.
reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
2018-05-02 08:50:36 +01:00
Bond-009
98d807187b
Removed duplicate code ( #4198 )
...
Should also fix dogs not despawning
2018-04-11 12:17:30 +01:00
Bond-009
1991a5b0e6
Wolves only spawn in taiga biomes ( #4197 )
...
Ref: https://minecraft.gamepedia.com/Wolf#Spawning
2018-03-20 10:44:30 +01:00
peterbell10
d3c1c626f5
Deal with covered switches consistently ( #4161 )
...
* Fixes a number of "<function>: not all control paths return a value" warnings on MSVC.
* Introduces the UNREACHABLE global macro and uses it instead of conditionally compiled switch defaults.
* Move cNBTParseErrorCategory from FastNBT.h into FastNBT.cpp to prevent bad calls to message()
2018-02-04 23:07:12 +00:00
peterbell10
757231cc6e
Add the fmt library ( #4065 )
...
* 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.
2018-01-03 17:41:16 +00:00
peterbell10
1537ebed6f
cWorld: Move Initialization from Start to the constructor.
...
Start now does nothing more than launch the world's threads.
2017-10-21 19:33:22 +02:00
peterbell10
b5fa96f4f8
cFinishGenPreSimulator: Preserve sand meta ( #4025 )
...
Fixes #1516 .
2017-09-18 08:45:32 +01:00
peterbell10
307e7aaff5
Fix switch warnings ( #4013 )
...
* 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-09-14 09:48:57 +01:00
Tiger Wang
72d7027861
Merge pull request #3489 from cuberite/EntityOwnership
...
* Changed entity ownership model to use smart pointers
2017-08-18 11:17:56 +01:00
Lane Kolbly
7bdbfad1bb
Changed int parameters to vector parameters in cCuboid and simulators ( #3874 )
2017-08-17 15:48:38 +02:00
Tiger Wang
4ef47aed62
Changed entity ownership model to use smart pointers
2017-08-07 19:24:16 +01:00
Lukas Pioch
07f25253a2
Removed unneeded includes ( #3902 )
2017-08-06 20:57:44 +01:00
peterbell10
759618b035
Remove double includes part 2 ( #3890 )
2017-08-03 15:34:19 +02:00
Lukas Pioch
4691bc5a29
Removed double includes ( #3885 )
2017-08-02 19:57:20 +01:00
peterbell10
a56cfd1f42
Remove smart pointer macros
2017-07-21 14:41:51 +01:00
peterbell10
bbf5bec817
BigFlower fixes ( #3826 )
...
* BigFlowers fixes
* Correct upper part meta
* Documented parameters to DoesIgnoreBuildCollision
2017-07-07 16:37:53 +02:00
peterbell10
9201c7be7a
Generated tall flowers have flower type meta in both blocks
2017-06-19 20:18:44 +02:00
peterbell10
4dc72fe00b
Remove redundant heighmap code
2017-06-14 11:15:44 +02:00
peterbell10
360d8eade0
FastRandom rewrite ( #3754 )
2017-06-13 21:35:30 +02:00
peterbell10
8a890cf945
Store cChunk::m_BlockEntities in a map ( #3717 )
...
* Store block entities in a map from block index
* Cleanup ForEachBlockEntity
* Cleanup DoWithBlockEntityAt
2017-05-22 22:27:55 +02:00
Lukas Pioch
e35ac1bfb9
Clang 5.0 fixes
...
- Added override keyword
- Removed inherited member variables
2017-05-21 12:19:06 +02:00
Mattes D
187abe3f5e
Gen: Moved PiecePool into a separate file.
...
Also rewritten the PieceGenerator to use std::unique_ptr.
2017-05-04 09:49:30 +02:00
Jacob
f59bd02e0d
Finishers now update the heightmap for tall flowers. ( #3545 )
2017-02-24 09:55:25 +01:00
Bond-009
750e2c1944
Dead bushes will generate in mega mega taigas ( #3571 )
2017-02-15 20:55:32 +01:00
mathiascode
4311f4a658
Added some blocks and items ( #3503 )
2017-02-14 11:13:55 +01:00
Mattes D
585571d78c
PieceGenerator: Added rotation-aware vertical connectors.
2017-02-13 16:50:35 +01:00
Mattes D
a4955dfda3
Removed asserts about chunk queued.
...
The assumption is not needed and was invalid under a stress-test.
2017-01-19 16:25:07 +01:00
Mattes D
e28cecb3d1
Moved cPrefab parser self-check to the LoadablePieces test. ( #3536 )
2017-01-15 11:40:10 +01:00
Mattes D
fb0fc07579
Fixed race conditions and forgotten clear in Lua ref tracking. ( #3530 )
...
This fixes occasional crashes on plugin reload.
2017-01-13 10:31:05 +01:00
James Balajan
df5be57c1e
Fix floating large trees ( #3460 )
2016-12-02 10:52:29 +01:00
Mattes D
bb78bd88b5
Fixed villages generating under-water.
...
The CompoGenBiomal didn't update the heightmap properly.
2016-12-01 17:45:31 +01:00
Mattes D
6b70574da9
Prefabs: Implemented support for ExpandFloorStrategy.
2016-11-24 15:51:53 +01:00
Moritz Borcherding
b268db4caa
Use cChunkDef::Height for Y coord comparison where applicable.
2016-09-27 14:32:20 +02:00
Mattes D
d2e8643607
Fixed type-casting-related warnings.
2016-08-24 22:26:53 +02:00
NiLSPACE
ab6e8b790c
Implemented OverworldClumpFlowers
2016-08-14 13:32:39 +02:00
Mattes D
8eaa8613da
CMake: Remove needless minimum version specifications.
2016-07-18 22:11:42 +02:00
Mattes D
f0c53dbad4
LuaAPI: Fixed bindings for cChunkDesc:GetBlockTypeMeta
2016-07-18 22:11:38 +02:00
Mattes D
36eefbf0f2
SelfTests: Removed the unneeded cSelfTests class.
2016-06-18 13:12:10 +02:00
Mattes D
ce30e3f666
Normalized Vector3 API to use the same capitalization as all else.
2016-06-10 17:59:33 +02:00
LogicParrot
7f5757eccf
Reduced unnecessary block updates
2016-04-23 00:30:00 +03:00
Lukas Pioch
5fa9c47f77
Fixed misuse of comma.
2016-03-18 20:20:30 +01:00
Mattes D
4457110579
Made ProtIntGen's max size compile-time-configurable.
2016-02-24 14:57:35 +01:00
Mattes D
1540f8fb5e
Fixed includes in IntGen.
2016-02-24 14:57:33 +01:00
LogicParrot
ca6ef58b1e
Bulk clearing of whitespace
2016-02-05 23:50:18 +02:00
Mathias
89f3dec7ac
Updated old forum links
2016-01-31 02:25:03 +02:00
Mattes D
80e1eb37dd
Renamed leftover strings to Cuberite / Server, as needed.
...
Also upgraded the user setting file for MSVC to 2013.
2016-01-01 21:05:09 +01:00
Alexander Harkness
8b851d5048
Added HTTPS links wherever they are supported.
2015-12-19 14:30:32 +00:00