aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Retrieve a small cone of blocks in the direction of the players velocity.Lars Hofhansl2017-10-13
| | | | | | This helps retrieving the right set of blocks when the player is falling, traveling on cart, or in general traveling in a direction different from the view direction.
* Formspec: Fallback to 'label' in readonly textarea[]SmallJoker2017-10-13
| | | | Guarantees backwards compatibility for this formspec element change
* Simple decorations: Make 'place_offset_y' usable with simple decorationsparamat2017-10-10
| | | | | | Necessary for placing the base cube of 'plantlike_rooted' drawtype in the seabed instead of on it. Useful for placing decorations sunk into, or buried in, the ground.
* Smooth lighting: Fix light leaking through edge-connected cornersDTA72017-10-10
| | | | | | | | | | | | | For solid nodes, the lighting at a corner becomes face-dependent, which means that only the four nodes in face-direction contribute to the lighting (getSmoothLightSolid). For special nodes, which use the lighting values at the eight corners of a node, the lighting is not face-dependent, but certain nodes of the eight surrounding nodes of a corner (here indices 4, 5, 6 and 7) can be obstructed. Ambient occlusion now also occurs for solid nodes, if two, three or four of the four nodes in face-direction are solid.
* Fix warnings introduced by 9b8fa99fe30728c1fcfa73cdf74211841bdae9fbLoic Blot2017-10-10
|
* Thread: fix a crash on Windows due to data race condition on ↵Loïc Blot2017-10-10
| | | | Thread::m_start_finished_mutex (#6515)
* NetworkPacket::putRawPacket: resize m_data to datasize + memcpyLoic Blot2017-10-10
| | | | | | In some cases NetworkPacket was created using default constructor and m_data is not properly sized. This fixed out of bounds memory copy Also use memcpy instead of std::vector affectation to enhance packet creation
* Simple decorations: Add 'param2_max' parameter for random param2paramat2017-10-09
| | | | | | | If 'param2_max' is not used, parameter 'param2' works as before for compatibility. If 'param2_max' is used, 'param2' and 'param2_max' become the lower and upper bounds of a per-decoration random param2.
* Travis: Update clang from 4.0 to 5.0 (#6467)Loïc Blot2017-10-09
| | | | * Update clang from 4.0 to 5.0
* Formspec: textarea with scrollbar improvementsadrido2017-10-09
| | | | | | | | | | | | Increase scrollrate depending on fontsize Scroll on mousewheel Allow scrolling and marking text on non writable textareas Update lua api about readonly mode Show scrollbar if text overflows
* FormSpec : Add an auto vertical scrollbar to the textareaadelcoding12017-10-09
|
* Replace deprecated WINAPI GetVersionInfoEx (#6496)adrido2017-10-07
| | | | * Replace deprecated WINAPI GetVersionInfoEx
* Do not grant all privs to the admin - changes game behavior (#6460)lhofhansl2017-10-07
| | | | | | * Do not grant all privs to admins. * Default give_to_admin to give_to_singleplayer
* Add setting for near plane distance. (#6395)Rob Blanckaert2017-10-07
| | | | | | | * Allow setting the near plane * - Add near_plane limit of 0.5 to prevent x-ray. - Add more details to near_plane setting.
* Unkown nodes: Provide position on interact (#6505)SmallJoker2017-10-07
| | | | * Unkown nodes: Provide position on interact
* settingtypes.txt: Update zoom description (#6443)James Alexander Stevenson2017-10-06
|
* Move register_on_modchannel_signal() (#6497)James Alexander Stevenson2017-10-05
| | | Moved from lua_api.txt to client_lua_api.md.
* [CSM] Add callback on open inventory (#5793)Vincent Glize2017-10-02
|
* ParticleSpawner::step cleanup and rotation fix (#6486)SmallJoker2017-10-02
| | | | * Particles: Move spawner code to a separate fucntion
* CAO footstep sounds: Reduce gain to balance volumeparamat2017-10-02
|
* Stratum ore: Allow use with no noise for simple horizontal strataparamat2017-10-01
| | | | | | | | If either of the 2 noise parameters are omitted the ore will occur from y_min to y_max in a simple horizontal stratum. As this does not compute noise performance improves, and is ideal for placing many layers. Clean up some nearby ore documentation.
* game.cpp: remove dead code for proto v25 compat (#6481)Loïc Blot2017-09-30
| | | Protocol v25 is not supported anymore
* Fix attached particle spawners far from spawn (#6479)raymoo2017-09-30
| | | | | | | * Fix attached particle spawners far from spawn When far from spawn, attached particle spawners did not spawn particles.
* Make Player::peer_id server-side only and add getters and setters (#6478)Loïc Blot2017-09-30
| | | | | | | * Make Player::peer_id server-side only and add getters and setters Player::peer_id has no sense client side, move it to server, make it private and add setter and getter Also add some PEER_ID_INEXISTENT instead of harcoded 0
* Localplayer: Fix disable_jump effect and getStandingNodePos()SmallJoker2017-09-28
| | | | Leave the old move code untouched.
* Lua_api.txt: Clarify arguments of functions, plus some cleanupHybrid Dog2017-09-28
|
* Document orientation parameter of set_attach (#6473)raymoo2017-09-28
|
* Add static_save property to luaentites to not save them statically. (#5112)orwell962017-09-28
| | | | | | | | | | | | * Add no_static_save property to luaentites to not save them statically. This allows for temporary objects that would get deleted anyway as soon as they are loaded again without the static saving overhead. * Use positive meaning for static_save object property * Invert meaning also for the LUA parameter Note: getboolfield() does not change &result when field does not exist, so it defaults to the default value in the header file, which is 'true'. * Extend push_object_properties()
* Server: affect bind_addr on constructor instead of start() (#6474)Loïc Blot2017-09-28
| | | bind_addr is already ready when using constructor as we read is.IPv6 from it, instead pass the whole address
* Fix some forgotten u16 -> session_t in ad7daf7b52348e1b71aa803be10de5b2134cba11Loic Blot2017-09-27
|
* Fix recent commit: std::max -> std::fmax for floats (#6469)Paramat2017-09-27
| | | | Fixes commit a455297d297c0819a7eff89e51e5f01a5ac731c3 <cmath> header was already present in commit.
* Lint fixLoic Blot2017-09-27
|
* Add session_t typedef + remove unused functions (#6470)Loïc Blot2017-09-27
| | | | | | * Add session_t typedef + remove unused functions u16 peer_id is used everywhere, to be more consistent and permit some evolutions on this type in the future (i'm working on a PoC), uniformize u16 peer_id to SessionId peer_id
* Update version correctly again (#6462)SmallJoker2017-09-26
| | | | | | | * Update version correctly again Partial revert of PR 6331 * It doesn't update automatically
* Update JsonCPP to 1.8.3 (#6466)Loïc Blot2017-09-26
| | | | | | | | | | * 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
* preview: try to send mod channel messages 4 seconds after joining, not after ↵Loic Blot2017-09-26
| | | | loading mod
* Add mute setting (toggled by the mute key and in the volume menu) (#6415)DTA72017-09-26
| | | | * Add mute setting (toggled by the mute key and in the volume menu)
* Implement mod communication channels (#6351)Loïc Blot2017-09-26
| | | | | | | | | | 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
* Can_zoom player object property: Add missing documentationparamat2017-09-25
|
* Positional sound: Limit volume when closer than 1 nodeparamat2017-09-25
| | | | | | | | | | | | | 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)
* Fix blocks written by vmanip not being marked as modifiedsfan52017-09-23
| | | | | This bug can be triggered by e.g. calling minetest.place_schematic() and stopping the server immediately afterwards.
* Set placer to nil instead of a non-functional one in item_OnPlace (#6449)DTA72017-09-21
| | | | | | * Set placer to nil instead of a non-functional one This requires nil checks in core.rotate_node and core.rotate_and_place.
* on_death: Fix callback number of pushed arguments (Fixes #6451)SmallJoker2017-09-21
|
* keycode.cpp: use std::unordered_map for keypress cacheLoic Blot2017-09-21
|
* Fix compile error in openbsd (#6430)jcalve2017-09-20
| | | Include the header that defines AF_INET and AF_INET6
* Rooted plantlike drawtype: Add remaining documentationparamat2017-09-19
| | | | Plus a small clarification of 'glasslike framed' documentation.
* Leveled nodebox: Change levels from 1/63rds to 1/64thsparamat2017-09-18
| | | | | Add missing documentation of leveled nodebox to lua_api.txt, plus a little cleaning up nearby.
* Biome API: Revert biomes, decos, ores being relative to water levelparamat2017-09-17
| | | | | | | 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.
* Biome generation: Fix layers of 'filler' nodes at biome y limitsparamat2017-09-17
| | | | | | | | | 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.
* Fix Rotate Node Placement (#6424)tenplus12017-09-16
| | | This properly checks for creative mode or privilege when using fixed rotate_node() function.