summaryrefslogtreecommitdiffstats
path: root/src/Globals.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-05-09More style checking.Mattes D1-2/+2
Spaces around some operators are checked.
2015-03-21Unified cByteBuffer types.Mattes D1-3/+7
cByteBuffer now reads and writes any of the [U]Int<N> types.
2015-02-12LuaAPI: Added client TLS support for TCP links.Mattes D1-1/+2
2015-02-04Exported cServerHandle and cNetwork:Listen to Lua.Mattes D1-0/+1
Also added an example to the NetworkTest plugin.
2015-01-22Added newline to logged messages in the tests.Mattes D1-8/+12
2015-01-22Extracted Google connection testTycho1-0/+10
2015-01-11Initial convertion of a_Dt to std::chronoTycho1-0/+1
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
2015-01-11Created new type cTickTime and rewrote cWorld::TickThread to use itTycho1-0/+3
2014-11-29Added a basic stacktracing for assert and signal failures.Mattes D1-2/+3
2014-11-26Merge remote-tracking branch 'origin-master' into c++11Tiger Wang1-2/+2
2014-10-24Moved the chrono include into Globals.Mattes D1-0/+2
2014-10-24SuggestionsTiger Wang1-2/+1
2014-10-23Removed the "conditional expression is constant" warning.Mattes D1-2/+4
MSVC spits out many of these on its own std libraries.
2014-10-20Migrated cSleep and cTimer to std::chronoTiger Wang1-1/+0
2014-10-19Removed obsolete tr1::shared_ptr.Mattes D1-13/+2
2014-10-19Migrated random generators to std::randomTiger Wang1-0/+1
2014-10-19Use std::threadTiger Wang1-1/+1
2014-10-12Fix spacesworktycho1-2/+2
2014-10-10Moved a few objects to unique_ptrtycho1-0/+7
2014-10-10Fixed MSVC compilation.Mattes D1-0/+3
2014-10-09Float/Ciel: If it's going to use C++11, it might as well take advantage of itarchshift1-20/+6
2014-10-09Use static casts instead of C casts, add floor-cast functionsarchshift1-4/+36
2014-09-26Fixed UNUSED macro so that it doesn't require type knowledge.madmaxoft1-1/+10
Introduced new UNUSED_VAR macro that is used when type knowledge is available (for local variables).
2014-09-17Added first test to show the object can be createdTycho1-0/+21
2014-09-04Revert "Globals.h: Added Floor and Ciel casting, C++ cast cleanups, etc"archshift1-36/+4
This reverts commit 472efa8174626a00ffdf5b39e1a44ac419cd3698. Apparently we don't support some of these features quite yet (darn you C++98!)
2014-09-04Globals.h: Added Floor and Ciel casting, C++ cast cleanups, etcarchshift1-4/+36
Snow Golems must also be above 64Y to spawn snow (as of 1.8).
2014-08-12Renamed LoggersTycho1-1/+1
2014-08-10First Implementatation of new Loggin frameworkTycho1-1/+1
2014-08-03Fixed a ToLua warning - operator = not supported.madmaxoft1-2/+2
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft1-4/+4
2014-07-21Style: Normalized spaces after if, for and while.madmaxoft1-1/+1
2014-07-19Fixed style: spaces after commas.madmaxoft1-1/+1
2014-07-17Fixed spaces around single-line comments.madmaxoft1-11/+11
There should be at least two spaces in front and one space after //-style comments.
2014-07-17Fixed basic whitespace problems.madmaxoft1-5/+5
Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
2014-06-30Fixed size_t printfing under MinGW.Mattes D1-3/+18
2014-06-17Moved Effects.h to EntityEffects.h, added initial implarchshift1-1/+0
2014-05-30Test failures break into MSVC debugger.madmaxoft1-0/+6
2014-05-30Test failures are reported verbosely and into the debug console on Win.madmaxoft1-2/+18
2014-05-27Fixed test globals to work with precompiled headersTycho1-12/+36
2014-05-01Fixed MSVC2013 compilation.Mattes D1-1/+1
2014-04-25Fixed C++11 check for SharedPtr.madmaxoft1-1/+1
2014-04-25Added shared_ptr handling for C++03 mode.madmaxoft1-3/+7
2014-04-24Declared a SharedPtr that hopefully resolves on all platforms.madmaxoft1-1/+9
MSVC2008 has it in std::tr1, all the others in std.
2014-04-24Initial C++ SSL classes.madmaxoft1-2/+4
2014-04-03Fixed a few MSVC type warnings.Mattes D1-0/+3
2014-03-28Fixed non-virtual destructors warnings.madmaxoft1-2/+8
2014-03-14Added Noreturn attribtes to a couple of functions and made a missing noreturn an errorTycho1-2/+9
2014-03-14Added NORETURN macroTycho1-0/+4
2014-03-14Fixed xofts issuesTycho1-1/+2
2014-03-12Fixed commaTycho1-2/+2
2014-03-12Added additional macros to support the MSVC size_t format and changed all formats to use the macrosTycho1-0/+4
2014-03-12Fixed printf format compatabiltyTycho1-0/+5
2014-03-12Fixed comments an assertTycho1-1/+1
2014-03-11Added macros to follow format string checking through wrappersTycho1-0/+4
2014-03-11Unified Vector classesandrew1-0/+8
2014-03-10Fixed test assertsTycho1-3/+4
2014-03-09Be more parinoid about int sizesTycho1-2/+16
2014-03-09Globals.h is now warnings free again.Tycho1-2/+0
Also turned off Wpadded as it is indicates potental performance issues rather than potential bugs
2014-03-01g_BlockXXX => cBlockInfo::XXXandrew1-0/+1
2014-02-20Thread safe cMap managerandrew1-3/+3
2014-01-26Added support for overide in c++11 supporting varients of gcc/clangTycho1-2/+4
2014-01-23PolarSSL is fully used for 1.3.2 protocol encryption.madmaxoft1-0/+3
2014-01-09Move biome definition to separate filesBill Derouin1-0/+1
2014-01-07Disabled an unneeded MSVC warning.madmaxoft1-4/+7
Also sorted the enabled warnings by their numerical code for easier searching..
2014-01-06Disabled the type conversion MSVC warning.madmaxoft1-1/+3
It was hitting way too many false positives.
2014-01-05Changed the release version of ASSERT.Diusrex1-1/+1
This was so a variable only used in ASSERT statements will not give a warning about not being used.
2014-01-05Making all of the useful level 4 warnings be active.Diusrex1-1/+13
2013-12-18Removed offending tr1/memory header inclusion.madmaxoft1-3/+0
We already use <memory> at line 160, this was a double include, additionally causing problems (#424).
2013-12-14Exported E_EFFECTS_<Effect> to lua. Forgot to commit Globals.h.STRWarrior1-0/+1
2013-11-27Fixed a load of issues, clang autodetection works now.Alexander Harkness1-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?
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-10-19Fixed general failings with everything. Fixes #211.Alexander Harkness1-12/+13
My editor fixed some extra tabs in globals.
2013-10-09Added static cFile functions to Lua API.madmaxoft1-1/+1
2013-08-07Removed Squirrel.madmaxoft1-6/+0
This compiles under Windows, but is untested in Linux.
2013-03-05IPv6: Windows XP doesn't have the inet_pton() function, resorting to custom-formatting the addressmadmaxoft@gmail.com1-0/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1257 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-05IPv6 support + removed cTCPLink from Lua APImadmaxoft@gmail.com1-0/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1253 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-27Made FAST_FLOOR_DIV work correctly, replaced all floorf() divisions with it.madmaxoft@gmail.com1-1/+2
Still not perfect - chunk and region calculations can be made into a single CPU instruction - SAR - but not all compilers are known to support that (">>" operator on signed datatypes needs to perform arithmetic shift, C/C++ standard makes it implementation-specific; MSVC and GCC do what we need, LLVM unknown) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1224 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-08Removed the SquirrelVM.madmaxoft@gmail.com1-1/+3
It has been crashing the server. http://forum.mc-server.org/showthread.php?tid=610 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1024 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-13Preparation for multiple fluid simulators.madmaxoft@gmail.com1-0/+2
Moved all simulators into a subfolder. Replaced cWaterSimulator and cLavaSimulator with a generic cFluidSimulator. Moved original fluid simulation into cClassicFluidSimulator. Fluid simulator parameters (MaxHeight, Falloff) are read from the world.ini file (can have nether-like lava with lower falloff) git-svn-id: http://mc-server.googlecode.com/svn/trunk@956 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-06BlockArea writing support (BlockTypes with BlockMeta only)madmaxoft@gmail.com1-0/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@933 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-23Source files cleanup: OSSupport-related files in a separate subfolder, renamed.madmaxoft@gmail.com1-6/+6
git-svn-id: http://mc-server.googlecode.com/svn/trunk@885 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-04Fixed preprocessor definitions in Linuxmadmaxoft@gmail.com1-3/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@831 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-17Packets now parse themselves from a cByteBuffer object (1st part of packeting rewrite, http://forum.mc-server.org/showthread.php?tid=524 )madmaxoft@gmail.com1-0/+5
git-svn-id: http://mc-server.googlecode.com/svn/trunk@744 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-16MCServer should run just fine on Android now :Dfaketruth1-0/+6
The server is also stoppable from Android git-svn-id: http://mc-server.googlecode.com/svn/trunk@743 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-15Compiles on Android! Added Eclipse project, import it into your workspace and it should be runnable on Android!faketruth1-0/+6
Disabled Squirrel for Android cLog now logs to Android LogCat as well Fixed Lua so it compiles on Android Removed/commented out exceptions in JsonCpp so it compiles on Android git-svn-id: http://mc-server.googlecode.com/svn/trunk@741 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-03Fixed a few gcc pedantic warnings; made BLOCKTYPE an unsigned char type.madmaxoft@gmail.com1-0/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@711 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-13Fixed case comparison - used the builtin functionmadmaxoft@gmail.com1-12/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@663 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-13fixed /tp commandlapayo94@gmail.com1-0/+12
made cWorld::DoWithPlayer case insensitive git-svn-id: http://mc-server.googlecode.com/svn/trunk@662 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-202/+202
git-svn-id: http://mc-server.googlecode.com/svn/trunk@606 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-02Fixed Linux compilation complaining about min() and max(), hopefully forever. Use std::min() and std::max()madmaxoft@gmail.com1-0/+5
git-svn-id: http://mc-server.googlecode.com/svn/trunk@539 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-05-25Merged the composable_generator branch into the trunkmadmaxoft@gmail.com1-1/+9
git-svn-id: http://mc-server.googlecode.com/svn/trunk@504 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-05-07Fast NBT Parser (loading a chunk is now about 10 times faster)madmaxoft@gmail.com1-0/+9
git-svn-id: http://mc-server.googlecode.com/svn/trunk@481 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-24Removed the split between 1.2.3 and 1.1, left only 1.2.3 codemadmaxoft@gmail.com1-8/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@429 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-09Using the _DEBUG macro for *nix debug builds as well; trying to force 8-byte alignment on critical sections ( http://forum.mc-server.org/showthread.php?tid=384 )madmaxoft@gmail.com1-18/+47
git-svn-id: http://mc-server.googlecode.com/svn/trunk@387 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-06Fixed rev 373 not compiling on linuxmadmaxoft@gmail.com1-0/+5
git-svn-id: http://mc-server.googlecode.com/svn/trunk@375 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-05ChunkSender: Chunks are now compressed and sent to clients from a separate threads, proper passive waiting between threads. Not much tested, just appears to work :)madmaxoft@gmail.com1-1/+8
git-svn-id: http://mc-server.googlecode.com/svn/trunk@365 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-01Started carefully moving to 1.2.2faketruth1-0/+1
Clients can get up to the login packet, after which the server tries to send chunks but in the wrong format and the client disconnects git-svn-id: http://mc-server.googlecode.com/svn/trunk@347 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-02-21Changed ASSERT() to not cause warnings during compilefaketruth1-1/+9
Added VERIFY(); it's the same as ASSERT() but also works in release builds VS2010 project uses warning level 4 git-svn-id: http://mc-server.googlecode.com/svn/trunk@305 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-02-20Using own ASSERT() that logs to filefaketruth1-7/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@297 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-02-18Moved stdarg.h inclusion into Globals.hmadmaxoft@gmail.com1-0/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@289 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-02-16Chunk is now marked as dirty; saving only dirty chunks; rewritten load / save not to use cChunkPtr; set VC2008 project to level4 warnings; block entities are now loaded and saved properlymadmaxoft@gmail.com1-2/+18
git-svn-id: http://mc-server.googlecode.com/svn/trunk@273 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-02-13Rewritten most of the code for multithreading; still not 100%, but getting there. If this commit proves to be too problematic, we can always undo it.madmaxoft@gmail.com1-0/+21
git-svn-id: http://mc-server.googlecode.com/svn/trunk@251 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-02-07Rewritten all packets to use buffers instead of direct sockets, for future cSocketThreads compatibility.madmaxoft@gmail.com1-0/+2
Moved data sending from cPacket into cSocket git-svn-id: http://mc-server.googlecode.com/svn/trunk@240 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-02-01Rewritten cAuthenticator to make use of the new cIsThread architecture - now authentication runs in a single separate thread for all clients;madmaxoft@gmail.com1-0/+11
Global player-kicking function (cServer, cRoot); More char * -> AString conversion git-svn-id: http://mc-server.googlecode.com/svn/trunk@221 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-02-01sprintf() begone! Replaced with StringUtils' Printf()madmaxoft@gmail.com1-5/+6
git-svn-id: http://mc-server.googlecode.com/svn/trunk@216 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-02-01auto_ptr fix 2madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@211 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-02-01Introducing StringUtils - the place to be if you are a generic string routine :) No more sprintf()!madmaxoft@gmail.com1-0/+9
git-svn-id: http://mc-server.googlecode.com/svn/trunk@209 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-01-30More cFile cleanup; removed old format writing for block entitiesmadmaxoft@gmail.com1-0/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@193 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-01-29VC2008 / VC2010: Enabled precompiled header through Globals.h; the header included in every module in the project. Compilation optimization.madmaxoft@gmail.com1-0/+82
git-svn-id: http://mc-server.googlecode.com/svn/trunk@188 0a769ca7-a7f5-676a-18bf-c427514a06d6