aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-09-19Mgv5/6/7: Re-add #include profiler.h as commented-out optionparamat
2015-09-19Blob ore: Fix partial blobsparamat
2015-09-17Send proper block to old clients for swap_node callsest31
The legacy code added in commit d879a539cd19ddd1ee34afec2512fb2238de2822 - "Add minetest.swap_node" for sending the whole mapblock to older clients on the case of a node modification with swap_node, had the problem that the block chosen to be sent to the client was referenced with node coordinates and not with block coordinates, resulting in getting the wrong block sent to the client.
2015-09-17Ore: Add puff ore typekwolekr
2015-09-16Fix object position border checkingest31
Borders have to be converted into BS format in order to be accurately comparable to object positions.
2015-09-15Disallow placing entities outside safe boundariesest31
Entity positions are serialized as F1000. Disallow placing entities outside safe borders with the minetest.add_entity call. Note that this patch only enforces those boundaries for placing entities, moving entities that move outside boundaries aren't affected. Thanks to @nanepiwo for pointing this out.
2015-09-14Firelike drawtype: Improve codeparamat
Remove unusable fine rotation by param2 Remove unused and redundant code Fix code style issues
2015-09-14Serialisation: documentation fixes, clarifying renames and whitespace fixesest31
1. Do two renames: * SER_FMT_CLIENT_VER_LOWEST -> SER_FMT_VER_LOWEST_WRITE * SER_FMT_VER_LOWEST -> SER_FMT_VER_LOWEST_READ Now the two define values are consistently named with the _WRITE defines SER_FMT_VER_{HIGHEST,LOWEST}_WRITE, and to better point out what the two serialisation versions actually are for. 2. wrap some lines in doc/worldformat.txt, and point out that the node timers are serialized at a later point, as this can cause confusion about what now happens (if one doesn't strictly read the if block's conditions). 3. some whitespace fixes in NodeTimerList::serialize, and one new comment.
2015-09-13Ore: Add ore sheet column height range selectionkwolekr
Modders are now able to select the range of ore column height, and the midpoint at which they 'grow' starting from. This commit adds three new parameters for the 'sheet' ore type: column_height_min, column_height_max, and column_midpoint_factor. clust_size is now deprecated for this ore type.
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