aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-09-10networkprotocol.h: remove "u16 command" from docest31
Its obvious that "u16 command" is inside every packet, therefore this commit removes all mentions of the command, if non-array like notation is used. We already didn't add "u16 command" to new packets or removed it at packet changes, so now we remove it from existing packets.
2015-09-10Improve locale directory detectionest31
Use in-place locale directory if that exists, and static one (RUN_IN_PLACE or CUSTOM_LOCALEDIR) doesn't exist. Report to errorstream if neither static nor in-place locale dirs exist, and report successfully found paths to infostreem. Fixes two bugs: -> Regression of commit [1] where if we use RUN_IN_PLACE=false, but don't make install, locales aren't found. One might think this is no regression, as its no bug, but all other paths (mainmenu, etc.) are detected properly. -> Regression of commit [1] where locales don't work on windows. References: [1]: Commit 645e2086734e3d2d1ec95f50faa39f0f24304761 "Use CUSTOM_LOCALEDIR if specified" by @ShadowNinja
2015-09-08Change m_client_event_queue's type to std::queueLoic Blot
As indicated in its name, m_client_event_queue should be a queue. Change std::list to std::queue to improve the queue's performance.
2015-09-07Mgv5/mgv7 biomes: Reduce heat and humidity noise spreads to former value of 750paramat
2015-09-06Use CUSTOM_LOCALEDIR if specifiedShadowNinja
2015-09-06Fix building on OSX, broken since "Clean up threading"Pavel Puchkin
Commit e4bff8be94c0db4f94e63ad448d0eeb869ccdbbd - Clean up threading by @ShadowNinja has broken the OSX build. Including things inside a namespace isn't good. Also fixes #3124.
2015-09-03Areastore: fix "attempt to index a number value"est31
Before, calling get_areas_in_area for an areastore with both include_borders and include_data would result in a lua error, if there was at least one area as result: attempt to index a number value in function 'get_areas_in_area'
2015-09-01Warn when building without cURLShadowNinja
2015-09-01Enable server build when no builds are enabledShadowNinja
2015-09-01Hide minimap if it has been disabled by serverest31
2015-09-01gettext.cpp: Fix syntax error when using MSVCjh10001
Also remove trailing whitespaces from the file
2015-08-31Make ClientInterface::statenames consistent with the state enum againest31
Fixes minetest.get_player_information segfault due to out of bounds access problems, when compiled as debug build.
2015-08-30l_mainmenu.h: remove unused l_get_dirlist functionest31
The commit 8f9af57314f71aae1cc77e13f9996e13015d776d "Add core.get_dir_list" by @ShadowNinja has removed the implementation of the l_get_dirlist function and all its usages from the l_mainmenu.cpp file, but hasn't removed it from the header file. The reason why this hasn't been detected earlier is that C++ has this interesting feature to still make it possible to create instances of classes whose never used private methods are declared but not defined.
2015-08-29Ores: change ore chance in clusters to better respect clust_num_ores for ↵Gael-de-Sailly
dense clusters
2015-08-29Dungeongen: Remove floating framesparamat
Preserves the rare unbroken protruding dungeons Fix random range for first room roomplace Fix checked volume for first room 'fits' bool and check for 'untouchable' flag instead of 'inside' Remove 'enable floating dungeons' setting
2015-08-27Push error handler afresh each time lua_pcall is usedKahrl
Fixes "double fault" / "error in error handling" messages (issue #1423) and instead shows a complete backtrace.
2015-08-27Use numeric indices and raw table access with LUA_REGISTRYINDEXKahrl
2015-08-25Change i++ to ++iDavid Jones
2015-08-23Clean up threadingShadowNinja
* Rename everything. * Strip J prefix. * Change UpperCamelCase functions to lowerCamelCase. * Remove global (!) semaphore count mutex on OSX. * Remove semaphore count getter (unused, unsafe, depended on internal API functions on Windows, and used a hack on OSX). * Add `Atomic<type>`. * Make `Thread` handle thread names. * Add support for C++11 multi-threading. * Combine pthread and win32 sources. * Remove `ThreadStarted` (unused, unneeded). * Move some includes from the headers to the sources. * Move all of `Event` into its header (allows inlining with no new includes). * Make `Event` use `Semaphore` (except on Windows). * Move some porting functions into `Thread`. * Integrate logging with `Thread`. * Add threading test.
2015-08-20tileable flags are needed also without shaders because of filtersRealBadAngel
2015-08-20Remove use of engine sent texture tiling flags - theyre no longer neededRealBadAngel
2015-08-19Fix indianred and indigo of color-stringRui
2015-08-19Android: bypass broken wide_to_utf8 with wide_to_narrow (again)est31
This bypass had to be re-enabled as some users reported issues, even after the iconv build fix. While utf8_to_wide works well, wide_to_utf8 is quite broken on android, for some reason, and some devices (unrelated from build configuration).
2015-08-19Fix inventory replace bugest31
2015-08-18SAPI: Disable unlockable time profilingkwolekr
2015-08-16SEnv: Remove static_exists from ActiveObjects in deleted blockskwolekr
2015-08-16Remove unused functions.onkrot
2015-08-15Defaultsettings: Increase client_mapblock_limit to 5000paramat
2015-08-15Rollback: Fail on bad precondition instead of causing assertion errorkwolekr
2015-08-15Fix sneaking (fixes #665 and #3045)BlockMen
2015-08-15Remove unused function from connection.{cpp,h}nerzhul
2015-08-13minimap: Add ability to disable from serverkwolekr
2015-08-13game.cpp: Update cached settingsest31
2015-08-13Fix segfault caused by a8e238ed06ee8285ed4459e9deda3117419837f6Perttu Ahola
2015-08-13Add count based unload limit for mapblocksest31
2015-08-12SAPI: Track last executed mod and include in error messageskwolekr
2015-08-12Fix Lua PcgRandomest31
Before, this lua code led to a crash: local pcg = PcgRandom(42) local value = pcg:next() This was because if you called s32 PcgRandom::range(min, max) with the minimum and maximum possible values for s32 integers (which the lua binding code did), u32 PcgRandom::range(bound) got called with 0 as the bound. The bound however is one above the maximum value, so 0 is a "special" value to pass to this function. This commit fixes the lua crash by assigning the RNG's full range to the bound 0, which is also fits to the "maximum is bound - 1" principle, as (u32)-1 is the maximum value in the u32 range.
2015-08-10Treegen: Rename pine tree mapgen aliasparamat
2015-08-10Fix intlGUIEditBox leak and uninitialized value in Mapper (reported by valgrind)Kahrl
2015-08-10Make NetworkPacket respect serialized string size limitskwolekr
2015-08-10Display Lua memory usage at the time of Out-of-Memory errorkwolekr
Also misc. minor cleanups
2015-08-09Fix segfaults caused by the Environment not being initialized yetrubenwardy
2015-08-09Remove unused fileLoic Blot
2015-08-07Fix camera updates being toggled by N key in release mode (#2762)Kahrl
2015-08-06Fix detection of sneaking nodegregorycu
This fixes bug 1551
2015-08-06Fix BufferedPacket race condition (fixes #2983)kwolekr
This was caused by the use the non-threadsafe SharedBuffer in a threaded context.
2015-08-06Fix critical vulnerabilities and bugs with NetworkPacketkwolekr
2015-08-06Initialize random for verification key generation tooest31
2015-08-05Improve Script CPP API diagnosticskwolekr
2015-08-05connection: Make assertions non-fatal for received datakwolekr