aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-09-26Update JsonCPP to 1.8.3 (#6466)Loïc Blot
* Update JsonCPP to 1.8.3 * Fix deprecated functions Json::FastWriter, Json::StyledWriter and Json::Reader are marked deprecated since 1.1 and are deprecated in 0.8 but not shown at compilation time. Use new methods to serialize/deserialize
2017-09-26Add mute setting (toggled by the mute key and in the volume menu) (#6415)DTA7
* Add mute setting (toggled by the mute key and in the volume menu)
2017-09-26Implement mod communication channels (#6351)Loïc Blot
Implement network communication for channels * Implement ModChannel manager server side to route incoming messages from clients to other clients * Add signal handler switch on client & ModChannelMgr on client to handle channels * Add Lua API bindings + client packet sending + unittests * Implement server message sending * Add callback from received message handler to Lua API using registration method
2017-09-25Positional sound: Limit volume when closer than 1 nodeparamat
Change OpenAL distance model from AL_INVERSE_DISTANCE to AL_INVERSE_DISTANCE_CLAMPED to avoid excessive volume when very close to the sound location, for example MTG doors, and MTG fire sounds which are combined at an average position and often located in air nodes. Because AL_REFERENCE_DISTANCE has been reduced to 1 node (the distance under which gain is clamped), multiply volume by the same factor to keep sound gains the same as before, since the gain is calculated as: gain = (AL_REFERENCE_DISTANCE / distance)
2017-09-23Fix blocks written by vmanip not being marked as modifiedsfan5
This bug can be triggered by e.g. calling minetest.place_schematic() and stopping the server immediately afterwards.
2017-09-21Set placer to nil instead of a non-functional one in item_OnPlace (#6449)DTA7
* Set placer to nil instead of a non-functional one This requires nil checks in core.rotate_node and core.rotate_and_place.
2017-09-21on_death: Fix callback number of pushed arguments (Fixes #6451)SmallJoker
2017-09-21keycode.cpp: use std::unordered_map for keypress cacheLoic Blot
2017-09-20Fix compile error in openbsd (#6430)jcalve
Include the header that defines AF_INET and AF_INET6
2017-09-18Leveled nodebox: Change levels from 1/63rds to 1/64thsparamat
Add missing documentation of leveled nodebox to lua_api.txt, plus a little cleaning up nearby.
2017-09-17Biome API: Revert biomes, decos, ores being relative to water levelparamat
Feature is unnecessary and would greatly complicate future development, it would also make 'get biome at pos' extremely complex. Mgv7: Revert option to repeat surface biomes in floatlands, which depended on the above.
2017-09-17Biome generation: Fix layers of 'filler' nodes at biome y limitsparamat
Error was exposed by commit a1389c38658fe69c3bd25c3099bae9a4e51ed401 'nplaced' was not set to U16_MAX when biome 'stone' was placed, so when biome was recalculated in a column of stone, the 'nplaced' value caused a few remaining filler nodes to be placed. Occurs when the lower biome has a deeper depth of 'top' plus 'filler' than the upper biome.
2017-09-16Correct tooltip_append_itemstring terminology (#6421)DTA7
2017-09-16Fix addModsFormConfig typo (#6420)Greg
2017-09-16Generate biomes: Recalculate biome at biome lower limitparamat
Prevents biome nodes passing below the defined y_min of that biome.
2017-09-15Add setting to display the itemstring after the tooltip in the inventory. ↵DTA7
(#6413) * Add setting to display the itemstring after the tooltip in the inventory.
2017-09-15ServerEnv: Clean up object lifecycle handling (#6414)sfan5
* ServerEnv: Clean up object lifecycle handling
2017-09-15Customizeable max breath for players (#6411)SmallJoker
* Customizeable maximal breath for players
2017-09-14Cavegen: Avoid unsupported biome 'top' or 'filler' nodesparamat
For 3D noise tunnels only, replace unsupported biome 'top' and 'filler' nodes in tunnel roof with the defined biome 'stone'. This makes terrain created by 3D noise tunnels consistent with the rest of mapgen, which does exactly the same in this situation.
2017-09-14Object properties: Add 'glow', disables light's effect if negativeRob Blanckaert
The 'glow' value is added to the ambient light value. Negative 'glow' disables light's effect on object colour, for faking self-lighting, UI-style entities, or programmatic colouring in mods.
2017-09-12Network: Fix logging into older worlds with base64 hashesSmallJoker
2017-09-12Network: Remove large parts of deprecated legacy code (#6404)SmallJoker
Also remove the setting 'send_pre_v25_init' Keep old enum entries for obsolete commands
2017-09-12Fix failing linter (travis)sfan5
2017-09-12Make INodeDefManager::getIds return a vector, not a setKahrl
2017-09-11Implement client node dig predictionAuke Kok
Dig prediction allows clients to remove dug nodes without waiting for server acknowledgement. This patch allows mods to override dig prediction, it can either be turned off or a different "prediction node" can be selected.
2017-09-10Object properties: Fix loss of custom selectionboxSmallJoker
Only adjust it to the collisionbox value when the collisionbox was really set.
2017-09-10Fix incorrect buffer size calculation on creation of HUD status messagesrubenwardy
Fixes #6400
2017-09-10Schematic decorations: Add 'place_offset_y' placement parameterparamat
For precise control of schematic vertical position relative to the 'place_on' node. Avoids workarounds that add empty nodes to a schematic and therefore reduce performance. Also remove long-unused decoration cutoff code.
2017-09-10Fix empty legacy meta being persistedrubenwardy
2017-09-09Server: Calculate maximal total block sends dynamically (#6393)SmallJoker
The block sends per client is 1/2 when reaching the maximal player count.
2017-09-08Particles: Do not add digging particles for airlike nodes (#6392)SmallJoker
2017-09-07main.cpp: server-only builds should not include client headersLoic Blot
2017-09-05Use a Buffer instead of SharedBuffer in ConnectionCommandLoic Blot
This fixes #6373
2017-09-05Make HUD status messages translatable (#5795)Wuzzy
* Make HUD status messages translatable * Make strings in showStatusTextSimple translatable
2017-09-05Remove DSTACK keybind setting (#6378)Rui
2017-09-05Network protocol documentation: Add 'can_zoom' to version 36paramat
2017-09-04Implement minetest.register_can_bypass_userlimit (#6369)Loïc Blot
* Implement minetest.register_on_userlimit_check This new callback permits to bypass the max_users parameter with new mods condition, based on player name or IP Only one mod needs to permit it. Move core part for builtin privileges checks to builtin
2017-09-04Re-apply previous commit with a typo fixLoïc Blot
2017-09-04Revert "Network: fix a concurrency problem, by re-adding a copy in ↵Loïc Blot
ConnectionCommand" This reverts commit 5b04f5e7d231437b534f4cad39da78624d97c584.
2017-09-04Network: fix a concurrency problem, by re-adding a copy in ConnectionCommandLoïc Blot
2017-09-04World start time: Add setting for this, default unchangedparamat
2017-09-03Add build date to minetest --version and increase readability (#6331)you
2017-09-03Ores: Add stratum ore (#6352)Paramat
Creates a single undulating ore stratum that is continuous across mapchunk borders and horizontally spans the world. Due to being continuous is ideal for creating bands of alternative stone type running through cliffs and mountains, or underground layers. Add missing documentation of 'ore_param2' parameter.
2017-09-03Use member initialization list instead of the constructor's body (#6371)Dharkael
* Use member initialization list instead of the constructor's body
2017-09-03Network part requires SharedBuffers to be pass as valueLoic Blot
This can trigger unreproductible crashes due to concurrency problem on SharedBuffers This fixes #6354
2017-09-02Remove 3D noise from getSteps function (#6360)Vaughan Lapsley
2017-09-01Remove nodeupdate completely (#6358)Rui
2017-09-01Fix animation frame_speed and blend loosing precision due to incorrec… (#6357)sapier
* Fix animation frame_speed and blend loosing precision due to incorrect data type Add lua function set_animation_frame_speed to update the frame speed without resetting the animation to start
2017-08-30Zoom: Move enabling zoom to a new player object propertyparamat
Default enabled for no change in default behaviour. Remove 'zoom' privilege.
2017-08-30Remove DSTACK support (#6346)Loïc Blot
Debugstacks is not useful, we don't really use it, the DebugStack is not pertinent, gdb and lldb are better if we really want to debug.