summaryrefslogtreecommitdiffstats
path: root/src/Generating/ChunkGenerator.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Separated chunk generator from world / plugin interfaces.Mattes D2019-09-061-278/+15
| | | | The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-2/+2
| | | | | | | 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.
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-0/+1
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* cIsThread: Reset m_ShouldTerminate after the thread has stopped (#4258)peterbell102018-07-221-1/+1
| | | | | This allows threads to be restarted after stopping. Fixes #4257
* Add the fmt library (#4065)peterbell102018-01-031-1/+1
| | | | | | | * 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.
* cWorld: Move Initialization from Start to the constructor.peterbell102017-10-211-3/+2
| | | | Start now does nothing more than launch the world's threads.
* FastRandom rewrite (#3754)peterbell102017-06-131-2/+1
|
* Removed asserts about chunk queued.Mattes D2017-01-191-1/+0
| | | | The assumption is not needed and was invalid under a stress-test.
* Reduced unnecessary block updatesLogicParrot2016-04-221-4/+4
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-1/+1
|
* Fixed a race condition between chunk loader and generator.Mattes D2015-10-041-6/+6
| | | | | | When using ChunkWorx to generate multiple chunks, the server would sometimes fail an assert because it would generate a chunk even when it was successfully loaded. This was caused by chunks queued in cWorld's m_SetChunkDataQueue and thus being marked as "InQueue" although they were already loaded. Solved by adding a new parameter to chunk coord callbacks specifying whether the operation succeeded or failed, and using that instead of the chunk presence flag to decide whether to generate or not.
* Unified the doxy-comment format.Mattes D2015-07-311-2/+2
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-3/+3
|
* More style checking.Mattes D2015-05-091-2/+2
| | | | Spaces around some operators are checked.
* Added a cWorld:PrepareChunk function.Mattes D2014-12-101-22/+25
| | | | | It prepares the chunk - loads or generates it and lights it. The spawn prepare process uses this function.
* Merged branch 'origin/master' into c++11.Mattes D2014-12-041-3/+3
|\
| * Fixed BlockStringToType return value.Mattes D2014-11-271-3/+3
| | | | | | | | -1 was not a valid BLOCKTYPE and would not be recognized by the callers, ever.
* | Merged branch 'master' into c++11.Mattes D2014-10-241-1/+1
|\|
| * Merged IniFile into main MCS sources.Mattes D2014-10-231-1/+1
| |
| * En masse NULL -> nullptr replaceTiger Wang2014-10-231-9/+9
| |
* | En masse NULL -> nullptr replaceTiger Wang2014-10-201-9/+9
| |
* | Migrated random generators to std::randomTiger Wang2014-10-191-1/+1
|/
* WorldStorage no longer queues chunks into generator.Mattes D2014-09-051-0/+2
|
* Rewritten chunk status to specify whether the chunk is in queue.Mattes D2014-09-051-1/+2
| | | | This fixes #1370.
* ChunkGenerator: Log world seed when creating a new one.madmaxoft2014-09-031-3/+14
|
* re-add the missing "s" too cChunkCoordsWithBoolListLO1ZB2014-09-031-1/+1
|
* hopefully the last commit for removing y-coord from chunks. :)LO1ZB2014-09-031-6/+12
|
* fix possibility of a twice generated chunkLO1ZB2014-09-011-1/+2
|
* fix chunk regeneratingLO1ZB2014-08-291-8/+0
|
* remove y-coord from chunksLO1ZB2014-08-281-7/+7
|
* Added initializers for class members.Mattes D2014-08-211-0/+1
| | | | As reported by Coverity, these weren't initialized.
* Merge remote-tracking branch 'origin/master' into portalsTiger Wang2014-07-221-2/+2
|\ | | | | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Entities/Player.cpp src/Root.cpp src/World.cpp
| * Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-1/+1
| |
| * Fixed style: spaces after commas.madmaxoft2014-07-191-1/+1
| |
* | Merge branch 'master' into portalsTiger Wang2014-07-181-5/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/Blocks/WorldInterface.h src/ClientHandle.cpp src/ClientHandle.h src/Entities/Player.cpp src/Entities/Player.h src/Generating/FinishGen.cpp src/Protocol/Protocol.h src/Protocol/Protocol125.cpp src/Protocol/Protocol125.h src/Protocol/Protocol16x.cpp src/Protocol/Protocol16x.h src/Protocol/Protocol17x.cpp src/Protocol/Protocol17x.h src/Protocol/ProtocolRecognizer.cpp src/Protocol/ProtocolRecognizer.h src/Root.h src/World.cpp
| * Fixed tabs used for alignment.madmaxoft2014-07-171-3/+3
| |
| * Normalized comments.madmaxoft2014-07-171-2/+2
| | | | | | | | | | 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.
* | SuggestionsTiger Wang2014-06-051-1/+1
|/
* Added additional macros to support the MSVC size_t format and changed all formats to use the macrosTycho2014-03-121-1/+1
|
* Fixed a load of format string errorsTycho2014-03-111-2/+2
|
* Mob bugfixesTiger Wang2014-01-251-0/+2
| | | | | | | | | | * Mobs no longer require constant line-of-sight to a player to remain aggravated * Fixed an ASSERT * Fixed mobs jumping * Fixed Idle state not properly using AI + Added FILE_IO_PREFIX to favicon loading + Implemented #563
* Fixed a generator bugTiger Wang2014-01-251-1/+6
|
* Decoupled cChunkGenerator from cWorld and cRoot.madmaxoft2014-01-101-29/+19
| | | | Now the chunk generator can be used by other projects without depending on the two hugest structures in MCS.
* Moved bindings-related to a Bindings subfolder.madmaxoft2013-12-081-1/+1
| | | | Ref.: #407
* Fixed the remaining derpsAlexander Harkness2013-11-271-1/+1
|
* Hopefully fixed last of the Linux compile errorsTiger Wang2013-11-261-1/+1
|
* Further attempts to fix compileTiger Wang2013-11-251-1/+1
|
* Attempt to fix compilationTiger Wang2013-11-241-1/+1
|
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-18/+18
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+329