oweals/minetest.git
5 years agoFix a crash on Android with Align2Npot2 (#8070) stable-0.4
Loïc Blot [Mon, 7 Jan 2019 16:05:18 +0000 (17:05 +0100)]
Fix a crash on Android with Align2Npot2 (#8070)

* Fix a crash on Android with Align2Npot2

glGetString can be NULL. If stored in a string it triggers a SIGSEGV.
Instead do a basic strstr and verify the pointer
* Better Align2Npot2 check (+ performance)

5 years agoDrop libgmp on Android and use mini-gmp (#8047)
Loïc Blot [Fri, 4 Jan 2019 15:41:42 +0000 (16:41 +0100)]
Drop libgmp on Android and use mini-gmp (#8047)

5 years agoBump android version code for next Play Store version
Loïc Blot [Fri, 4 Jan 2019 13:16:09 +0000 (14:16 +0100)]
Bump android version code for next Play Store version

5 years agoRevert "upright_sprite: Fix texture position for players"
Loïc Blot [Thu, 3 Jan 2019 11:04:51 +0000 (12:04 +0100)]
Revert "upright_sprite: Fix texture position for players"

This reverts commit d58801ab3204757e6c49892a05633281144f4f44.

5 years agoAndroid: Fix start-up crashes on version 4.x (#8003)
stujones11 [Sat, 22 Dec 2018 18:02:00 +0000 (18:02 +0000)]
Android: Fix start-up crashes on version 4.x (#8003)

* Android: Load shared STL library

* Android: Fix exception with window background image

5 years agoAdd missing variables since previous cherry-pick
Loic Blot [Sat, 22 Dec 2018 16:28:22 +0000 (17:28 +0100)]
Add missing variables since previous cherry-pick

5 years agoUpdate Android java code (#7820)
Maksim [Sun, 2 Dec 2018 23:39:35 +0000 (00:39 +0100)]
Update Android java code (#7820)

Targets SDK 26 as required by the playstore.
Fixes screen auto-rotation closing game.
Hides on-screen navigation bar if present.

Update gradlew.
Fix display aspect on 18+/:9 displays (like a Samsung Galaxy S9).
Remove small app icons, not required.
Fix xml in unpacking activity.
Support Android permission: On Android 6.0+ you need to manually give write
permission (as required by google).
Background during unpacking (just a demo for now).
Material Design: no more Android 2 interface.
Immersive mode (Android 4.4+ - hide NavBar for fullscreen mode).

5 years agoAndroid: Fix memory leak when displaying images in the mainmenu (#8011)
rubenwardy [Sat, 22 Dec 2018 07:46:41 +0000 (07:46 +0000)]
Android: Fix memory leak when displaying images in the mainmenu (#8011)

5 years agoInclude alpha channel reference in MaterialTypeParam
stujones11 [Fri, 26 Jan 2018 19:08:54 +0000 (19:08 +0000)]
Include alpha channel reference in MaterialTypeParam

5 years agoUpdate android version code (rebuild)
Loic Blot [Tue, 4 Dec 2018 18:11:03 +0000 (19:11 +0100)]
Update android version code (rebuild)

5 years agoBump android version to 20 7695/head
Loic Blot [Thu, 28 Jun 2018 16:11:21 +0000 (18:11 +0200)]
Bump android version to 20

5 years agoUpdate cURL (7.60.0) & SQLite3 (3.24.0)
Loic Blot [Thu, 28 Jun 2018 15:46:01 +0000 (17:46 +0200)]
Update cURL (7.60.0) & SQLite3 (3.24.0)

5 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)

5 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)

5 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)

5 years agoFix buffer overrun in SRP (#7484)
red-001 [Tue, 26 Jun 2018 08:02:26 +0000 (09:02 +0100)]
Fix buffer overrun in SRP (#7484)

The old code got a pointer to the array instead of the first element, this resulted in a buffer overflow when the function was used more than once.

5 years agoFix small memory leaks in client. (#7492)
red-001 [Wed, 27 Jun 2018 15:06:37 +0000 (16:06 +0100)]
Fix small memory leaks in client. (#7492)

5 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

5 years agoFix android tools version used to build MT
Loic Blot [Mon, 11 Jun 2018 17:14:10 +0000 (19:14 +0200)]
Fix android tools version used to build MT

5 years agoAndroid: fix clean_assets target
Loic Blot [Mon, 11 Jun 2018 17:13:56 +0000 (19:13 +0200)]
Android: fix clean_assets target

5 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

5 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

5 years agoBump version to 0.4.17.1 0.4.17.1
SmallJoker [Fri, 8 Jun 2018 20:06:08 +0000 (22:06 +0200)]
Bump version to 0.4.17.1

5 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

5 years agoFix crash in log_deprecated when triggered from no function
SmallJoker [Mon, 14 May 2018 19:03:48 +0000 (21:03 +0200)]
Fix crash in log_deprecated when triggered from no function

Based on commit a1598e1b

5 years agoFix crash due to missing pointer validation
Loic Blot [Sun, 2 Jul 2017 20:26:25 +0000 (22:26 +0200)]
Fix crash due to missing pointer validation

Based on commit 014a1a0

5 years agoAndroid: fix another build typo
Loic Blot [Sun, 10 Jun 2018 15:11:57 +0000 (17:11 +0200)]
Android: fix another build typo

5 years agoAndroid: fix RTTI issue
Loic Blot [Sun, 10 Jun 2018 15:07:32 +0000 (17:07 +0200)]
Android: fix RTTI issue

5 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

5 years agoAndroid: Update build system for ndk-r15x
stujones11 [Wed, 15 Nov 2017 19:52:19 +0000 (19:52 +0000)]
Android: Update build system for ndk-r15x

Add workarounds for ndk-r16.

5 years agoBump version to 0.4.17 0.4.17
SmallJoker [Sun, 3 Jun 2018 15:35:20 +0000 (17:35 +0200)]
Bump version to 0.4.17

5 years agoBackport buildbot win32 scripts too
Loic Blot [Mon, 21 May 2018 21:14:54 +0000 (23:14 +0200)]
Backport buildbot win32 scripts too

5 years agoUpdate macosx build from master
Loic Blot [Mon, 21 May 2018 19:04:18 +0000 (21:04 +0200)]
Update macosx build from master

5 years agoFix windows toolchain due to missing packages, upgrade to more recent toolchain
Loic Blot [Mon, 21 May 2018 19:00:56 +0000 (21:00 +0200)]
Fix windows toolchain due to missing packages, upgrade to more recent toolchain

5 years agoC++03 oldify in various source files
SmallJoker [Fri, 18 May 2018 09:10:53 +0000 (11:10 +0200)]
C++03 oldify in various source files

5 years agoMore C++03 fixes
Loic Blot [Mon, 14 May 2018 05:42:20 +0000 (07:42 +0200)]
More C++03 fixes

5 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

5 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

5 years agoFix i386 bit build at OpenBSD (#7259)
mazocomp [Sat, 21 Apr 2018 19:33:38 +0000 (22:33 +0300)]
Fix i386 bit build at OpenBSD (#7259)

5 years agoFix C++03 compiling due to C++11 initialization issues in backport
Loic Blot [Sun, 13 May 2018 08:15:35 +0000 (10:15 +0200)]
Fix C++03 compiling due to C++11 initialization issues in backport

5 years agoBuiltin auth handler: Speed up file writing (#7252)
SmallJoker [Thu, 19 Apr 2018 16:36:10 +0000 (18:36 +0200)]
Builtin auth handler: Speed up file writing (#7252)

5 years agoCavegen: Fix variable typo that broke mgvalleys large cave distribution (#7249)
Paramat [Tue, 17 Apr 2018 21:25:59 +0000 (22:25 +0100)]
Cavegen: Fix variable typo that broke mgvalleys large cave distribution (#7249)

Fix elusive 5 year old bug that caused mgvalleys large caves to be flat and
limited to mapchunk borders.
Error was fixed 2 years ago in 'CavesV6' but not in 'CavesRandomWalk'.

5 years agoFix segfault caused by wrong wgettext()
sfan5 [Mon, 9 Apr 2018 14:25:57 +0000 (16:25 +0200)]
Fix segfault caused by wrong wgettext()

5 years agoFix for translating empty strings
minduser00 [Tue, 27 Mar 2018 11:49:47 +0000 (11:49 +0000)]
Fix for translating empty strings

Fix for incorrect translation of empty strings

In the key change menu, when a button key not have name an empty string is passed to gettext.
The empty string is reserved for gettext to return de header of the .po file an this is shoved in the button

5 years agoupright_sprite: Fix texture position for players Fixes #6471
SmallJoker [Mon, 9 Apr 2018 12:58:35 +0000 (14:58 +0200)]
upright_sprite: Fix texture position for players Fixes #6471

5 years agoHuge LBM lookup performance improvement on mapblock loading (#7195)
Loïc Blot [Wed, 4 Apr 2018 08:56:46 +0000 (10:56 +0200)]
Huge LBM lookup performance improvement on mapblock loading (#7195)

* Huge LBM lookup performance improvement on mapblock loading

5 years agocore.rotate_node: Do not trigger after_place_node (#6900)
SmallJoker [Thu, 29 Mar 2018 19:44:13 +0000 (21:44 +0200)]
core.rotate_node: Do not trigger after_place_node (#6900)

5 years agomacOS: don't require X11 libraries during compilation (#7149)
D Tim Cummings [Mon, 26 Mar 2018 15:43:59 +0000 (01:43 +1000)]
macOS: don't require X11 libraries during compilation (#7149)

The xxf86vm needs to be removed from Apple builds to avoid CMake Error XXF86VM_LIBRARY is NOTFOUND

5 years agoMinetest ASCII art: Move from actionstream to rawstream
paramat [Sat, 17 Mar 2018 22:05:21 +0000 (22:05 +0000)]
Minetest ASCII art: Move from actionstream to rawstream

5 years agoGenerate Notifier: Clear events once after all 'on generated' functions
paramat [Fri, 2 Mar 2018 13:39:39 +0000 (13:39 +0000)]
Generate Notifier: Clear events once after all 'on generated' functions

5 years agoFix liquid post effect colour behaviour in third person view
red-001 [Sun, 25 Feb 2018 22:52:05 +0000 (22:52 +0000)]
Fix liquid post effect colour behaviour in third person view

5 years agoCollisionMoveSimple: Collide with 'ignore' nodes
paramat [Sat, 24 Feb 2018 15:57:34 +0000 (15:57 +0000)]
CollisionMoveSimple: Collide with 'ignore' nodes

5 years agoSAO limits: Allow SAOs to exist outside the set 'mapgen limit'
paramat [Tue, 20 Feb 2018 19:32:24 +0000 (19:32 +0000)]
SAO limits: Allow SAOs to exist outside the set 'mapgen limit'

5 years agoFind nodes in area (under air): Raise volume limit and document it
paramat [Wed, 21 Feb 2018 14:34:06 +0000 (14:34 +0000)]
Find nodes in area (under air): Raise volume limit and document it

5 years agoDelete world dialog: Move buttons to avoid double click deletion
Muhammad Rifqi Priyo Susanto [Fri, 29 Sep 2017 17:50:42 +0000 (00:50 +0700)]
Delete world dialog: Move buttons to avoid double click deletion

Move confirmation delete button to never overlap initial delete button,
to avoid world deletion by accidental double click.

5 years ago/shutdown can't do countdown when using reconnect and/or shutdown message (#7055)
dopik [Mon, 19 Feb 2018 07:41:44 +0000 (08:41 +0100)]
/shutdown can't do countdown when using reconnect and/or shutdown message (#7055)

Delay was converted from the param string and not the delay value, thus never using the actual given delay value when used in combination with other string values in the param, in this case reconnect and the shutdown messsage.

5 years agoCheck argument types inside MetaDataRef Lua API (#7045)
sfan5 [Sun, 18 Feb 2018 09:40:45 +0000 (10:40 +0100)]
Check argument types inside MetaDataRef Lua API (#7045)

5 years agoFix "Ignoring CONTENT_IGNORE redefinition" warning (#4393)
you [Sun, 18 Feb 2018 09:40:14 +0000 (10:40 +0100)]
Fix "Ignoring CONTENT_IGNORE redefinition" warning (#4393)

minetest.override_item still passes to core

5 years agoItem entity: Delete in 'ignore' nodes
paramat [Sat, 10 Feb 2018 04:55:40 +0000 (04:55 +0000)]
Item entity: Delete in 'ignore' nodes

5 years agoFalling.lua: Delete falling node entities on contact with 'ignore'
paramat [Tue, 6 Feb 2018 00:55:35 +0000 (00:55 +0000)]
Falling.lua: Delete falling node entities on contact with 'ignore'

Prevents falling node entities entering the ignore at a world edge and
resting on unloaded nodes 16 nodes below, unreachable, undiggable and
still being processed by 'on step' because they don't revert to nodes.

5 years agoAllow dumping userdata (#7012)
you [Thu, 8 Feb 2018 18:17:06 +0000 (19:17 +0100)]
Allow dumping userdata (#7012)

5 years agoMove `setlocale` from Lua to C++.
red-001 [Sun, 21 Jan 2018 12:28:47 +0000 (12:28 +0000)]
Move `setlocale` from Lua to C++.

5 years agoAdd minetest.is_player (#7013)
you [Mon, 5 Feb 2018 14:17:10 +0000 (15:17 +0100)]
Add minetest.is_player (#7013)

* Add minetest.is_player

* First use for is_player

5 years ago"static constexpr v3s16 light_dirs[8]" fails to compile, sync it with master! (#7261)
mazocomp [Sat, 21 Apr 2018 11:07:25 +0000 (14:07 +0300)]
"static constexpr v3s16 light_dirs[8]" fails to compile, sync it with master! (#7261)

5 years agoFix C++11 feature detection for undefined _MSC_VER (#7255)
mazocomp [Fri, 20 Apr 2018 17:55:23 +0000 (20:55 +0300)]
Fix C++11 feature detection for undefined _MSC_VER (#7255)

5 years agoRefine movement anticheat again (#7004)
sfan5 [Fri, 2 Feb 2018 22:34:09 +0000 (23:34 +0100)]
Refine movement anticheat again (#7004)

* Account for walking speed in vertical dir
* Avoid undefined behaviour due to division-by-zero

5 years agoApply physics overrides correctly during anticheat calculations (#6970)
sfan5 [Sun, 28 Jan 2018 09:21:21 +0000 (10:21 +0100)]
Apply physics overrides correctly during anticheat calculations (#6970)

5 years agoFix off-by-one in log output line length (#6896)
Pedro Gimeno [Tue, 9 Jan 2018 18:07:14 +0000 (19:07 +0100)]
Fix off-by-one in log output line length (#6896)

5 years agoFix buffer parameter not working in LuaPerlinNoiseMap::l_getMapSlice()
Pedro Gimeno [Mon, 8 Jan 2018 20:32:15 +0000 (21:32 +0100)]
Fix buffer parameter not working in LuaPerlinNoiseMap::l_getMapSlice()

5 years agoFix Wstringop-overflow warning from util/srp.cpp (#6855)
you [Thu, 4 Jan 2018 13:25:20 +0000 (14:25 +0100)]
Fix Wstringop-overflow warning from util/srp.cpp (#6855)

* Fix Wstringop-overflow warning from util/srp.cpp

5 years agoFix rounding error in g/set_node caused by truncation to float
rubenwardy [Fri, 22 Dec 2017 10:00:57 +0000 (10:00 +0000)]
Fix rounding error in g/set_node caused by truncation to float

5 years agoFix dancing text
number Zero [Sun, 24 Dec 2017 21:54:43 +0000 (00:54 +0300)]
Fix dancing text

5 years agoFix undefined behaviour on getting pointer to data in empty vector
nOOb3167 [Fri, 22 Dec 2017 10:33:46 +0000 (11:33 +0100)]
Fix undefined behaviour on getting pointer to data in empty vector

`&vector[0]` is undefined if vector.empty(), causing build failure on MSVC

5 years agoFix wrong scrolling (#6809)
Vitaliy [Thu, 21 Dec 2017 19:58:06 +0000 (22:58 +0300)]
Fix wrong scrolling (#6809)

5 years agoBuiltin: Fix handle_node_drops crash with nil digger
SmallJoker [Tue, 12 Dec 2017 18:19:04 +0000 (19:19 +0100)]
Builtin: Fix handle_node_drops crash with nil digger

5 years agoDamage: Remove damage ignore timer
SmallJoker [Sun, 13 Aug 2017 07:49:29 +0000 (09:49 +0200)]
Damage: Remove damage ignore timer

5 years agoEnsure no item stack is being held before crafting (#4779)
Luis Cáceres [Wed, 6 Dec 2017 16:32:05 +0000 (16:32 +0000)]
Ensure no item stack is being held before crafting (#4779)

5 years agoShut down mapgen threads before other shutdown tasks (#6689)
raymoo [Sun, 3 Dec 2017 09:28:35 +0000 (01:28 -0800)]
Shut down mapgen threads before other shutdown tasks (#6689)

Solves some issues with ModStorage functionality in mapgen threads
that occurred when mapgen threads continued to run after the main
server thread had stopped. Also shuts down mapgen threads before
shutdown callbacks are called.

5 years agoUpdate documentation regarding authentication handler and related functions
sfan5 [Mon, 27 Nov 2017 17:00:30 +0000 (18:00 +0100)]
Update documentation regarding authentication handler and related functions

Properly document it instead of referencing the builtin handler as
authoritative "example" code.
Also adds definition of get_auth_handler() which was missing previously.

5 years agoHint at problematic code when logging deprecated calls
sfan5 [Thu, 23 Nov 2017 22:35:52 +0000 (23:35 +0100)]
Hint at problematic code when logging deprecated calls

5 years agoImprove documentation for player:set_attribute()
Ezhh [Sat, 25 Nov 2017 23:18:50 +0000 (23:18 +0000)]
Improve documentation for player:set_attribute()

5 years agoInventory: Restrict access from too far away
SmallJoker [Wed, 22 Nov 2017 18:25:26 +0000 (19:25 +0100)]
Inventory: Restrict access from too far away

5 years agocore.rotate_node: Run callbacks like with any regular placed node (#6648)
SmallJoker [Tue, 21 Nov 2017 19:21:52 +0000 (20:21 +0100)]
core.rotate_node: Run callbacks like with any regular placed node (#6648)

5 years agoBiome dust node: Only place on 'walkable' cubic non-liquid drawtypes
paramat [Wed, 15 Nov 2017 23:52:31 +0000 (23:52 +0000)]
Biome dust node: Only place on 'walkable' cubic non-liquid drawtypes

No longer decide placement on 'buildable_to' parameter.
Dust nodes only look acceptable placed on cubic nodes.
Modders may not want to make their plantlike decorations 'buildable_to'.

5 years agoImprove Settings tab button alignments
ezhh [Mon, 13 Nov 2017 01:42:57 +0000 (01:42 +0000)]
Improve Settings tab button alignments

5 years agoLua_api.txt: Add documentation of required mapgen aliases
paramat [Sun, 12 Nov 2017 19:10:08 +0000 (19:10 +0000)]
Lua_api.txt: Add documentation of required mapgen aliases

5 years agoRemove incorrect entry from settingtypes
Ezhh [Sun, 12 Nov 2017 00:45:22 +0000 (00:45 +0000)]
Remove incorrect entry from settingtypes

5 years agoMake use of safe file writing in auth handler (fixes #6576)
sfan5 [Tue, 7 Nov 2017 10:47:28 +0000 (11:47 +0100)]
Make use of safe file writing in auth handler (fixes #6576)

5 years agoAdd minetest.safe_write_file() to script API
sfan5 [Tue, 7 Nov 2017 10:46:06 +0000 (11:46 +0100)]
Add minetest.safe_write_file() to script API

5 years agoFix issue Minetest crash when custom font path is not exist
Muhammad Rifqi Priyo Susanto [Sat, 3 Jun 2017 02:51:48 +0000 (09:51 +0700)]
Fix issue Minetest crash when custom font path is not exist

We try to use default fallback for both mono and main font when custom font path is not exist. This way, if Minetest is not corrupted, we could avoid crash.

5 years agoFix Settings tab formspec alignment (#6585)
Ezhh [Sun, 5 Nov 2017 10:15:32 +0000 (10:15 +0000)]
Fix Settings tab formspec alignment (#6585)

5 years agoDo not scale texture unless necessary.
Lars Hofhansl [Sun, 5 Nov 2017 01:05:47 +0000 (18:05 -0700)]
Do not scale texture unless necessary.

This avoids scaling textures to 'texture_min_size' unless it is actually
required (because either auto-scaling or bi/trilinear filtering is enabled)

5 years agohttpfetch: Enable gzip support
sfan5 [Sat, 4 Nov 2017 21:19:27 +0000 (22:19 +0100)]
httpfetch: Enable gzip support

5 years agoAdd sha1 to lua utils. (#6563)
Rob Blanckaert [Mon, 30 Oct 2017 07:18:18 +0000 (00:18 -0700)]
Add sha1 to lua utils. (#6563)

5 years agoFix day_night_ratio_do_override not being initialised server-side
rubenwardy [Sun, 29 Oct 2017 18:31:50 +0000 (18:31 +0000)]
Fix day_night_ratio_do_override not being initialised server-side

Causes get_day_night_ratio() to return unpredictable results.

5 years agoAvoid filtering low-res textures for animated meshes (incl. players) (#6562)
lhofhansl [Sat, 28 Oct 2017 08:33:47 +0000 (01:33 -0700)]
Avoid filtering low-res textures for animated meshes (incl. players) (#6562)

5 years agoFix default item callbacks to work with nil users (#5819)
raymoo [Sat, 28 Oct 2017 08:30:50 +0000 (01:30 -0700)]
Fix default item callbacks to work with nil users (#5819)

* Fix default item callbacks to work with nil users

* item.lua: Handle node drops for invalid players

The if-condition for the dropping loop is the same as `inv`, which means that the 2nd possible definition of `give_item` is never used.
Remove redundant `local _, dropped_item`

5 years agoCorrect `prot_vers` in lua_api.txt.
Auke Kok [Fri, 20 Oct 2017 04:39:45 +0000 (21:39 -0700)]
Correct `prot_vers` in lua_api.txt.

We should avoid providing incorrect struct members in documentation
since people will be coding based on them.

5 years agoDon't try to craft a non-existent item
Esteban I. RM [Sun, 15 Oct 2017 05:52:05 +0000 (02:52 -0300)]
Don't try to craft a non-existent item

5 years agoProfiler: Fix var args not being passed to callback register function
rubenwardy [Sat, 14 Oct 2017 17:28:56 +0000 (18:28 +0100)]
Profiler: Fix var args not being passed to callback register function

Fixes #6517