- Nov 03, 2015
-
-
kwolekr authored
-
- Nov 02, 2015
-
-
gregorycu authored
On Windows Release x64 bit build this changes: ProfilerGraph::put 1.68% -> 0.061% ProfilerGraph::draw 12% -> 17.% So yes, there is a tradeoff between saving profiling data (executed always) and drawing the profiler graph (executed very rarely). But usually you don't have the profiler graph open.
-
est31 authored
-
Kahrl authored
-
- Nov 01, 2015
-
-
Perttu Ahola authored
Using logging for these just makes them bloated and hard to read and overally just not neat at all.
-
kwolekr authored
For several years now, the lua script lock has been completely broken. This commit fixes the main issue (creation of a temporary rather than scoped object), and fixes a subsequent deadlock issue caused by nested script API calls by adding support for recursive mutexes.
-
kwolekr authored
When compiled with optimizations, the most recent versions of clang seem to 'optimize' out a crucial "and %reg, 0x7FFFFFFF" instruction in noise2d(), probably because it somehow assumed the variable n would never become greater than that amount. Indeed, signed integer underflow is undefined behavior in C and C++, so while this optimization is "correct" in that sense, it breaks lots of existing code. Solved by changing n to an unsigned type, making behavior well-defined.
-
- Oct 31, 2015
-
-
ShadowNinja authored
Previously, the server called FATAL_ERROR when a Lua error occured. This caused a (mostly useless) core dump. The server now simply throws an exception, which is caught and printed before exiting with a non-zero return value. This also fixes a number of instances where errors were logged multiple times.
-
ShadowNinja authored
-
kwolekr authored
-
Rui914 authored
-
- Oct 29, 2015
-
-
Duane Robertson authored
This allows the player to toggle continuous forward with a key (F by default), so we don't have to hold down the forward key endlessly.
-
paramat authored
Increase default from 6 to 16 to help with mgv7 and mgfractal Large-scale or alternative mapgens can result in a lowland spawn point not being found, causing a spawn at (0, 0, 0) possibly buried underground The max height is now settable to allow correct player spawn in any mapgen or when using custom noise parameters
-
paramat authored
-
- Oct 28, 2015
-
-
kwolekr authored
-
kwolekr authored
Use this macro to disallow copying of an object using the assignment operator or copy constructor. This catches otherwise silent-but-deadly mistakes such as "ServerMap map = env->getMap();" at compile time. If so desired, it is still possible to copy a class, but it now requires an explicit call to memcpy or std::copy.
-
- Oct 27, 2015
-
-
est31 authored
-> Put access to time variables under the time lock. -> Merge both time locks, there is no point to have two locks. -> Fix the lock being released too early in Environment::setTimeOfDay -> Add serverside getter so that you don't have to get the environment if you only have the server
-
PilzAdam authored
-
kwolekr authored
-
- Oct 26, 2015
-
-
BlockMen authored
-
BlockMen authored
-
kwolekr authored
Also fix a potential seed truncation issue on platforms where the range of ptrdiff_t (the underlying type of lua_Integer) is too small.
-
kwolekr authored
-
est31 authored
abort() doesn't benefit from the high level abstractions from FATAL_ERROR.
-
kwolekr authored
-
kwolekr authored
-
est31 authored
Remove outdated loglevel list from a l_util.cpp comment, and rather point to the updated code.
-
- Oct 25, 2015
-
-
PilzAdam authored
-
BlockMen authored
Fixes #3280
-
Rui authored
-
BlockMen authored
- Disabled by default (except players) - Fixes #2984
-
PilzAdam authored
-
est31 authored
Previously, the invocation of Logger::addOutput(ILogOutput *out) led to an out of bounds write of the m_outputs vector, resulting in the m_silenced_levels array being modified. Fortunately, the only caller of that method was android system logging, and only since a few commits ago.
-
- Oct 24, 2015
-
-
PilzAdam authored
-
PilzAdam authored
-
paramat authored
Complete set of parameters for each of mandelbrot and julia sets The julia set structure often needs different iterations and scale
-
est31 authored
Fixes #3291 Thanks to @arpruss for reporting the bug, and suggesting the fix. Also, remove trailing whitespaces.
-
est31 authored
-
est31 authored
Previously, xgettext failed to resolve the dynamic call. Thanks to @JakubVanek for pointing this out.
-
est31 authored
-> Get rid of Logger::logToSystem and use normal downstream output system for android instead -> Give the downstream output system more information: enrich the log function of ILogOutput with information and add ICombinedLogOutput for easier use. -> Make Logger::getLevelLabel() static and public so that it can be used by downstream log output. -> Add g_ and m_ prefixes where required
-