aboutsummaryrefslogtreecommitdiff
path: root/src/collision.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-12-07Update credits (#4827)Zeno-1-8/+5
Update credits
2016-12-07Simple deco: Allow setting param2 value on placementAuke Kok4-2/+12
Schematics can already be placed with a param2 value, but not simple 1-node plant decorations of the simple type. This adds a `param2` field to the simple deco type that is checked to be between 0 and 255, and put to the placed node at mapgen. This can be used to put a degrotate value in, or e.g. a fill value for leveltype nodes, or a place_param2 value at mapgen placement, or vary the shape of meshoptions plantlike drawtype.
2016-12-07Fog: Make fraction of visible distance at which fog starts configurableLars Hofhansl8-12/+43
Optimise the fetching of global settings 'camera_smoothing', 'cinematic' and 'cinematic_camera_smoothing'. Cache 'cam_smoothing'.
2016-12-07Liquids: Update flow on block loadMillersMan4-2/+266
When loading a block add liquid-nodes that might flow away or spread to neighbours to the transforming_liquid queue.
2016-12-07Liquids: Preserve flow state if 'ignore' is a neighbourMillersMan1-4/+15
Prevent waterfalls from falling down or streams from flowing away when the source node is in an unloaded block - Nodes near a CONTENT_IGNORE node will be interpreted as if the ignored node is a liquid node that just supports the current state of the nodes in question.
2016-12-07Map::isValidPosition: Return false instead of throwing exceptionMillersMan1-1/+1
2016-12-03Optimize block sent: Fix rendering issueLars Hofhansl3-4/+4
2016-12-03Biomes: Increase heat and humidity noise spread to 1000paramat1-2/+2
To avoid smaller biomes when extra biomes are added to MTGame. The addition of bushes in MTGame grasslands makes wood resources easier to find and less distant, so slightly larger biomes are now acceptable, but also desirable to encourage travel and create more sense of adventure.
2016-12-03Don't send a join message in singleplayer mode.red-0011-1/+3
2016-12-02Fix incorrect docs about minetest.hud_replace_builtin (#4833)Amaz1-4/+4
Fixes https://github.com/minetest/minetest/issues/4832
2016-12-02Very small documentation fix. (#4830)Bluebird1-2/+2
2016-12-01Lua_api.txt: Clarify use of looping soundsparamat1-6/+15
2016-12-01Mgv7 floatlands: Various improvementsparamat1-5/+7
Floatland base terrain underside was too thin, causing excessive water leakage through tunnels under lakes, now make it thicker. Floatland mountain terrain had a rim 1 node thick which made it bare stone, now make it 2 nodes thick to merge with the floatland base terrain rim and to have a layer of biome material. Make mountain terrain more exponentially shaped by altering the exponent. Remove unnecessary and potentially ugly MYMAX() applied to n_base_height.
2016-11-30Optimize/adjust blocks/ActiveObjects sent at the server based on client ↵lhofhansl11-28/+99
settings. (#4811) Optimize/adjust blocks and active blocks sent at the server based on client settings.
2016-11-28Allow restricting detached inventories to one playersfan55-13/+25
This combats the problem of sending the hundreds of "creative" / "armor" or whatever detached invs that exist on popular servers to each and every player on join or on change of said invs.
2016-11-28Limit light_source in the engine (#4814)juhdanad3-0/+9
Since light_source>15 causes crash, it must be limited.
2016-11-27Fix filepath > RemoveRelativePathComponent unittestsfan51-1/+1
(was broken by e4ee6548afd01040046ee3780d0fbb121d141251)
2016-11-26Wieldhand: Allow overriding the handTeTpaAka6-4/+64
2016-11-24Fix fs::RemoveRelativePathComponents for paths with a leading dot componentShadowNinja1-1/+1
Previously, paths like ./worlds would be resolved to /worlds since the leading dot was considered just as irrelevant as a dot in the middle of the path.
2016-11-24Fix secure io.linesShadowNinja1-2/+2
It used to drop all of the return values from the insecure version of the function.
2016-11-24Fix secure io.open without modeShadowNinja1-2/+7
2016-11-23Make supplying empty formspec strings close the formspec (#4737)orwell964-10/+38
This will only happen if the formname matches or if formname is "".
2016-11-23No functional changes. Credit gcuZeno-1-1/+1
This merge doesn't make any functional changes. It's a trivial style fix so that @gregorycu can be dual credited along with shadowninja for PR #4800
2016-11-23Fix superflous shader setting updates (#4800)ShadowNinja3-127/+249
This improves rendering performance by ~40%
2016-11-20Tool break: Reduce gain of break soundsparamat1-1/+1
2016-11-18Particles: Make attached particle spawners respect the parent's yaworwell965-10/+37
Position, velocity and acceleration vectors of particles are rotated by the yaw of the parent object so that they are truly relative to it. Clarify new attached particle spawner behavior in lua_api.txt.
2016-11-18Builtin/../item: Enable tool breaking soundsAuke Kok2-0/+4
If a tool wears out and is destroyed, it's itemstack count goes to 0, and we can optionally play a breaking sound. This patch implements playing a breaking sound when this occurs. Sounds need to be added to the tool itemdef registration as the sound name string in the .sound.breaks member.
2016-11-16Introduce builtin_shared and use it to fix #4778est313-5/+13
Fixes #4778 which was about the error: ServerError: Lua: Runtime error from mod '' in callback item_OnPlace(): /usr/local/share/minetest/builtin/game/item.lua:278: attempt to call global 'check_attached_node' (a nil value) The issue was a regression of commit 649448a2a91fbf3e944b2f2e739f4e2292af1df0 "Rename nodeupdate and nodeupdate_single and make them part of the official API"
2016-11-17Fix unexplained shader issue (glsl compiler bug??) (#4757)Rogier-53-6/+42
2016-11-15Lua_api.txt: Naming convention for custom item/entity fieldsWuzzy1-2/+9
Custom (non-engine) field names of items and entities are allowed. This is now documented in lua_api.txt. Field names beginning with an underscore are now reserved for mod use, the engine must not introduce any fields beginning with an underscore.
2016-11-15Mgv7: Add optional floatlands, disabled by defaultparamat4-68/+221
2016-11-14Revert "Adding particle blend, glow and animation (#4705)"sfan515-800/+81
This reverts commit 93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.
2016-11-15Adding particle blend, glow and animation (#4705)Foghrye415-81/+800
2016-11-14Rename nodeupdate and nodeupdate_single and make them part of the official APIest312-15/+40
Now, the renamed forms of nodeupdate and nodeupdate_single are part of the official API. As nodeupdate has been used by Minetest Game and in mods despite of not being part of the official API, we ease the transition by still supporting it for the 0.4.15 release. After the release, the two functions can be removed. The removal will not violate the stability promise, as that promise only includes the official and documented API. Also, make some formerly global functions local. They most likely haven't been used by mods, therefore they won't get stubs with deprecation warnings, hard erroring directly.
2016-11-13Install texture_packs.txt to DOCDIRYutao Yuan1-0/+1
2016-11-13Fix crash when attached object no longer existsRogier1-2/+3
Active objects that are attached to other objects are not safe from deletion. As a result, the parent object may have a reference to an id of a child's that no longer exists. If at some point an attempt is made to manipulate the child, enviromment->getActiveObject(child-id) returns NULL. Using the NULL pointer causes the crash...
2016-11-12Add control information to player interacts (#4685)raymoo4-49/+76
2016-11-12Nodeupdate: Remove documentation in lua_api.txtparamat1-5/+0
In preparation for nodeupdate being renamed and made official API in future.
2016-11-12Halo: Highlight selected faceRealBadAngel6-2/+39
This is a slightly modified and cleaned up version of #3774 by RealBadAngel. By sofar: Remove color change (just make it lighter) and some minor cleanups.
2016-11-11Fixed tooltips not resizing with \n (#4766)lisacvuk1-1/+1
* Fixed tooltips not resizing with \n * Fixed it for 1.8.4 too. * Fixed not working with Freetype disabled. * Modified it to use Zeno-'s solution.
2016-11-11Fix incorrect distance computation for visible blocks (#4765)Rogier-52-8/+9
The client would not compute the distance from the camera to to a mapblock correctly. The result was that blocks that were in view (i.e. not beyond the fog limit) would not be rendered. With the improved distance computation, a range adjustment that existed in clientiface.cpp is no longer required.
2016-11-10Fix mob deserialization errors in the client (#4743)Rogier-51-16/+32
The problem was seen while using the mobf mod package. The problem happens when the server serializes entity attachments. Sometimes, such attachments no longer exist. The serialization code skips those. However, the total number of attachments was serialized earlier. Therefore the client expects more than it gets, and logs a serialization error.
2016-11-09Occlusion culling: Add comments, minor code improvementsparamat1-4/+9
Remove unnecessary code. Use '/ 2.0f' because endoff is a float.
2016-11-08Conf.example: Document block_send_optimize_distanceLars Hofhansl1-0/+8
Add missing documentation.
2016-11-08Sky: Draw bottom of the sky box in 'cloudy fog color'Lars Hofhansl1-0/+8
To be identical to the lower half of the skybox sides. Now needed as the skybox base is often seen due to increasingly vertical mapgens.
2016-11-08Retrieve mapblocks from the server in a sphere, not a cubeLars Hofhansl1-1/+2
Use unused range argument in 'isBlockInSight()' to limit mapblock sends to a sphere of radius 'max block send distance'.
2016-11-08Occlusion culling: Fix 'end offset' distance, half this for centre pointLars Hofhansl1-2/+3
'endoff', the maximum diagonal of a mapblock, was incorrectly calculated. Half this value for the centre point of the mapblock.
2016-11-07Don't use reduced vertical limits for mapblock send and generationLars Hofhansl1-10/+0
2016-11-07Builtin/../falling: Fix bugs caused by 'ignore' nodesparamat1-14/+19
Original commit by t4im, rebased and developed by paramat. Fix CONTENT_IGNORE being replaced by falling nodes or causing large areas of sand to collapse into itself. Format some conditional code for clarity. Add and clarify some comments.
2016-11-07Privileges: Only give singleplayer 4 basic privsWuzzy1-11/+39
- interact - shout - privs - basic_privs