oweals/minetest.git
7 years agoAdd more files and file types to `.gitignore` (#5859)
red-001 [Wed, 31 May 2017 18:08:13 +0000 (19:08 +0100)]
Add more files and file types to `.gitignore` (#5859)

7 years agoNametag: remove colour codes before calculating alignment. (#5862)
red-001 [Wed, 31 May 2017 18:07:33 +0000 (19:07 +0100)]
Nametag: remove colour codes before calculating alignment. (#5862)

7 years agoDon't add damage flash while punch texture modifier is active (#5767)
stujones11 [Mon, 29 May 2017 21:26:25 +0000 (22:26 +0100)]
Don't add damage flash while punch texture modifier is active (#5767)

7 years agoguiVolumeChange: prevent wrong value position by using 1 label instead of 2 (#5839)
Loïc Blot [Sun, 28 May 2017 13:23:30 +0000 (15:23 +0200)]
guiVolumeChange: prevent wrong value position by using 1 label instead of 2 (#5839)

* Use only one label instead of two for the soundText, this permit to ensure both label & values are aligned
* Add '%' character too, to reflect it's a percentage volume
* Remove rect on regenerateGui (upper part) which shadows outer part and which is not needed outside of the DesiredRect affectation

Fix issue #5837

7 years agoAdded missing levels to logging menu (#5836)
Nathan Salapat [Sun, 28 May 2017 07:23:06 +0000 (02:23 -0500)]
Added missing levels to logging menu (#5836)

* Added missing levels to logging menu

Added none and error options to the debug_log_level in the advance settings.

7 years agoMapgen files: Update and correct copyright credits
paramat [Thu, 25 May 2017 17:53:47 +0000 (18:53 +0100)]
Mapgen files: Update and correct copyright credits

7 years agoTime: Change old `u32` timestamps to 64-bit (#5818)
SmallJoker [Fri, 26 May 2017 12:03:36 +0000 (14:03 +0200)]
Time: Change old `u32` timestamps to 64-bit (#5818)

MacOSX build fix + cleanups

7 years agoEnhance ABM performance a little bit by removing two std::set copy (#5815)
Loïc Blot [Thu, 25 May 2017 14:43:55 +0000 (16:43 +0200)]
Enhance ABM performance a little bit by removing two std::set copy (#5815)

* Enhance ABM performance a little bit by removing two std::set copy

* ActiveBlockModifier::getTriggerContents now returns a const ref
* ActiveBlockModifier::getRequiredNeighbors now returns a const ref
* ActiveBlockModifier::getRequiredNeighbors is now purely virtual

* Little code style fix

7 years agoMgv6 mudflow: Remove decoration if 'dirt with grass' below flows away (#5798)
Paramat [Thu, 25 May 2017 10:46:34 +0000 (11:46 +0100)]
Mgv6 mudflow: Remove decoration if 'dirt with grass' below flows away (#5798)

Mudflow of a neighbouring mapchunk extends into a mapchunk's edge, and could
remove 'dirt with grass' from under a decoration, creating unsupported
decorations.

Remove any decoration above if a 'dirt with grass' node is removed by mudflow.

7 years agoClose formspec on client shutdown. (#5811)
red-001 [Thu, 25 May 2017 10:46:24 +0000 (11:46 +0100)]
Close formspec on client shutdown. (#5811)

This ensures the shutting down progress bar is correctly rendered. This fixes #3050.

7 years agoRevert 1469424 and fix wrong char position when doing mouse selection on intlGUIEditB...
Loïc Blot [Wed, 24 May 2017 06:56:40 +0000 (08:56 +0200)]
Revert 1469424 and fix wrong char position when doing mouse selection on intlGUIEditBox (#5806)

* Revert 1469424075affce7c27bb44e5a5cbd51485e44b2 and fix wrong char position when doing mouse selection on intlGUIEditBox

position should look at current line not the whole text and shift 1 character on the last line (due to \0 string delimiter)

* Finish the fix and prevent values under zero for getCursorPos which crash the program if found

* Forget to remove old comment

* fix zero to NULL

* Fix typo

7 years agoAdd formspec escaping to subgame list in create world dialog (#5808)
rubenwardy [Wed, 24 May 2017 05:45:23 +0000 (06:45 +0100)]
Add formspec escaping to subgame list in create world dialog (#5808)

7 years agoMinimal: Add river water nodes (#5809)
Paramat [Wed, 24 May 2017 05:43:17 +0000 (06:43 +0100)]
Minimal: Add river water nodes (#5809)

Is a base terrain node needed by any core mapgen with sloping rivers.

7 years agoFix wrong return value in get_sky Lua call since ad9fcf859ec2347325830e09504ae96968b51ea8
Loic Blot [Tue, 23 May 2017 17:59:47 +0000 (19:59 +0200)]
Fix wrong return value in get_sky Lua call since ad9fcf859ec2347325830e09504ae96968b51ea8

Fix #5803

7 years agoClient crashfix: load meta after digging (#5801)
Paramat [Tue, 23 May 2017 17:54:37 +0000 (18:54 +0100)]
Client crashfix: load meta after digging (#5801)

Fixes a crash caused in MTGame by breaking and right-clicking a chest.

If loading meta, digging, node can disappear and we looked at meta, which is wrong because meta became NULL.

Pointer is invalidated and we read wrong memory area

7 years agoLINT fix & check all files with clang-format
Loic Blot [Mon, 22 May 2017 05:28:35 +0000 (07:28 +0200)]
LINT fix & check all files with clang-format

Seems the diff mode doesn't work well, PR are detected as working whereas in master it's shown it's problematic (and really problematic). Use same check everywhere

7 years ago[CSM] Add send_chat_message and run_server_chatcommand API functions (#5747)
Pierre-Adrien Langrognet [Sun, 21 May 2017 21:06:51 +0000 (23:06 +0200)]
[CSM] Add send_chat_message and run_server_chatcommand API functions (#5747)

* [CSM] Add send_chat_message and run_server_chatcommand API functions

* Add client-side chat message rate limiting

* Limit out chat queue size

* [CSM] Add minetest.clear_out_chat_queue API function and .clear_chat_queue chatcommand

* Last fixes/cleanups before merge

7 years agoRun updatepo.sh
Loic Blot [Sun, 21 May 2017 15:40:59 +0000 (17:40 +0200)]
Run updatepo.sh

7 years agoTranslated using Weblate (Ukrainian)
Fixer [Sun, 21 May 2017 11:17:44 +0000 (11:17 +0000)]
Translated using Weblate (Ukrainian)

Currently translated at 38.1% (350 of 918 strings)

7 years agoTranslated using Weblate (Russian)
weqqr [Sat, 20 May 2017 19:09:45 +0000 (19:09 +0000)]
Translated using Weblate (Russian)

Currently translated at 61.5% (565 of 918 strings)

7 years agoTranslated using Weblate (Chinese (Simplified))
Gaunthan Huang [Sat, 20 May 2017 04:28:02 +0000 (04:28 +0000)]
Translated using Weblate (Chinese (Simplified))

Currently translated at 74.2% (682 of 918 strings)

7 years agoTranslated using Weblate (Turkish)
monolifed [Tue, 16 May 2017 23:29:09 +0000 (23:29 +0000)]
Translated using Weblate (Turkish)

Currently translated at 100.0% (918 of 918 strings)

7 years agoTranslated using Weblate (Spanish)
Michael Higuera [Tue, 16 May 2017 15:43:00 +0000 (15:43 +0000)]
Translated using Weblate (Spanish)

Currently translated at 59.4% (546 of 918 strings)

7 years agoTranslated using Weblate (Malay)
Muhammad Nur Hidayat Yasuyoshi [Wed, 17 May 2017 04:17:50 +0000 (04:17 +0000)]
Translated using Weblate (Malay)

Currently translated at 65.4% (601 of 918 strings)

Retranslate the correct word

7 years agoTranslated using Weblate (Esperanto)
yellowcrash10 [Wed, 10 May 2017 02:54:03 +0000 (02:54 +0000)]
Translated using Weblate (Esperanto)

Currently translated at 31.8% (292 of 918 strings)

7 years agoAdded translation using Weblate (Dhivehi)
Unknown [Mon, 8 May 2017 13:13:34 +0000 (13:13 +0000)]
Added translation using Weblate (Dhivehi)

7 years agoTranslated using Weblate (Spanish)
Erick Sanhueza [Fri, 5 May 2017 17:03:07 +0000 (17:03 +0000)]
Translated using Weblate (Spanish)

Currently translated at 58.0% (533 of 918 strings)

7 years agoFix LINT broken by dfa0c15ce045705f05487d623dc7beca6c945b4b
Loic Blot [Sun, 21 May 2017 15:30:00 +0000 (17:30 +0200)]
Fix LINT broken by dfa0c15ce045705f05487d623dc7beca6c945b4b

7 years ago[CSM] Add function to get the definition of items (#5732)
bigfoot547 [Sun, 21 May 2017 12:40:55 +0000 (07:40 -0500)]
[CSM] Add function to get the definition of items (#5732)

Add node def and item def documentation.

Please be ready for merge!

7 years agoPrevent fall damage from overflowing when falling from a large height. (#5791)
red-001 [Sun, 21 May 2017 09:18:38 +0000 (10:18 +0100)]
Prevent fall damage from overflowing when falling from a large height. (#5791)

7 years agoMenu: Merge singleplayer and server tabs (#5627)
Elijah Duffy [Sun, 21 May 2017 08:07:05 +0000 (01:07 -0700)]
Menu: Merge singleplayer and server tabs (#5627)

Rename "Singleplayer" tab to "Play" and remove "Server" tab placing server functionality under a "Host Game" checkbox in "Play."

7 years agoAdd clientmods/mods.conf & client/mod_storage to gitignore
Loic Blot [Sun, 21 May 2017 08:05:46 +0000 (10:05 +0200)]
Add clientmods/mods.conf & client/mod_storage to gitignore

7 years ago[CSM] Allow enabling and disabling mods. (#5554)
red-001 [Sun, 21 May 2017 07:54:28 +0000 (08:54 +0100)]
[CSM] Allow enabling and disabling mods. (#5554)

7 years agoReal control fix (#5787)
Loïc Blot [Sat, 20 May 2017 20:29:15 +0000 (22:29 +0200)]
Real control fix (#5787)

* Allow enabling and disabling mods.

* Re-fix 605599b6f150b89ba6539c4d088231b326adcb48

This breaks some chars like € in chat.

Instead verify is char is a non control char -> iswcntrl

7 years agoFix instant digging (#5785)
you [Sat, 20 May 2017 18:43:13 +0000 (20:43 +0200)]
Fix instant digging (#5785)

Use runData.dig_time_complete instead of params.time to find out whether it's instant digging.
runData.dig_time_complete is set to something very big if the node can't be dug, whereas param.time is 0 when digging is impossible or it's instant digging. So not using param.time fixes #5728.

7 years agoFix wchar_t type on 605599b6f150b89ba6539c4d088231b326adcb48
Loic Blot [Sat, 20 May 2017 18:13:29 +0000 (20:13 +0200)]
Fix wchar_t type on 605599b6f150b89ba6539c4d088231b326adcb48

event.KeyInput.Char is a wchar_t, iswprint should be used

7 years agoParticle spawner: Do not spawn particles distant from player (#5766)
Paramat [Sat, 20 May 2017 14:46:35 +0000 (15:46 +0100)]
Particle spawner: Do not spawn particles distant from player (#5766)

Previously, every particle was rendered by (even if not actually visible to)
the client regardless of distance. This significantly reduced client FPS.

Acts clientside, particle spawners are always sent to clients, but each
particle is checked for distance from the player.
As with 'add particle' the distance limit is set to 'max block send distance'
as this determines how far a client can see.

7 years ago[CSM] Correct the log destination of print() (#5784)
SmallJoker [Sat, 20 May 2017 14:46:12 +0000 (16:46 +0200)]
[CSM] Correct the log destination of print() (#5784)

7 years agoFix CSM crash (#5779)
red-001 [Sat, 20 May 2017 14:45:49 +0000 (15:45 +0100)]
Fix CSM crash (#5779)

Caused by dc5bc6c and them made worse by 5ebf8f9

7 years agoTypo fix in README.txt
Loic Blot [Sat, 20 May 2017 14:04:44 +0000 (16:04 +0200)]
Typo fix in README.txt

Fix issue #4293

7 years agoAdd /clearinv chat command (#4994)
Elijah Duffy [Sat, 20 May 2017 10:56:17 +0000 (03:56 -0700)]
Add /clearinv chat command (#4994)

Allow players to clear their own inventory or that of another player with /clearinv command. server privilege is required to clear another player's inventory, no privileges are required to clear your own inventory.'

7 years agochat.cpp fix wchar_t isspace -> iswspace & wrong isspace on an index (#5783)
Loïc Blot [Sat, 20 May 2017 10:56:02 +0000 (12:56 +0200)]
chat.cpp fix wchar_t isspace -> iswspace & wrong isspace on an index (#5783)

7 years agoCleanup in content_mapblock (#5746)
numberZero [Sat, 20 May 2017 10:29:54 +0000 (14:29 +0400)]
Cleanup in content_mapblock (#5746)

NDT_LIQUID is being drawn by MapBlockMesh since a long time ago...

7 years agoImprove password change menu (#5757)
red-001 [Sat, 20 May 2017 10:29:44 +0000 (11:29 +0100)]
Improve password change menu (#5757)

- Fix the GUI getting messed up when resizing
- Save the input when resizing

7 years agoFix shift key producing space in console (#5777)
Craig Davison [Sat, 20 May 2017 10:29:31 +0000 (11:29 +0100)]
Fix shift key producing space in console (#5777)

* Fix shift key producing space in console

7 years agothis might fix #5661, needs testing (#5775)
red-001 [Sat, 20 May 2017 08:48:44 +0000 (09:48 +0100)]
this might fix #5661, needs testing (#5775)

7 years ago[CSM] Fix crash when the minimap is disabled. Caused by e25a38e
SmallJoker [Sat, 20 May 2017 08:12:37 +0000 (10:12 +0200)]
[CSM] Fix crash when the minimap is disabled. Caused by e25a38e

7 years agoFix input regression introduced by a4a377ecad6f1732cc54e7ac329fdef9949f9bf7
Loic Blot [Sat, 20 May 2017 08:12:54 +0000 (10:12 +0200)]
Fix input regression introduced by a4a377ecad6f1732cc54e7ac329fdef9949f9bf7

Fix #5776

7 years agoFix mem leak in mesh cache (#5781)
Zeno- [Sat, 20 May 2017 06:16:16 +0000 (16:16 +1000)]
Fix mem leak in mesh cache (#5781)

7 years agoVarious code cleanup & little performance improvement on HTTP download (#5772)
Loïc Blot [Sat, 20 May 2017 06:15:56 +0000 (08:15 +0200)]
Various code cleanup & little performance improvement on HTTP download (#5772)

* Disable or remove unused enum members/functions
* Tiny code style fixes
* Make some functions const
* Replace ClientMediaDownloader std::unordered_map with std::map

7 years agoDo not create dummy normalmaps (#4180)
you [Fri, 19 May 2017 06:08:12 +0000 (08:08 +0200)]
Do not create dummy normalmaps (#4180)

fixes #1811

7 years agoFix textarea bug: clicking right of the end of a line caused the cursor to be in...
you [Fri, 19 May 2017 05:57:21 +0000 (07:57 +0200)]
Fix textarea bug: clicking right of the end of a line caused the cursor to be in one of the next lines (#3474)

7 years agoFix alpha for liquid nodes (#5494)
Dániel Juhász [Fri, 19 May 2017 05:46:10 +0000 (07:46 +0200)]
Fix alpha for liquid nodes (#5494)

7 years agoMainmenu: Fix issues while trying to enable all mods (#5770)
SmallJoker [Fri, 19 May 2017 05:45:47 +0000 (07:45 +0200)]
Mainmenu: Fix issues while trying to enable all mods (#5770)

7 years agoWhen minimap is disabled in configuration, really disable it (#5771)
Loïc Blot [Fri, 19 May 2017 05:25:27 +0000 (07:25 +0200)]
When minimap is disabled in configuration, really disable it (#5771)

* When minimap is disabled in configuration, really disable it

7 years agoFix a warning pointed by GCC 7.1
Loic Blot [Thu, 18 May 2017 18:55:27 +0000 (20:55 +0200)]
Fix a warning pointed by GCC 7.1

lua_tonumber overflow in snprintf (12 bytes and only 10 can be written)

7 years agoBuiltin: Fix subgame mod selection (#5367)
SmallJoker [Wed, 17 May 2017 17:31:57 +0000 (19:31 +0200)]
Builtin: Fix subgame mod selection (#5367)

7 years agoParticles: Do not send single particles to distant clients (#5760)
Paramat [Wed, 17 May 2017 08:37:28 +0000 (09:37 +0100)]
Particles: Do not send single particles to distant clients (#5760)

Previously, every individual particle on a server is sent to, and rendered by
(even if not actually visible), every client regardless of distance. This
significantly reduces client FPS and creates unnecessary network traffic.
Maximum distance is set by 'max block send distance' as this determines how far
a client is able to see.

7 years agoAppend -debug to version string (#5765)
bigfoot547 [Wed, 17 May 2017 07:41:41 +0000 (02:41 -0500)]
Append -debug to version string (#5765)

7 years agoCSM: Document forgotten functions
SmallJoker [Sat, 13 May 2017 11:14:41 +0000 (13:14 +0200)]
CSM: Document forgotten functions

7 years agoCaverns: Remove unnecessary liquid excavation
paramat [Thu, 11 May 2017 02:39:43 +0000 (03:39 +0100)]
Caverns: Remove unnecessary liquid excavation

Also disable CavesRandomWalk at a safer distance from caverns.

Excavating liquids in cavern code is unnecessary as in practice we are already
successfully disabling the generation of liquid caves that could intersect
with caverns and cause excessive amounts of spreading liquids in caverns.

However to be safer this commit now disables liquid caves at a larger distance
from caverns, to compensate for liquid caves being able to generate up to a
mapblock beyond a mapchunk border.

Not excavating liquids in cavern code also allows a feature i am working on in
experimental new core mapgens, but also allows for more flexibility in future.

7 years agoFix a memleak pointed by @Zeno- in MeshUpdateQueue
Loic Blot [Tue, 16 May 2017 06:27:18 +0000 (08:27 +0200)]
Fix a memleak pointed by @Zeno- in MeshUpdateQueue

This leak was introduced when added cache to MeshUpdateQueue and only occurs when leaving world.

7 years agoFix uninitalised variable in event.cpp (#5764)
Zeno- [Mon, 15 May 2017 10:10:29 +0000 (20:10 +1000)]
Fix uninitalised variable in event.cpp (#5764)

7 years agoAdd option to use neither node highlighting nor outlining
ezhh [Thu, 11 May 2017 22:18:36 +0000 (23:18 +0100)]
Add option to use neither node highlighting nor outlining

7 years agoNo cursor lock when window inactive (#5754)
SmallJoker [Sat, 13 May 2017 15:42:42 +0000 (17:42 +0200)]
No cursor lock when window inactive (#5754)

7 years agoAndroid dependencies updates (#5755)
Loïc Blot [Sat, 13 May 2017 11:32:59 +0000 (13:32 +0200)]
Android dependencies updates (#5755)

* irrlicht ogles 5122 -> 5145
* openssl 1.0.2j -> 1.0.2k
* curl 7.52 -> 7.54
* sqlite 3.15.2 -> 3.18.0

7 years agoLimit properly the sound setting at updateSound runtime step (#5753)
Loïc Blot [Sat, 13 May 2017 10:03:11 +0000 (12:03 +0200)]
Limit properly the sound setting at updateSound runtime step (#5753)

* Limit properly the sound setting at updateSound runtime step

Fix #5026

* Add a comment

7 years agoMove KeyList & InputHandler from game.h to client/inputhandler.h (#5752)
Loïc Blot [Sat, 13 May 2017 09:05:16 +0000 (11:05 +0200)]
Move KeyList & InputHandler from game.h to client/inputhandler.h (#5752)

* Move KeyList & InputHandler from game.h to client/inputhandler.h

We have a header for inputs, move inputhandler class & related keylist object to it

Also introduce a cpp file for MyEventReceiver::OnEvent function in inputhandler.h because a so huge function doesn't needs to be inlined

* Pass clang-format on inputhandler.{cpp,h} (compatible)

7 years agoAndroid build fix
Loic Blot [Sat, 13 May 2017 07:09:02 +0000 (09:09 +0200)]
Android build fix

7 years agoMinor pause/escape menu improvements (#5751)
red-001 [Sat, 13 May 2017 06:50:19 +0000 (07:50 +0100)]
Minor pause/escape menu improvements (#5751)

- Split movement keys into separate entries.
- Increase buffer size due to the above change.
- Change capitalisation.
- Remove code-style violating white spaces.

7 years agoReplace inconsistent mentions of core.* with minetest.* (#5749)
rubenwardy [Fri, 12 May 2017 09:27:58 +0000 (10:27 +0100)]
Replace inconsistent mentions of core.* with minetest.* (#5749)

7 years agoRework escape/pause menu (#5719)
red-001 [Thu, 11 May 2017 08:39:37 +0000 (09:39 +0100)]
Rework escape/pause menu (#5719)

* Rework escape/pause menu

- Remove build information
- Use current controls instead of default controls
- Add information about the current server in place of the build information
- Add text saying the game is paused to if in singleplayer mode.
rework pause/escape menu

* improve consistency + display server_name

7 years agoMenu: Fix starting a server if the server address is an empty string. (#5742)
red-001 [Wed, 10 May 2017 21:25:45 +0000 (22:25 +0100)]
Menu: Fix starting a server if the server address is an empty string. (#5742)

Minetest uses an empty string internal to signal that a server should be started.

7 years agoPrivate nodemeta (#5702)
sfan5 [Wed, 10 May 2017 13:29:21 +0000 (15:29 +0200)]
Private nodemeta (#5702)

* Private node metadata that isn't sent to the client

7 years agominetest.deserialize: Throw error when argument not string (#5738)
SmallJoker [Tue, 9 May 2017 21:11:20 +0000 (23:11 +0200)]
minetest.deserialize: Throw error when argument not string (#5738)

7 years agoAndroid: Fix crash while loading main menu (#5736)
red-001 [Tue, 9 May 2017 16:30:34 +0000 (17:30 +0100)]
Android: Fix crash while loading main menu (#5736)

Broken by 43d1f37

7 years agoAdd cancel button to password change menu. (#5720)
red-001 [Tue, 9 May 2017 09:04:45 +0000 (10:04 +0100)]
Add cancel button to password change menu. (#5720)

* Add cancel button to password change menu.

7 years agoMove Pilzadam to previous developers. (#5735)
Auke Kok [Tue, 9 May 2017 06:56:57 +0000 (23:56 -0700)]
Move Pilzadam to previous developers. (#5735)

7 years agoRevert custom player collision box and step height commits
paramat [Tue, 9 May 2017 00:59:02 +0000 (01:59 +0100)]
Revert custom player collision box and step height commits

These caused inability to pass through 2 node high spaces or step up onto slabs
or steps when a new client connected to an older server.

7 years agoread_schematic_replacements: ensure fields are strings (#5726)
Loïc Blot [Mon, 8 May 2017 18:43:03 +0000 (20:43 +0200)]
read_schematic_replacements: ensure fields are strings (#5726)

* read_schematic_replacements: ensure fields are strings

add a type check before reading strings on read_schematic_replacements deserializer

* throw LuaError instead of asserting the whole client

7 years agoCustom step height: Fix implementation
paramat [Mon, 8 May 2017 00:27:11 +0000 (01:27 +0100)]
Custom step height: Fix implementation

Recent commit 45ab62d6a3d90ab3b97aec88251a766cb5dd1899 had a coding error that
made climbing out of water difficult due to an incorrect value of the step height
when not 'touching ground'.
It also incorrectly multiplied the custom stepheight by BS, resulting in being
able to step-up 2 nodes if set to the default of 0.6, or even 0.3.
Also the implementation was wrong because it customised the step height when
not 'touching ground', this step height is for a slight rise when catching the
edge of a node during a jump, and should always remain at 0.2 * BS.

7 years agoShaders: Remove unused water surface shader
paramat [Fri, 5 May 2017 01:12:47 +0000 (02:12 +0100)]
Shaders: Remove unused water surface shader

Also remove hardcoded MTGame node.

The 'water surface shader' was duplicated shader code in preparation for
intended new water surface shaders. For development purposes the MTGame node
'default:water_source' had it's top tile assigned to 'water surface shader'.
Due to shader duplication this commit does not cause any change to shader
behaviour.

7 years agoPlayer attrs: permits to remove an attribute by setting value to nil (#5716)
Loïc Blot [Sun, 7 May 2017 10:13:15 +0000 (12:13 +0200)]
Player attrs: permits to remove an attribute by setting value to nil (#5716)

* Player attrs: permits to remove an attribute by setting value to nil

When doing player:set_attribute("attr", nil) remove attribute

Also remove a useless check on C++ API part (already done by checkplayer)

Fix #5709

7 years agoLINT fix since d0678948165768472fc940c03e78cba787f49ea5
Loic Blot [Sun, 7 May 2017 09:07:17 +0000 (11:07 +0200)]
LINT fix since d0678948165768472fc940c03e78cba787f49ea5

7 years agoPlayer properties: Set correct default collisionbox
paramat [Sun, 7 May 2017 00:48:42 +0000 (01:48 +0100)]
Player properties: Set correct default collisionbox

Recent commit b6f4a9c7e1a4f0bac66fd6f6ff844425ac775975 removed a hardcoded
player collisionbox which resulted on falling back to an incorrect default.
This stopped players walking through 2-node high spaces and made the player
slightly wider.

Improve docs for custom player collisionbox feature and reformat nearby lines.

7 years agoReplace occurrence of luaL_reg in l_camera.cpp
T0ny2 [Sat, 6 May 2017 23:37:37 +0000 (00:37 +0100)]
Replace occurrence of luaL_reg in l_camera.cpp

Related to commit 41c5483. Replace an occurrence of luaL_reg in
src/script/lua_api/l_camera.cpp (added by commit de028fc).

7 years agoFix myfloor(0.0)
ShadowNinja [Fri, 16 Oct 2015 16:52:24 +0000 (12:52 -0400)]
Fix myfloor(0.0)

7 years agoClean up numeric.h and split FacePositionCache from it
ShadowNinja [Mon, 6 Jul 2015 16:53:30 +0000 (12:53 -0400)]
Clean up numeric.h and split FacePositionCache from it

I also optiized FacePositionCache a bit: I removed a map
lookup and vector copy from both branches of getFacePosition.

7 years agoMake the player collisionbox settable
TeTpaAka [Fri, 29 May 2015 18:30:55 +0000 (20:30 +0200)]
Make the player collisionbox settable

7 years agoUse a settings object for the main settings 1949/head
ShadowNinja [Fri, 12 Dec 2014 19:49:19 +0000 (14:49 -0500)]
Use a settings object for the main settings

This unifies the settings APIs.

This also unifies the sync and async registration APIs, since the async
registration API did not support adding non-functions to the API table.

7 years agoFix codestyle since CSM Camera API
Loic Blot [Sat, 6 May 2017 19:30:27 +0000 (21:30 +0200)]
Fix codestyle since CSM Camera API

7 years agoAdd configurable key bindings for hotbar scrolling, and for changing volume.
Wuzzy [Thu, 3 Jul 2014 05:46:19 +0000 (07:46 +0200)]
Add configurable key bindings for hotbar scrolling, and for changing volume.

7 years agoUse stepheight from CAO instead of hardcoded value 5710/head
Sapier [Sat, 19 Dec 2015 15:37:13 +0000 (16:37 +0100)]
Use stepheight from CAO instead of hardcoded value

7 years ago[CSM] add `on_item_use` (#5544)
red-001 [Sat, 6 May 2017 19:12:44 +0000 (20:12 +0100)]
[CSM] add `on_item_use` (#5544)

7 years agoMake players respect makes_footstep_sound in the object properties
TeTpaAka [Sun, 28 Jun 2015 18:51:59 +0000 (20:51 +0200)]
Make players respect makes_footstep_sound in the object properties

7 years ago[CSM] Add camera API (#5609)
bigfoot547 [Fri, 5 May 2017 20:07:36 +0000 (15:07 -0500)]
[CSM] Add camera API (#5609)

* [CSM] Add camera API
roper rebase & squash

* Address nerzhul's review

7 years agoClouds API: Fix yellow clouds at dawn and dusk (#5707)
Paramat [Fri, 5 May 2017 20:07:25 +0000 (21:07 +0100)]
Clouds API: Fix yellow clouds at dawn and dusk (#5707)

7 years agoAdd missing server sending rule for bd921a7916f0fafc493b1c4d0eeb5e2bb1d6a7c2
Loic Blot [Fri, 5 May 2017 18:21:04 +0000 (20:21 +0200)]
Add missing server sending rule for bd921a7916f0fafc493b1c4d0eeb5e2bb1d6a7c2

7 years agoFix Android build (#5706)
Wayward One [Fri, 5 May 2017 15:27:50 +0000 (11:27 -0400)]
Fix Android build (#5706)

* Fix Android build

7 years agoSave minetest screen width/height options when modified (#5683)
Loïc Blot [Fri, 5 May 2017 11:47:11 +0000 (13:47 +0200)]
Save minetest screen width/height options when modified (#5683)

* Save minetest screen width/height options when modified

* Add autosave_screensize setting (default true)

* Fix @SmallJoker comments