summaryrefslogtreecommitdiffstats
path: root/src/Globals.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix building with clang 14 (#5428)Bond-0092022-06-251-0/+1
|
* Windows: do not include sdkddkver before defining WIN32_WINNTTiger Wang2021-06-281-4/+2
| | | | Including that header before defining the macro defaults the SDK to the latest version, not what we want.
* Make Windows go brrrr, not tick. tick. tick. (#5201)Tiger Wang2021-04-211-2/+4
| | | * Fixes #5140
* Fix sending incorrect date values on world changeTiger Wang2021-04-121-5/+13
| | | | Yak shave: make more things use cTickTime. Fix a couple of incorrect modulo-on-millisecond-value by making them use WorldTickAge.
* Fix Windows XP to 7 compatibility (#5167)Tiger Wang2021-03-281-5/+7
| | | | | * Partially reverts 01a4e696b * Unify thread names - Remove use of GetThreadId API
* Prepare ChunkData for BlockState storage (#5105)Tiger Wang2021-03-051-0/+6
| | | | | | | | | | | | | | | | | | | | | | | * Rename ChunkData Creatable test * Add missing Y-check in RedstoneWireHandler * Remove ChunkDef.h dependency in Scoreboard * Prepare ChunkData for BlockState storage + Split chunk block, meta, block & sky light storage + Load the height map from disk - Reduce duplicated code in ChunkData - Remove saving MCSBiomes, there aren't any - Remove the allocation pool, ref #4315, #3864 * fixed build * fixed test * fixed the debug compile Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
* Mark UNREACHABLE with intrinsicsTiger Wang2021-02-201-2/+10
|
* MSVC warningsTiger Wang2021-02-101-26/+0
|
* CompositeChat: use variants12xx122021-02-081-0/+20
|
* Fix debug macro situation (#5114)Tiger Wang2021-01-261-16/+14
| | | Use the standard NDEBUG.
* zlib -> libdeflate (#5085)Tiger Wang2021-01-111-32/+52
| | | | | | + Use libdeflate + Use std::byte * Fix passing temporary to string_view + Emulate make_unique_for_overwrite
* Deleted BiomeDef.h and ChunkDef.h from Globals.h (#4885)KingCol132020-09-251-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Removed BiomeDef.h * Removed ChunkDef.h from Globals.h * Added to CONTRIBUTORS. * Re-added empty last line to Globals.h * Included stddef and StringUtils in BiomeDef.h * Fixed build tools compiling. It compiles, but at what cost? * Added include to src/Generating/Trees.h * Include added in ChunkGeneratorThread.h * Moved rearranged includes in LineBlockTracer.cpp * Re-arrange headers in ChunkInterface.cpp * Included ChunkDef.h in Path.h * Included ChunkDef.h in NBTChunkSerializer.h * Rearranged included and added required includes to headers. * Removed unnecessary included in StringUtils.h.
* Streamline startup sequenceTiger Wang2020-09-051-4/+4
| | | | | * Clean up cRoot & main * Move some OS-specifics into OSSupport
* Add FileStream wrapperTiger Wang2020-08-191-0/+1
|
* Replaced cpp14::make_unique<> with std::make_unique<>.Mattes D2020-08-011-5/+0
|
* Precompile unordered_map/setTiger Wang2020-07-191-11/+12
| | | | | | + Add inclusions to Globals.h * Sort Globals.h - Remove sys/stat.h from Globals.h
* Remove unnecessary includesTiger Wang2020-07-131-13/+0
|
* Upgrade to C++17 [CMake] (#4717)Tiger Wang2020-05-161-0/+6
| | | * Make our CMake slightly less insane
* Update logging code to reduce unnecessary string copying:Peter Bell2020-05-161-23/+20
| | | | | | * Write into a single fmt::memory_buffer * Use string_view instead of AString for listener callbacks * Also collapsed vFLOG and vLOG functions into one per formatting type
* Cleanup unneeded globals (#4736)peterbell102020-05-101-37/+2
|
* Enable C++17 in buildPeter Bell2020-05-091-0/+7
|
* Remove old Android leftovers (#4722)Mat2020-05-071-6/+0
|
* Update fmt to 6.2.0 (#4718)peterbell102020-05-051-1/+1
| | | * Update fmt to 6.2.0
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-6/+0
| | | | | | | | | 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
* Improved testing framework. (#4376)Mattes D2019-08-261-37/+25
|
* Deal with covered switches consistently (#4161)peterbell102018-02-051-0/+3
| | | | | | | * 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()
* Add the fmt library (#4065)peterbell102018-01-031-81/+20
| | | | | | | * 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.
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-14/+0
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-0/+14
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-14/+0
|
* Add TOLUA_EXPOSITION for readabilitypeterbell102017-08-281-0/+4
|
* Remove double includes part 2 (#3890)peterbell102017-08-031-2/+5
|
* cParsedNBT: Improved error reporting (#3876)peterbell102017-07-301-2/+4
| | | | | | * cParsedNBT: Improved error reporting * Fix typos
* Tentative fix for player-limit race condition (#3862)Tiger Wang2017-07-281-1/+3
| | | | | | | | | | * Attempts to fix #2257 Derived from d233e9843148313c71fbaba96ccff660e47b07b1 * Changed player count type to int * Clarified certain actions
* Remove commentpeterbell102017-07-211-1/+0
|
* Simplify SizeCheckpeterbell102017-07-211-6/+2
|
* Remove stricmp macro in favour of NoCaseComparepeterbell102017-07-211-2/+0
|
* Remove alignment macrospeterbell102017-07-211-7/+0
|
* Remove smart pointer macrospeterbell102017-07-211-5/+0
|
* Allocate redstone component handlers upfrontpeterbell102017-07-171-4/+3
|
* NetworkSingleton: Fixed a throw warning in VS2017. (#3792)Mattes D2017-06-221-3/+3
| | | Also fixed the misleading name.
* MSVC Debug builds: Added operator new redirection to provide more info. (#3781)Mattes D2017-06-191-0/+18
|
* LuaState: Fixed VS2017's throw warnings for destructors. (#3779)Mattes D2017-06-191-2/+9
|
* Fixed RasPi builds of unit tests.Mattes D2016-08-041-6/+13
| | | | | On RasPi with gcc 4.8.2, the asserts wouldn't compile when tests were enabled. Enforced the assumption that ASSERT code is generated only in Debug builds.
* Flush immediately after each line when running tests.Mattes D2016-06-181-54/+55
|
* Removed old and wrong code from Globals.h.Mattes D2016-02-241-16/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-6/+6
|
* MSVC: Reviewed warnings, disabled a useless one, re-enabled an old one.Mattes D2015-11-051-3/+1
|
* Namechange to CuberiteMattes D2015-09-251-1/+1
|
* Increase robustness of the logging subsystemtycho2015-09-151-1/+19
|
* Unified the doxy-comment format.Mattes D2015-07-311-4/+4
|
* Improved mapsTiger Wang2015-07-141-0/+2
|
* Externalized cPrefabPiecePool self-test.Mattes D2015-06-191-6/+10
|
* Merge pull request #2144 from mc-server/comparatorsAlexander Harkness2015-06-091-4/+3
|\ | | | | Redstone improvements [SEE DESC]
| * ComparatorsTiger Wang2015-06-061-4/+3
| |
* | Daemon support on Linux.Anthony Birkett2015-06-051-0/+1
| | | | | | | | Added null console log listener, avoid printf() when stdout is closed.
* | Skip unknown cflag for Apple clang & remove cSemaphoreCengiz Can2015-06-041-1/+0
|/
* Move make_unique into a namespace to avoid ADL issuestycho2015-05-161-3/+7
| | | | this prevents VS finding std::make_unique for constructors that take types from std
* Initial implementation of IniFile overloadingtycho2015-05-161-1/+1
|
* More style checking.Mattes D2015-05-091-2/+2
| | | | Spaces around some operators are checked.
* Unified cByteBuffer types.Mattes D2015-03-211-3/+7
| | | | cByteBuffer now reads and writes any of the [U]Int<N> types.
* LuaAPI: Added client TLS support for TCP links.Mattes D2015-02-121-1/+2
|
* Exported cServerHandle and cNetwork:Listen to Lua.Mattes D2015-02-041-0/+1
| | | | Also added an example to the NetworkTest plugin.
* Added newline to logged messages in the tests.Mattes D2015-01-221-8/+12
|
* Extracted Google connection testTycho2015-01-221-0/+10
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-0/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* Created new type cTickTime and rewrote cWorld::TickThread to use itTycho2015-01-111-0/+3
|
* Merge remote-tracking branch 'origin/master' into c++11EventsMattes D2014-12-071-6/+6
|\
| * Merged branch 'origin/master' into c++11.Mattes D2014-12-041-2/+3
| |\
| | * Added a basic stacktracing for assert and signal failures.Mattes D2014-11-291-2/+3
| | |
| * | Merge remote-tracking branch 'origin-master' into c++11Tiger Wang2014-11-261-2/+2
| | |
| * | Merged branch 'master' into c++11.Mattes D2014-10-241-2/+4
| |\|
| * | SuggestionsTiger Wang2014-10-241-2/+1
| | |
| * | Merge branch 'master' of https://github.com/mc-server/MCServerTiger Wang2014-10-201-13/+2
| |\ \
| * | | Migrated cSleep and cTimer to std::chronoTiger Wang2014-10-201-1/+0
| | | |
| * | | Migrated random generators to std::randomTiger Wang2014-10-191-0/+1
| | | |
| * | | Use std::threadTiger Wang2014-10-191-1/+1
| | | |
* | | | Moved the chrono include into Globals.Mattes D2014-10-241-0/+2
| |_|/ |/| |
* | | Removed the "conditional expression is constant" warning.Mattes D2014-10-231-2/+4
| |/ |/| | | | | MSVC spits out many of these on its own std libraries.
* | Removed obsolete tr1::shared_ptr.Mattes D2014-10-191-13/+2
|/
* Fix spacesworktycho2014-10-121-2/+2
|
* Moved a few objects to unique_ptrtycho2014-10-101-0/+7
|
* Fixed MSVC compilation.Mattes D2014-10-101-0/+3
|
* Float/Ciel: If it's going to use C++11, it might as well take advantage of itarchshift2014-10-091-20/+6
|
* Use static casts instead of C casts, add floor-cast functionsarchshift2014-10-091-4/+36
|
* Fixed UNUSED macro so that it doesn't require type knowledge.madmaxoft2014-09-261-1/+10
| | | | Introduced new UNUSED_VAR macro that is used when type knowledge is available (for local variables).
* Added first test to show the object can be createdTycho2014-09-171-0/+21
|
* Renamed LoggersTycho2014-08-121-1/+1
|
* First Implementatation of new Loggin frameworkTycho2014-08-101-1/+1
|
* Fixed a ToLua warning - operator = not supported.madmaxoft2014-08-031-2/+2
|
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-4/+4
|
* Style: Normalized spaces after if, for and while.madmaxoft2014-07-211-1/+1
|
* Fixed style: spaces after commas.madmaxoft2014-07-191-1/+1
|
* Fixed spaces around single-line comments.madmaxoft2014-07-171-11/+11
| | | | There should be at least two spaces in front and one space after //-style comments.
* Fixed basic whitespace problems.madmaxoft2014-07-171-5/+5
| | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
* Merge remote-tracking branch 'origin/master' into potionsarchshift2014-07-101-3/+18
|\ | | | | | | | | | | Conflicts: src/Entities/Player.cpp src/Entities/ProjectileEntity.cpp
| * Fixed size_t printfing under MinGW.Mattes D2014-06-301-3/+18
| |
* | Moved Effects.h to EntityEffects.h, added initial implarchshift2014-06-171-1/+0
|/
* Test failures break into MSVC debugger.madmaxoft2014-05-301-0/+6
|
* Test failures are reported verbosely and into the debug console on Win.madmaxoft2014-05-301-2/+18
|
* Fixed test globals to work with precompiled headersTycho2014-05-271-12/+36
|
* Fixed MSVC2013 compilation.Mattes D2014-05-011-1/+1
|
* Fixed C++11 check for SharedPtr.madmaxoft2014-04-251-1/+1
|
* Added shared_ptr handling for C++03 mode.madmaxoft2014-04-251-3/+7
|
* Declared a SharedPtr that hopefully resolves on all platforms.madmaxoft2014-04-241-1/+9
| | | | MSVC2008 has it in std::tr1, all the others in std.
* Initial C++ SSL classes.madmaxoft2014-04-241-2/+4
|
* Fixed a few MSVC type warnings.Mattes D2014-04-031-0/+3
|
* Fixed non-virtual destructors warnings.madmaxoft2014-03-281-2/+8
|
* Added Noreturn attribtes to a couple of functions and made a missing noreturn an errorTycho2014-03-141-2/+9
|
* Added NORETURN macroTycho2014-03-141-0/+4
|
* Fixed xofts issuesTycho2014-03-141-1/+2
|
* Fixed commaTycho2014-03-121-2/+2
|
* Added additional macros to support the MSVC size_t format and changed all formats to use the macrosTycho2014-03-121-0/+4
|
* Merge branch 'Werror' into warningsTycho2014-03-121-1/+14
|\ | | | | | | | | Conflicts: src/Globals.h
| * Fixed printf format compatabiltyTycho2014-03-121-0/+5
| |
| * Merge branch 'master' into WerrorTycho2014-03-121-0/+8
| |\ | | | | | | | | | | | | Conflicts: src/Generating/PieceGenerator.cpp
| | * Unified Vector classesandrew2014-03-111-0/+8
| | |
| * | Fixed comments an assertTycho2014-03-121-1/+1
| | |
* | | Added macros to follow format string checking through wrappersTycho2014-03-111-0/+4
|/ /
* | Fixed test assertsTycho2014-03-101-3/+4
| |
* | Be more parinoid about int sizesTycho2014-03-091-2/+16
| |
* | Globals.h is now warnings free again.Tycho2014-03-091-2/+0
|/ | | | Also turned off Wpadded as it is indicates potental performance issues rather than potential bugs
* g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-0/+1
|
* Thread safe cMap managerandrew2014-02-201-3/+3
|
* Manual merge (Fixed conflicts)andrew2014-02-201-0/+10
|
* Merge branch 'master' into GeneratingBenchmark2Tycho2014-01-261-0/+3
|\ | | | | | | | | | | Conflicts: src/Blocks/BlockRail.h src/World.h
| * PolarSSL is fully used for 1.3.2 protocol encryption.madmaxoft2014-01-231-0/+3
| |
* | Added support for overide in c++11 supporting varients of gcc/clangTycho2014-01-261-2/+4
|/
* Move biome definition to separate filesBill Derouin2014-01-091-0/+1
|
* Disabled an unneeded MSVC warning.madmaxoft2014-01-071-4/+7
| | | | Also sorted the enabled warnings by their numerical code for easier searching..
* Disabled the type conversion MSVC warning.madmaxoft2014-01-061-1/+3
| | | | It was hitting way too many false positives.
* Changed the release version of ASSERT.Diusrex2014-01-051-1/+1
| | | | This was so a variable only used in ASSERT statements will not give a warning about not being used.
* Making all of the useful level 4 warnings be active.Diusrex2014-01-051-1/+13
|
* Removed offending tr1/memory header inclusion.madmaxoft2013-12-181-3/+0
| | | | We already use <memory> at line 160, this was a double include, additionally causing problems (#424).
* Exported E_EFFECTS_<Effect> to lua. Forgot to commit Globals.h.STRWarrior2013-12-141-0/+1
|
* Fixed a load of issues, clang autodetection works now.Alexander Harkness2013-11-271-1/+0
| | | | | | | | This fixes issue #210. This also removes the disableasm option, so it would be wise to remove it from any scripts that use it. I also removed a random line in the middle of globals.h, why was it there?
* Moved source to srcAlexander Harkness2013-11-241-0/+227