7053 Commits

Author SHA1 Message Date
luk3yx
0cee3e3c3a Allow main menu music to be disabled. 2019-03-12 13:40:16 +13:00
luk3yx
ac62ffacc2 Regenerate minetest.conf.example 2019-03-08 08:57:47 +13:00
luk3yx
6dfe2a2e3f Update bump_version.sh 2019-03-08 08:47:31 +13:00
rubenwardy
0d8cdab46f Fix incorrect string length check after cast 2019-03-08 08:14:11 +13:00
sfan5
6b505ab61a Update a few dependency versions for buildbot (#8319) 2019-03-08 08:13:25 +13:00
HybridDog
0eaf6f7b54 World config: Make depends easier to read (#7396)
* Do not always show every depends textfieds

When there are no dependencies, it does not longer show an empty list.

* Adjust the list height to avoid a scrollbar when possible

* change minimum height and no dependencies message

* Do not get depends for modpacks
2019-03-08 08:11:10 +13:00
Jozef Behran
f001791201 Optimize interaction distance checker (#8193)
The "what" parameter is being passed by value, most likely by
accident as the type is "const std::string". Convert it to a
reference by adding the missing "&".
2019-03-08 08:10:23 +13:00
Paramat
add01886b5 F5 debug info: Use full words for NSEW directions for readability (#7461) 2019-03-06 19:18:46 +13:00
xerox123official
f1810e9d73 Display pitch angle in debug menu 2019-03-06 19:08:56 +13:00
ThomasMonroe314
22fcad4fe9 F5 debug info: Add colons, use lowercase except for FPS and RTT 2019-03-06 17:02:37 +13:00
paramat
bccd7d209c F5 Debug info: More compact, return to 2 lines
All data fits on width 960, most useful data still visible on width 800.
2019-03-06 17:02:21 +13:00
Paramat
a83fb42e88 F5 debug display: Reformat and remove some information (#6125)
For consistency return to 'FPS =', add comma before FPS.
Remove 'R' from 'range_all' as may be re-keymapped.
Remove inconsistent brackets from 'range_all'.
Change 'v_range' to 'view_range'.
Add 'pos = ' before co-ordinates.
Add spaces around '=' in yaw display.
Remove brackets from around 'yaw' and 'seed'.
Move 'pointing_at' to 3rd line.
Remove 'param1' (0 for all solid nodes and unreadable for light sources due to
light bank encoding).
Remove file name of pointed node top tile (this also removes the need to get
ContentFeatures for the node, slightly improving performance).
Replace quotes around node data with brackets, looks better and more consistent.

Add 'guitext3' for third line.
Use 'setVisible' for all 3 lines to control the setting of each text rectangle.
Improve logic of 3rd line to only run code it needs to depending on whether
pointing data is avaialble and whether node is not 'ignore' and not 'unknown'.
2019-03-06 15:47:04 +13:00
Wuzzy
bee6ec13fd Show param1 and param2 in debug screen (#6031)
* Show param1 and param2 in debug screen

* Add units and some formatting to debug screen

* Minor refactor of param1/param2 debug display
2019-03-06 15:47:02 +13:00
luk3yx
7ffdd430bb Set pause_on_lost_focus to true by default. 2019-03-06 15:44:51 +13:00
rubenwardy
397a7e1dd1 Add check to pause game on lost window focus 2019-03-06 15:42:07 +13:00
number Zero
d5c3e7a2af Mesh generation: Fix performance regression caused by 'plantlike_rooted' PR
Regression caused by ef285b2815962a7a01791059ed984cb12fdba4dd
2019-03-06 15:25:18 +13:00
number Zero
54c3c2df3e Add 'plantlike_rooted' drawtype
Useful for underwater plants.
Node consists of a base cube plus a plantlike extension that can pass through
liquid nodes above without creating air bubbles or interfering with liquid flow.
Uses paramtype2 'leveled', param2 defines height of plantlike extension.
2019-03-06 15:23:23 +13:00
Loïc Blot
39d01bb895 Cpp11 initializers: last src root changeset (#6022)
* Cpp11 initializers: last src root changeset

Finish to migrate all src root folder files to C++11 constructor initializers
2019-03-06 15:20:48 +13:00
luk3yx
8f3251799d Fix compilation error 2019-03-06 14:57:10 +13:00
rubenwardy
f2f15a1944 Fix naming conventions of noise userdata 2019-03-06 14:51:48 +13:00
paramat
ec0be7a24d Gennotify: Add 'minetest.get_decoration_id' API
Returns the decoration ID for the provided decoration name string.
For use with gennotify, to know the decoration IDs for use in
'minetest.set_gen_notify'.
2019-03-06 14:34:14 +13:00
HybridDog
ad9f2fdca4 Add math.factorial (#8298) 2019-03-06 14:28:06 +13:00
DS
ad846371eb Add sounds for falling and attached nodes (#7719)
* Add sounds for falling and attached nodes

The sound specified in `node_definition.sounds.fall` is used.
When a falling node is spawned at a position or an attached node drops, the sound is played at this position.

* allow all sorts of soundspecs
2019-03-06 14:26:26 +13:00
ashtrayoz
35f2bcf9d4 Add callback to preserve node metadata as item metadata 2019-03-06 14:26:17 +13:00
SmallJoker
2cf9d39184 core.spawn_falling_node: Keep metadata (#7476) 2019-03-06 14:24:05 +13:00
zaoqi
5bc6b0f331 Add minetest.spawn_falling_node(pos) (#5339)
* Add minetest.spawn_falling_node(pos)

* lua_api.txt: Add minetest.spawn_falling_node(pos)

* Update minetest.spawn_falling_node(pos)
2019-03-06 14:23:56 +13:00
Auke Kok
27b33013b0 Sounds: Add falling node sounds
Falling nodes should make a sound. This can only be done here,
so for simplicity we just call the sound_play() here with the node
place sound. We ignore any gain value in the sound spec since a
falling node should be loud, so the 1.0 default gain makes sense
here.
2019-03-06 14:22:12 +13:00
SmallJoker
65c3fc3c9b Builtin: Replace deprecated function calls (#7561) 2019-03-06 14:21:39 +13:00
Benjamin Lindley
e47243c002 Replace for loop with call to standard library function (#8194)
This loop makes multiple passes over m_stack (type std::list) in order to remove all elements with a specified value. Replacing the loop with a call to std::list::remove does the same job, but in only one pass.
2019-03-06 14:19:57 +13:00
rubenwardy
f53b9d7ee9 Hide uninstall package button on unmodifiable paths (#8255) 2019-03-06 14:19:37 +13:00
SmallJoker
1f2263062c Menu content tab: Fix clipped description and missing depends (#7703) 2019-03-06 14:19:25 +13:00
Paramat
8d722fed10 Content tab: Fix clipped text in texture pack button (#7667)
Wider buttons to not clip 'Disable Texture Pack' text when using a
small game window (1024x600, the default).
2019-03-06 14:19:10 +13:00
luk3yx
c983282c90 Fix version 2019-03-06 14:15:36 +13:00
luk3yx
21124eccc3 Bump version to 0.4.18.5 2019-03-06 14:15:13 +13:00
luk3yx
ae91f61a1c Release 0.4.18.4 2019-02-22 17:55:02 +13:00
SmallJoker
6340e66630 Formspecs: Unify textarea and field parsing functions, fix wrong fallback text
* textarea[], field[]: Unify function, fix wrong fallback text
* Remove apparently superflous mainmenumanager.h incldue
* intlGUIEditBox.cpp: make read-only boxes really read-only
* Use elseif (trivial)
2019-02-22 17:53:06 +13:00
luk3yx
0d4512603e Update README.md 2019-02-22 11:39:03 +13:00
luk3yx
8f2943204f Change the credits URL to https://edgy1.net/mt4 2019-02-22 11:32:33 +13:00
rubenwardy
0b6a7a14ea Content store: ignore _game in game names in ID generation
Fixes #8269
2019-02-22 11:12:19 +13:00
luk3yx
51b8ec1151 Use minetest_game stable-0.4 on Windows builds. 2019-02-21 15:28:54 +13:00
luk3yx
afeb6afaf0 Attempt to fix builds
• Ubuntu 18.04 builds
 • Use HTTPS in Windows build scripts
 • Use the correct repo for Windows build scripts
2019-02-21 14:56:48 +13:00
Paul Ouellette
18931c0df9 Update gamebar on tab enter (#8192) 2019-02-21 14:52:28 +13:00
rubenwardy
29a4b1f97a Fix games not updating on deletion
As reported by @random-geek
2019-02-19 08:14:33 +13:00
Paul Ouellette
e92a4b1b36 Fix content store crash (#8244) 2019-02-19 08:14:24 +13:00
nanoproject
26c7c10507 Player marker on both minimaps (#7350) 2019-02-18 09:05:57 +13:00
Loïc Blot
2dfe9bca06 Some performance optimizations (#5424)
* Some performance optimizations

This is globally removing some memory useless copy

* use a const ref return on std::string Settings::get to prevent data copy on getters which doesn't need to copy it
 * pass some stack created strings to static const as they are not modified anywhere
 * Camera: return nametags per const ref instead of a list pointer, we only need to read it
 * INodeDefManager: getAll should be a result ref writer instead of a return copy
 * INodeDefManager: getAlias should return a const std::string ref
 * Minimap: unroll a Scolor creation in blitMinimapPixersToImageRadar to prvent many variable construct/destruct which are unneeded (we rewrite the content in the loop)
 * CNodeDefManager::updateAliases: prevent a idef getall copy
 * Profiler: constness
 * rollback_interface: create real_name later, and use const ref
 * MapBlockMesh updateFastFaceRow: unroll TileSpec next_tile, which has a cost of 1.8% CPU due to variable allocation/destruction,
 * MapBlockMesh updateFastFaceRow: copy next_tile to tile only if it's a different tilespec
 * MapBlockMesh updateFastFaceRow: use memcpy to copy next_lights to lights to do it in a single cpu operation
2019-02-18 09:05:42 +13:00
luk3yx
426cf2300e Bump version to 0.4.18.4-dev 2019-02-18 08:54:16 +13:00
luk3yx
d548988ce0 Fix LICENSE.md
• Attribute menu_header.png and menu_overlay.md to Edgy1
2019-02-17 21:09:24 +13:00
luk3yx
59def45d81 Release 0.4.18.3 2019-02-17 20:38:14 +13:00
luk3yx
e48469f7d3 Add the main menu sound 2019-02-17 20:34:27 +13:00