summaryrefslogtreecommitdiffstats
path: root/src/LightingThread.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-19/+2
| | | | | | | | | 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
* cWorld Threads: Seperate initialization and thread start.peterbell102017-10-211-4/+2
| | | | Prevents nullptr dereferences before Start has been called.
* Remove double includes part 2 (#3890)peterbell102017-08-031-1/+0
|
* Lighting Optimisations (#3785)peterbell102017-06-201-4/+0
|
* Clang 5.0 fixesLukas Pioch2017-05-211-1/+1
| | | | | - Added override keyword - Removed inherited member variables
* Bulk clearing of whitespaceLogicParrot2016-02-051-30/+30
|
* Fixed a race condition between chunk loader and generator.Mattes D2015-10-041-1/+2
| | | | | | 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.
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-4/+4
|
* Made cLightingThread own its callbackstycho2015-05-301-3/+3
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-1/+1
|
* Fixed basic whitespace problems.madmaxoft2014-07-171-4/+4
| | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
* Lighting reads blocktypes only for blocks under heightmap.madmaxoft2014-04-121-2/+9
| | | | | | This should theoretically speed it up, since less data is copied back and forth. Also implemented a possibly more cache-friendly blocklight starter algorithm (PrepareBlockLight2()), is disabled by default, needs perf testing.
* Removed unneeded asserts.madmaxoft2014-04-031-2/+0
|
* Fixed a few clang warnings.madmaxoft2014-03-301-3/+3
|
* g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-2/+2
|
* fixed globals.h warningsTycho2014-02-231-1/+5
|
* Rewritten Lua ChunkStay API into a single function, cWorld:ChunkStay().madmaxoft2014-02-101-1/+2
| | | | This fixes problems with indeterminate class object lifespan (Lua-GC) and forgetting to disable it or keep it until ready.
* Initial ChunkStay code.madmaxoft2014-02-081-34/+42
|
* Fixed compiler warnings in LightingThread.cpp.madmaxoft2013-12-011-2/+2
|
* Moved source to srcAlexander Harkness2013-11-241-0/+181