oweals/minetest.git
6 years agoLua_api.txt: Re-order some sections. Alphabeticise class reference (#7487)
Paramat [Tue, 26 Jun 2018 01:34:27 +0000 (02:34 +0100)]
Lua_api.txt: Re-order some sections. Alphabeticise class reference (#7487)

6 years agoFix MurmurHash implementation to really be unaligned (#7482)
sfan5 [Mon, 25 Jun 2018 23:12:09 +0000 (01:12 +0200)]
Fix MurmurHash implementation to really be unaligned (#7482)

6 years agoLua_api.txt: Replace `engine.*` with `core.*` (#7474)
Anand S [Sun, 24 Jun 2018 20:18:25 +0000 (01:48 +0530)]
Lua_api.txt: Replace `engine.*` with `core.*` (#7474)

6 years agoDecoration API: Add lightweight ability to have complete coverage (#7456)
Paramat [Sun, 24 Jun 2018 16:14:18 +0000 (17:14 +0100)]
Decoration API: Add lightweight ability to have complete coverage (#7456)

When the noise value or fill_ratio >= 10.0 complete coverage is enabled.
This disables random placement to avoid redundant multiple placements
at one position. Instead, 1 decoration per surface node is placed by
looping across each division.

'10' was chosen as this is the fill_ratio that previously created
very near complete coverage. The complete coverage feature therefore
integrates smoothly when noise is used for variable decoration density.

'fill_ratio = 10' should be used by modders who want a decoration
placed on every surface node. Compared to before such a decoration
placement will be 10 times faster.

6 years agoFix rtt >= 0.0f assertion and free_move crash
SmallJoker [Sun, 24 Jun 2018 12:35:29 +0000 (14:35 +0200)]
Fix rtt >= 0.0f assertion and free_move crash

6 years agoAndroid: Use correct temporary path (#7463)
stujones11 [Sat, 23 Jun 2018 20:38:19 +0000 (21:38 +0100)]
Android: Use correct temporary path (#7463)

6 years agoRTT fixes (#7428)
you [Sat, 23 Jun 2018 07:16:01 +0000 (09:16 +0200)]
RTT fixes (#7428)

* Few code updates

* Do not show average RTT before timing out

* Fix unwanted integer division in RTTStatistics

* Fix float format, prettier jitter calculation

* Use +=, 0.1f -> 100.0f for stronger average updates

6 years agoFix crash caused by Lua error during startup (#7473)
red-001 [Fri, 22 Jun 2018 19:04:41 +0000 (20:04 +0100)]
Fix crash caused by Lua error during startup (#7473)

6 years agoFix ipv6_server=true not accepting IPv4 connections on Windows (#7471)
sfan5 [Fri, 22 Jun 2018 18:54:23 +0000 (20:54 +0200)]
Fix ipv6_server=true not accepting IPv4 connections on Windows (#7471)

6 years agoREADME.md: Improve formatting for consistency (#7472)
Anand S [Fri, 22 Jun 2018 12:00:49 +0000 (17:30 +0530)]
README.md: Improve formatting for consistency (#7472)

* README.md: Improve formatting for consistency

6 years agoRemove misleading documentation about IPv6 server announcing
sfan5 [Fri, 22 Jun 2018 07:42:42 +0000 (09:42 +0200)]
Remove misleading documentation about IPv6 server announcing

6 years agoBiome API: Fix absent water decorations and dust, in deep water (#7470)
Paramat [Thu, 21 Jun 2018 18:28:54 +0000 (19:28 +0100)]
Biome API: Fix absent water decorations and dust, in deep water (#7470)

Previously, the biomemap was 'BIOME_NONE' for a mapchunk column if a
stone surface was not found in it, causing water surface decorations
and water surface dust to fail.

Store the biome ID of the biome calculated at a water surface and add
it to the biomemap if the biomemap is 'BIOME_NONE' for the mapchunk
column. The biome calculated at a stone surface still has priority
for the biomemap entry, as it should.

Edit an incorrect comment.

6 years agoREADME.md: Improve version scheme text (#7465)
Paramat [Wed, 20 Jun 2018 12:11:13 +0000 (13:11 +0100)]
README.md: Improve version scheme text (#7465)

6 years agoLua_api.txt: Fix incorrect vector section directive (#7466)
Anand S [Wed, 20 Jun 2018 12:05:56 +0000 (17:35 +0530)]
Lua_api.txt: Fix incorrect vector section directive (#7466)

6 years agoBiome dust: Revert fix that added dust to mod structures (#7464)
Paramat [Tue, 19 Jun 2018 21:09:42 +0000 (22:09 +0100)]
Biome dust: Revert fix that added dust to mod structures (#7464)

Revert commit 99143f494711034068685b6ee845ce19fa09d7d9 and commit
f4ca830abe1aa22875c99b31bf2ee56e26f83f05.

These commits caused biome dust to be applied even when there was no core
mapgen terrain in a mapchunk column. So the dust, which overgenerates,
then appeared on structures added by mods in 'on_generated', such as
floatlands, asteroids or above-surface realms.

6 years agoUpdate to new ContentDB API
rubenwardy [Mon, 18 Jun 2018 19:47:38 +0000 (20:47 +0100)]
Update to new ContentDB API

6 years agoRemove deprecated functions from menu_lua_api.txt (#7455)
Anand S [Sun, 17 Jun 2018 08:41:21 +0000 (14:11 +0530)]
Remove deprecated functions from menu_lua_api.txt (#7455)

6 years agoProvide Xorg/net wm process ID (#7445)
thoughtjigs [Sun, 17 Jun 2018 08:41:07 +0000 (01:41 -0700)]
Provide Xorg/net wm process ID (#7445)

Adding support for _NET_WM_PID as defined in Extended Window Manager Hints
Move verbose messaging to setupXorgTopLevelWindow method as Xorg messages should only occur when running in Xorg env.
Irrlicht returns the XDisplay as a void* and XWindow as an unsigned long so reinterpret those as the appropriate type. Also fixed a spaces for tab formating issue

6 years agoVersion scheme change: 0.5.0 -> 5.0.0 (#7449)
Loïc Blot [Fri, 15 Jun 2018 07:16:48 +0000 (09:16 +0200)]
Version scheme change: 0.5.0 -> 5.0.0 (#7449)

* Version scheme change: 0.5.0 -> 5.0.0

6 years agoRemove Server::m_ignore_map_edit_events (noop)
Loic Blot [Fri, 15 Jun 2018 06:41:40 +0000 (08:41 +0200)]
Remove Server::m_ignore_map_edit_events (noop)

6 years agoFix release script
Loïc Blot [Thu, 14 Jun 2018 17:40:23 +0000 (19:40 +0200)]
Fix release script

client_lua_api.md -> client_lua_api.txt

6 years agoMinimal: Disable disruptive formspec test by default (#7423)
Wuzzy [Thu, 14 Jun 2018 17:32:10 +0000 (19:32 +0200)]
Minimal: Disable disruptive formspec test by default (#7423)

* Minimal: Explicit log levels

* Minimal: Formspec test now disabled by default

This is done because the formspec test was disruptive.
This test can now be toggled with server command test_formspec first.

6 years agoServer: move shutdown parts to a specific shutdown state object (#7437)
Loïc Blot [Wed, 13 Jun 2018 19:58:34 +0000 (21:58 +0200)]
Server: move shutdown parts to a specific shutdown state object (#7437)

* Server: move shutdown parts to a specific shutdown state object

6 years agoMake os.tempfolder work correctly for MinGW & MSVC (#7443)
nOOb3167 [Wed, 13 Jun 2018 11:22:17 +0000 (13:22 +0200)]
Make os.tempfolder work correctly for MinGW & MSVC (#7443)

6 years agoREADME.md: Remove 'unfinished' section. (#7440)
Paramat [Tue, 12 Jun 2018 14:43:01 +0000 (15:43 +0100)]
README.md: Remove 'unfinished' section. (#7440)

6 years agoAdd hasprivs chat command (#7336)
Anand S [Tue, 12 Jun 2018 13:39:43 +0000 (19:09 +0530)]
Add hasprivs chat command (#7336)

Require 'basic_privs' priv
Only the online players are listed.

6 years agoAndroid: gradle 3.1.3 is not available on mavenCentral
Loic Blot [Mon, 11 Jun 2018 18:37:17 +0000 (20:37 +0200)]
Android: gradle 3.1.3 is not available on mavenCentral
Also update wrapper

6 years agoAndroid: fix tools versions
Loïc Blot [Mon, 11 Jun 2018 17:19:06 +0000 (19:19 +0200)]
Android: fix tools versions

Resync with stable-0.4

6 years agoAndroid: fix assets cleanup
Loïc Blot [Mon, 11 Jun 2018 17:18:34 +0000 (19:18 +0200)]
Android: fix assets cleanup

6 years agoFix the /shutdown command (#7431)
SmallJoker [Mon, 11 Jun 2018 11:43:12 +0000 (13:43 +0200)]
Fix the /shutdown command (#7431)

6 years agoDisable clang-tidy when no C/C++ files has been modified.
Loic Blot [Sun, 10 Jun 2018 16:33:33 +0000 (18:33 +0200)]
Disable clang-tidy when no C/C++ files has been modified.

6 years agoBump android version for next release
Loic Blot [Sun, 10 Jun 2018 16:28:41 +0000 (18:28 +0200)]
Bump android version for next release

6 years agoAndroid: use c++_shared library instead of c++_static
Loic Blot [Sun, 10 Jun 2018 15:46:47 +0000 (17:46 +0200)]
Android: use c++_shared library instead of c++_static
MT doesn't launch without that

6 years agoFix many Android build issues
Loic Blot [Sun, 10 Jun 2018 14:59:34 +0000 (16:59 +0200)]
Fix many Android build issues

It remains one issue with MT itself and rtti

6 years agoFix typo (GH#7421)
number Zero [Sat, 9 Jun 2018 21:52:30 +0000 (00:52 +0300)]
Fix typo (GH#7421)

6 years agoFix narrow/utf8 difference in incoming/outcoming messages
number Zero [Sat, 9 Jun 2018 14:31:35 +0000 (17:31 +0300)]
Fix narrow/utf8 difference in incoming/outcoming messages

6 years agoMapgen flags: Add 'biomes' global mapgen flag (#7355)
Paramat [Fri, 8 Jun 2018 22:24:36 +0000 (23:24 +0100)]
Mapgen flags: Add 'biomes' global mapgen flag (#7355)

Previously the only way to disable biomes was to 'clear' the registered
biomes in a mod, but this method causes large amounts of unnecessary
processing:
1. Calculation of 4 2D noises.
2. Looping through all nodes of a mapchunk replacing nodes with identical
nodes.
The new flag disables those operations.

6 years agoLua_api.txt: Warn of errors possible with VoxelArea:index()/indexp() (#7422)
Paramat [Thu, 7 Jun 2018 23:46:10 +0000 (00:46 +0100)]
Lua_api.txt: Warn of errors possible with VoxelArea:index()/indexp() (#7422)

6 years agoStop autoforward on BACKWARD key-press (#7417)
tukkek [Wed, 6 Jun 2018 12:31:34 +0000 (09:31 -0300)]
Stop autoforward on BACKWARD key-press (#7417)

6 years agoCSM/SSM: Add on_mods_loaded callback (#7411)
Loïc Blot [Wed, 6 Jun 2018 10:53:59 +0000 (12:53 +0200)]
CSM/SSM: Add on_mods_loaded callback (#7411)

* CSM/SSM: Add on_mods_loaded callback

6 years agoFix builtin lua function os.tempfolder (#7368)
nOOb3167 [Tue, 5 Jun 2018 21:08:10 +0000 (23:08 +0200)]
Fix builtin lua function os.tempfolder (#7368)

* Fix builtin lua function os.tempfolder

6 years agoSet ENABLE_GETTEXT to TRUE by default (#7415)
Wuzzy [Tue, 5 Jun 2018 21:02:14 +0000 (23:02 +0200)]
Set ENABLE_GETTEXT to TRUE by default (#7415)

6 years agoModernize lua read (part 1): C++ templating insurance (#7394)
Loïc Blot [Mon, 4 Jun 2018 20:38:07 +0000 (22:38 +0200)]
Modernize lua read (part 1): C++ templating insurance (#7394)

* Modernize lua read (part 1): C++ templating assurance

Implement the float reader

6 years agoBiome dust placement: Improve comments, re-order some lines
Paramat [Sun, 3 Jun 2018 23:39:10 +0000 (00:39 +0100)]
Biome dust placement: Improve comments, re-order some lines

6 years agoLua_api.txt: Various improvements (#7402)
Paramat [Sun, 3 Jun 2018 03:41:03 +0000 (04:41 +0100)]
Lua_api.txt: Various improvements (#7402)

Node definition:
Clearly document custom selection box/collision box (collision box
documentation was missing).
Remove incorrect light attenuation statement and duplicated light
source statement.

Nodes:
Document which drawtypes require 'paramtype = "light"' to avoid
appearing black.
Remove incorrect light attenuation statement.

HUD: Remove 'HUD API is experimental' text.
Noise params: Spread of every octave must exceed 1.
Particles and spawners: Document glow values.

6 years agoBiomemap: Simplify code of recent commit (#7398)
Paramat [Sat, 2 Jun 2018 20:28:26 +0000 (21:28 +0100)]
Biomemap: Simplify code of recent commit (#7398)

6 years agoBiomemap: Avoid empty biomemap entry to fix failing biome dust (#7393)
Paramat [Sat, 2 Jun 2018 02:20:09 +0000 (03:20 +0100)]
Biomemap: Avoid empty biomemap entry to fix failing biome dust (#7393)

'generateBiomes()' constructs the biomemap as it generates biomes.
The biome calculated at first stone surface encountered is added to
the biomemap.
Previously, if no stone surface was encountered in a mapchunk column
the biomemap was left empty for that (x, z) position, causing biome
dust and water surface decoration placement to fail.

If at the base of a mapchunk column the biomemap is empty, add the
currently active biome to the biomemap, or if biome is NULL calculate
it for this position and add it to the biomemap.

6 years agoFix isNan on setYaw Lua call (#7380)
Loïc Blot [Thu, 31 May 2018 20:52:08 +0000 (22:52 +0200)]
Fix isNan on setYaw Lua call (#7380)

* Fix isNan on setYaw Lua call

6 years agoMgv7: Avoid rivergen removing mod-placed nodes when overgenerating (#7388)
Paramat [Thu, 31 May 2018 02:06:55 +0000 (03:06 +0100)]
Mgv7: Avoid rivergen removing mod-placed nodes when overgenerating (#7388)

Only allow river generation to replace c_stone.
This also acts as an optimisation by being placed before canyon shape
calculation.

6 years agoUpdate embedded Lua to 5.1.5 (#7387)
sfan5 [Wed, 30 May 2018 14:30:44 +0000 (16:30 +0200)]
Update embedded Lua to 5.1.5 (#7387)

6 years agoLINT fix
Loic Blot [Tue, 29 May 2018 20:22:14 +0000 (22:22 +0200)]
LINT fix

6 years agoRename some keys for clarity (#7384)
Wuzzy [Tue, 29 May 2018 16:39:37 +0000 (18:39 +0200)]
Rename some keys for clarity (#7384)

6 years agoAdd crossview support (#7361)
otdav33 [Tue, 29 May 2018 16:38:58 +0000 (12:38 -0400)]
Add crossview support (#7361)

6 years agoTidy up dlg_config_world.lua (#5351)
you [Tue, 29 May 2018 16:37:51 +0000 (18:37 +0200)]
Tidy up dlg_config_world.lua (#5351)

Move code to pkgmgr

6 years agoFix GameUI flag value regression introduced by a78659ed0529226ad937f5e241ad72ba93702959
Loic Blot [Tue, 29 May 2018 06:34:09 +0000 (08:34 +0200)]
Fix GameUI flag value regression introduced by a78659ed0529226ad937f5e241ad72ba93702959

Added more strong unittests on that part to prevent future regression

6 years agoPrint error when HOME is not set (#7376)
Midgard [Mon, 28 May 2018 16:00:42 +0000 (16:00 +0000)]
Print error when HOME is not set (#7376)

In some configurations, such as when using the runit supervisor and its
tool chpst, the HOME variable might be unset. This resulted in an
unclear error message that was hard to pin down.

6 years agoFix more GCC 8.1 warnings ...
Loïc Blot [Mon, 28 May 2018 13:39:02 +0000 (15:39 +0200)]
Fix more GCC 8.1 warnings                                                           1   master 

Fix 3 warnings reported by GCC 8.1 of the following type

```src/client/gameui.cpp:191:43: warning: « void* memset(void*, int, size_t) » effacement d'un objet du type non trivial « struct GameUI::Flags »; use assignment or value-initialization instead [-Wclass-memaccess]
  memset(&m_flags, 0, sizeof(GameUI::Flags));
```

6 years agoFix a -Wcatch-value warning reported by GCC 8.1
Loïc Blot [Mon, 28 May 2018 12:17:19 +0000 (14:17 +0200)]
Fix a -Wcatch-value warning reported by GCC 8.1

```
src/translation.cpp:43:16: warning: interception du type polymorphique « class std::out_of_range » par valeur [-Wcatch-value=]
  } catch (std::out_of_range) {
```·

6 years agoRemove a useless struct keyword for ObjectProperties
Loic Blot [Mon, 28 May 2018 06:54:57 +0000 (08:54 +0200)]
Remove a useless struct keyword for ObjectProperties

6 years agoFormspec verification: Fix show_formspec inside callbacks (#7374)
SmallJoker [Sat, 26 May 2018 10:50:44 +0000 (12:50 +0200)]
Formspec verification: Fix show_formspec inside callbacks (#7374)

6 years agoVein ore: Fix bug caused by changing perlinmap Y size (#7371)
Paramat [Thu, 24 May 2018 21:20:06 +0000 (22:20 +0100)]
Vein ore: Fix bug caused by changing perlinmap Y size (#7371)

Because vein ore uses 3D noise (all the other ores use 2D noise) the
perlinmap Y size can be different in different mapchunks when close
to the ore Y limits.
Previously this caused bugs in the vein structure because changes in
perlinmap Y size did not recreate the noise objects.

Delete and recreate the noise objects with the new Y size if Y size
has changed.

6 years agoSchematic decorations: Fix placement bug when centred and rotated (#7365)
Paramat [Thu, 24 May 2018 01:52:35 +0000 (02:52 +0100)]
Schematic decorations: Fix placement bug when centred and rotated (#7365)

Previously, the centering caused by the 'place center x/z' flags did
not take rotation into account. So schematics with unequal X and Z
dimensions were incorrectly placed. The bug was hidden for schematics
equal in X and Z dimensions.

6 years agoDungeons: Fix duplication of y limit parameters (#7359)
Paramat [Sun, 20 May 2018 22:45:53 +0000 (23:45 +0100)]
Dungeons: Fix duplication of y limit parameters (#7359)

6 years agoFix missing ignore textures (#7326)
you [Sun, 20 May 2018 12:51:50 +0000 (14:51 +0200)]
Fix missing ignore textures (#7326)

6 years agoSmall usage changes for air and ignore items (#7305)
Wuzzy [Sun, 20 May 2018 12:51:26 +0000 (14:51 +0200)]
Small usage changes for air and ignore items (#7305)

* Remove “you hacker you!” from node description
* Prevent placement of ignore in builtin
* Prevent giving of "unknown" explicitly

6 years agoAdd screenshots to online content browser
rubenwardy [Sat, 19 May 2018 23:25:17 +0000 (00:25 +0100)]
Add screenshots to online content browser

6 years agoPlayer marker on both minimaps (#7350)
nanoproject [Fri, 18 May 2018 20:45:14 +0000 (22:45 +0200)]
Player marker on both minimaps (#7350)

6 years agoAdd updating to online content browser
rubenwardy [Wed, 16 May 2018 20:52:12 +0000 (21:52 +0100)]
Add updating to online content browser

6 years agoPointed_thing_to_face_pos: Avoid crash when player is inside a node (#7342)
Paramat [Wed, 16 May 2018 19:49:46 +0000 (20:49 +0100)]
Pointed_thing_to_face_pos: Avoid crash when player is inside a node (#7342)

Avoid crash in some situations when player is inside a node, causing
'above' to equal 'under'.
In this situation return 'under' which is the node position very close
to the face position that would normally be returned.

6 years agoSay position of locale dir more clearly in docs (#7338)
Wuzzy [Wed, 16 May 2018 17:46:28 +0000 (19:46 +0200)]
Say position of locale dir more clearly in docs (#7338)

6 years agoMinimal: Fix HP change crash (#7344)
SmallJoker [Wed, 16 May 2018 17:36:30 +0000 (19:36 +0200)]
Minimal: Fix HP change crash (#7344)

6 years agoUse server's zoom fov for distant world loading.
Lars Hofhansl [Wed, 16 May 2018 01:49:11 +0000 (18:49 -0700)]
Use server's zoom fov for distant world loading.

6 years agoContributing.md: Various additions and edits (#7309)
Paramat [Tue, 15 May 2018 18:35:55 +0000 (19:35 +0100)]
Contributing.md: Various additions and edits (#7309)

Add a new point to encourage discussion before coding. Move the 'ask
before significant coding' suggestion into this.
Edit and extend commit message guidelines. Refer to core dev commit
messages as good examples.
Remove 'short' and 'briefly' from the description guideline to try to
improve description quality.
Larger text for '### A pull-request is considered ..'.
Add a second roadmap link to celeron55's blog roadmap which is the 1st
part of the forum roadmap.
Add full stops to lists.
Consistent text size for '## Donations'.

6 years agoDon't show Android edit dialog when tapping read-only field (#7337)
Muhammad Rifqi Priyo Susanto [Tue, 15 May 2018 14:13:30 +0000 (21:13 +0700)]
Don't show Android edit dialog when tapping read-only field (#7337)

* Don't show Android edit dialog when tapping read-only field

From Lua API, "If the name is empty the textarea is readonly."

6 years agoFix segfault in player migration and crash in log_deprecated
SmallJoker [Mon, 14 May 2018 19:03:48 +0000 (21:03 +0200)]
Fix segfault in player migration and crash in log_deprecated

Makes log_deprecated work when triggered from no function

6 years agoVertical biome blend: Tune PRNG seed for finer detail (#7329)
Paramat [Mon, 14 May 2018 18:01:58 +0000 (19:01 +0100)]
Vertical biome blend: Tune PRNG seed for finer detail (#7329)

6 years agoMake sure color returns to normal after a damage flash (#7332)
lhofhansl [Mon, 14 May 2018 10:03:39 +0000 (03:03 -0700)]
Make sure color returns to normal after a damage flash (#7332)

6 years agoUpdate contentdb_url to content.minetest.net
rubenwardy [Sun, 13 May 2018 20:41:02 +0000 (21:41 +0100)]
Update contentdb_url to content.minetest.net

6 years agoCamera: Improve subpixel movement (#7319)
SmallJoker [Sat, 12 May 2018 12:30:52 +0000 (14:30 +0200)]
Camera: Improve subpixel movement (#7319)

6 years agoRun detach callbacks on player leave
SmallJoker [Sat, 12 May 2018 08:55:43 +0000 (10:55 +0200)]
Run detach callbacks on player leave

Correct docs regarding non-nil detaching children

6 years agoFix crash guiConfirmRegistration quit menu (#7313)
Vincent Glize [Thu, 10 May 2018 11:50:06 +0000 (13:50 +0200)]
Fix crash guiConfirmRegistration quit menu (#7313)

6 years agoFix luajit include not being found
rubenwardy [Tue, 8 May 2018 18:06:55 +0000 (19:06 +0100)]
Fix luajit include not being found

6 years agoMgv7: Code cleanup (#7299)
Paramat [Mon, 7 May 2018 02:31:55 +0000 (03:31 +0100)]
Mgv7: Code cleanup (#7299)

6 years agoFix builtin inventory list crash when size = 0 (#7297)
SmallJoker [Sat, 5 May 2018 20:37:07 +0000 (22:37 +0200)]
Fix builtin inventory list crash when size = 0 (#7297)

6 years agoCavegen: Allow small RandomWalk caves to generate beyond mapchunk border
Paramat [Fri, 4 May 2018 17:22:56 +0000 (18:22 +0100)]
Cavegen: Allow small RandomWalk caves to generate beyond mapchunk border

6 years agoFix invisible chat error messages (#7289)
Vincent Glize [Tue, 1 May 2018 17:38:37 +0000 (19:38 +0200)]
Fix invisible chat error messages (#7289)

6 years agonodedef: Delete two unused method definitions (#7288)
Kuma_jjw [Mon, 30 Apr 2018 17:15:11 +0000 (02:15 +0900)]
nodedef: Delete two unused method definitions (#7288)

6 years agoGlobal new() or grab() to be managed in constuctor only (#7235 partial) (#7236)
JDCodeIt [Mon, 30 Apr 2018 17:14:28 +0000 (11:14 -0600)]
Global new() or grab() to be managed in constuctor only (#7235 partial) (#7236)

* g_extrusion_mesh_cache new() and grab() to be managed in constuctor only (#7235 partial)

This global was getting grab()-ed by each call to getItemMesh, incrementing its reference count. What was to be the final drop() in the destructor ended up with > 0 reference count, so memory not freed by Irrlicht.

6 years agoAllow damage for attached objects, add attach/detach callbacks (#6786)
SmallJoker [Mon, 30 Apr 2018 16:43:49 +0000 (18:43 +0200)]
Allow damage for attached objects, add attach/detach callbacks (#6786)

* Allow right-clicking on attached LuaEntities

6 years agoMetaDataRef: Add contains() and get() (#7214)
rubenwardy [Mon, 30 Apr 2018 16:42:51 +0000 (17:42 +0100)]
MetaDataRef: Add contains() and get() (#7214)

6 years agoMapgen caves: Re-order generation to fix cavern bug
Paramat [Sun, 29 Apr 2018 06:20:46 +0000 (07:20 +0100)]
Mapgen caves: Re-order generation to fix cavern bug

Previously, caverns confused tunnel generation causing biome top and filler
nodes to appear in caverns.
Split 'generateCaves()' into 2 functions to separate tunnel and large
randomwalk cave generation.
In each mapgen re-order cave generation to generate tunnels before caverns.

6 years agoBiome-defined cave liquids: Use faster biome calculation
paramat [Thu, 26 Apr 2018 12:21:58 +0000 (13:21 +0100)]
Biome-defined cave liquids: Use faster biome calculation

6 years agoBiome-defined dungeon nodes: Use faster biome calculation
paramat [Thu, 26 Apr 2018 12:33:12 +0000 (13:33 +0100)]
Biome-defined dungeon nodes: Use faster biome calculation

6 years agoFix description wrapping in browse online content
rubenwardy [Wed, 25 Apr 2018 23:19:05 +0000 (00:19 +0100)]
Fix description wrapping in browse online content

6 years agoDungeons: Mostly fix missing stair nodes
Paramat [Tue, 24 Apr 2018 23:44:49 +0000 (00:44 +0100)]
Dungeons: Mostly fix missing stair nodes

6 years agoMgvalleys: Update settingtypes.txt
Paramat [Tue, 24 Apr 2018 01:25:51 +0000 (02:25 +0100)]
Mgvalleys: Update settingtypes.txt

6 years agoMgvalleys: Code cleanup
Paramat [Tue, 24 Apr 2018 00:34:48 +0000 (01:34 +0100)]
Mgvalleys: Code cleanup

Split some long lines.
Edit comments.
Remove unnecessary comments and unnecessary commented-out code.
Use std::fmax/fmin instead of MYMAX/MYMIN.
Remove scope-limiting braces.
Consistently define literals as floats, except in noise parameters.
Cleanup literals in noise parameters.
Remove unnecessary 'near_cavern' line.
Reduce max spawn y to be consistent with other mapgens.

6 years agoMove ASCII art to std::cerr, to remove it from logs
rubenwardy [Mon, 23 Apr 2018 17:27:00 +0000 (18:27 +0100)]
Move ASCII art to std::cerr, to remove it from logs

6 years agoFormspecs: Allow setting alpha value for the box[] element
Thomas--S [Mon, 23 Apr 2018 17:50:50 +0000 (19:50 +0200)]
Formspecs: Allow setting alpha value for the box[] element

6 years agoMgvalleys: Use shared tunnel / cavern code instead of internal
Paramat [Sat, 21 Apr 2018 21:50:36 +0000 (22:50 +0100)]
Mgvalleys: Use shared tunnel / cavern code instead of internal

Caverns first appeared in mgvalleys and were later added to other
mapgens as shared code. Now this shared code can replace mgvalley's
internal cavern code.
Also use shared tunnel code instead of internal code.

Changes to mapgen that will affect existing worlds (mgvalleys is not
stable):

Single lava and water sources not added in tunnels.
Previous caverns are unchanged but an equal number of new ones are
added at a distance from the previous.
From y = -256 to 192 nodes below, where the caverns taper at their
upper limit, they will have a slightly different shape as the taper
is now linear.