aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-12-24Make minetest abort on lua panicRogier
Currently, lua does a regular exit() after a lua panic, which can make a problem hard to debug. Invoking FATAL_ERROR() instead will print some useful information, and abort() minetest, so that a debugger can be used to analyze the situation.
2016-12-21Don't ship with broken languages (#4940)est31
2016-12-21Disable mod security by default (closes #4944)sfan5
2016-12-21Fix warning reported by clang (possible bug in Settings lua api)sfan5
2016-12-20Limit drawing rect of selected item to viewport size (fixes #4341)sfan5
2016-12-20Security: Fix resolving of some relative pathsShadowNinja
Trying to resolve a path with RemoveRelativePathComponents that can't be resolved without leaving leading parent components (e.g. "../worlds/foo" or "bar/../../worlds/foo") will fail. To work around this, we leave the relative components and simply remove the trailing components one at a time, and bail out when we find a parent component. This will still fail for paths like "worlds/foo/noexist/../auth.txt" (the path before the last parent component must not exist), but this is fine since you won't be able to open a file with a path like that anyways (the O.S. will determine that the path doesn't exist. Try `cat /a/../etc/passwd`).
2016-12-20Fix RemoveRelatvePathComponentsShadowNinja
This used to return "/foo" for "../foo" when it should return the enpty string (i.e., error removing all relative components).
2016-12-20Mod security: Allow read-only access to all mod pathsShadowNinja
2016-12-19Fix occlusion culling, again (#4930)lhofhansl
2016-12-18Fix occlusing counting (#4922)lhofhansl
2016-12-18Fix unnecessary block loading (#4847)Dániel Juhász
This commit makes the game load blocks only if they are not in the memory.
2016-12-16Mapgen: Make mgv7 the default in UIAuke Kok
The actual menu default comes from defaultsettings.cpp.
2016-12-14Cavegen: Wider tunnels in mgflat, mgfractal, mgvalleysparamat
As mgv7 is now the default mapgen i re-checked its tunnel width on request, discovered they needed to be wider, and have made this change. This commit widens the identical 3D noise tunnels in the other mapgens in exactly the same way.
2016-12-14Update minetest.conf.example and settings_translation_file.cppest31
2016-12-13Mgv7: Change default cave width to 0.09sfan5
2016-12-12Fix segfault on startup error on Androidrubenwardy
2016-12-12Fix camera jumping on Android when panning past 0/360 markrubenwardy
2016-12-12View range: Set maximum to 4000 nodesRogier
The network protocol does not support larger than 255 mapblocks.
2016-12-12Mapgen: Make mgv7 the default mapgenparamat
2016-12-11Fix computation of viewing range (in blocks) sent to server (#4882)Rogier-5
Fixes #4878 Also remove an artificial viewing range reduction that (presumably) was added to compensate for miscomputed viewing ranges, and that doesn't seem to be needed any more (thanks to lhofhansl).
2016-12-08Simple decorations: Fix range check for deco->deco_param2Auke Kok
Allow any int value, and properly range check it before casting.
2016-12-07Simple deco: Allow setting param2 value on placementAuke Kok
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 Hofhansl
Optimise the fetching of global settings 'camera_smoothing', 'cinematic' and 'cinematic_camera_smoothing'. Cache 'cam_smoothing'.
2016-12-07Liquids: Update flow on block loadMillersMan
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 neighbourMillersMan
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 exceptionMillersMan
2016-12-03Optimize block sent: Fix rendering issueLars Hofhansl
2016-12-03Biomes: Increase heat and humidity noise spread to 1000paramat
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-01Mgv7 floatlands: Various improvementsparamat
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 ↵lhofhansl
settings. (#4811) Optimize/adjust blocks and active blocks sent at the server based on client settings.
2016-11-28Allow restricting detached inventories to one playersfan5
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)juhdanad
Since light_source>15 causes crash, it must be limited.
2016-11-27Fix filepath > RemoveRelativePathComponent unittestsfan5
(was broken by e4ee6548afd01040046ee3780d0fbb121d141251)
2016-11-26Wieldhand: Allow overriding the handTeTpaAka
2016-11-24Fix fs::RemoveRelativePathComponents for paths with a leading dot componentShadowNinja
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.linesShadowNinja
It used to drop all of the return values from the insecure version of the function.
2016-11-24Fix secure io.open without modeShadowNinja
2016-11-23Make supplying empty formspec strings close the formspec (#4737)orwell96
This will only happen if the formname matches or if formname is "".
2016-11-23No functional changes. Credit gcuZeno-
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)ShadowNinja
This improves rendering performance by ~40%
2016-11-18Particles: Make attached particle spawners respect the parent's yaworwell96
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-15Mgv7: Add optional floatlands, disabled by defaultparamat
2016-11-14Revert "Adding particle blend, glow and animation (#4705)"sfan5
This reverts commit 93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.
2016-11-15Adding particle blend, glow and animation (#4705)Foghrye4
2016-11-13Fix crash when attached object no longer existsRogier
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)raymoo
2016-11-12Halo: Highlight selected faceRealBadAngel
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)lisacvuk
* 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-5
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-5
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.