oweals/minetest.git
8 years agoDocumentation: Remove incorrect and excessive mapgen flags text
paramat [Thu, 12 May 2016 03:39:05 +0000 (04:39 +0100)]
Documentation: Remove incorrect and excessive mapgen flags text

8 years agoContinue with 0.4.14-dev
sfan5 [Sun, 15 May 2016 12:49:15 +0000 (14:49 +0200)]
Continue with 0.4.14-dev

8 years agoBump version to 0.4.14 0.4.14
sfan5 [Sun, 15 May 2016 12:49:15 +0000 (14:49 +0200)]
Bump version to 0.4.14

8 years agoAndroid: Re-add button to remove singleplayer world
est31 [Sat, 14 May 2016 20:12:38 +0000 (22:12 +0200)]
Android: Re-add button to remove singleplayer world

Fixes #4120.

8 years agoFix android build by fixing patch line endings
est31 [Sat, 14 May 2016 14:46:46 +0000 (16:46 +0200)]
Fix android build by fixing patch line endings

8 years agoFix locked hardware buttons on Android
Maksim Gamarnik [Sat, 14 May 2016 13:35:56 +0000 (23:35 +1000)]
Fix locked hardware buttons on Android

Fixes #2122
Fixes #1454

Addendum (est31)
According from its docs in android_native_app_glue.h (from the NDK), the
onInputEvent should "Return 1 if you have handled the event, 0 for any
default dispatching". Before, we always returned 1, meaning we blocked
all hardware keys to be given to the OS.
This broke the volume keys and has caused #2122 and #1454.

Although it bases on lots of guesswork, it can probably safely be said that
CGUIEnvironment::postEventFromUser returns true if the event was handled,
and false if not. Therefore, set the status variable depending on what
postEventFromUser returned.

8 years agoMainmenu: don't show change keys dialog on android
est31 [Fri, 13 May 2016 00:22:31 +0000 (02:22 +0200)]
Mainmenu: don't show change keys dialog on android

The change keys dialog can't be left. It doesn't make
much sense to show it on Android in the first place,
therefore disable it, just like commit

aed70cb0b652d6cb2272e7b94cd56671b3df6239 'Disable sound and key binding settings in "pause" menu on android'

has disabled it for the esc menu.

Fixes #4115.

8 years agoFix #4111 ("Provided world path doesn't exist" if choosing singleplayer on first...
Rui [Thu, 12 May 2016 15:38:29 +0000 (01:38 +1000)]
Fix #4111 ("Provided world path doesn't exist" if choosing singleplayer on first run")

Bug and whitespace error fixed (Zeno)

8 years agoAndroid: download deps using https
est31 [Thu, 12 May 2016 00:11:27 +0000 (02:11 +0200)]
Android: download deps using https

Its more secure, and some pages even redirect to the https version.

8 years agoAndroid: update openssl to 1.0.2h
est31 [Wed, 11 May 2016 22:52:29 +0000 (00:52 +0200)]
Android: update openssl to 1.0.2h

8 years agoFix typo in the info printed by --version
Craig Robbins [Wed, 11 May 2016 13:20:20 +0000 (23:20 +1000)]
Fix typo in the info printed by --version

8 years agoAdd platform name to --version information
Craig Robbins [Wed, 11 May 2016 07:15:41 +0000 (17:15 +1000)]
Add platform name to --version information

8 years agoMapgen V6: Synchronize spflags with defaultsettings
kwolekr [Wed, 11 May 2016 02:06:03 +0000 (22:06 -0400)]
Mapgen V6: Synchronize spflags with defaultsettings

This fixes an issue where trees are omitted from Mapgen V6 maps on
configurations that explicitly defined the mgv6_spflags setting.

8 years agoREADME: Update Fedora dependencies list
Johnny [Tue, 10 May 2016 21:28:45 +0000 (14:28 -0700)]
README: Update Fedora dependencies list

Edited packages to reflect correct packages

8 years agoTranslated using Weblate (Spanish)
Diego Martínez [Fri, 6 May 2016 01:34:11 +0000 (03:34 +0200)]
Translated using Weblate (Spanish)

Currently translated at 56.8% (504 of 887 strings)

This is a merger of two commits.

8 years agoTranslated using Weblate (Spanish)
Lucas Montenegro [Tue, 10 May 2016 15:32:35 +0000 (17:32 +0200)]
Translated using Weblate (Spanish)

Currently translated at 51.5% (457 of 887 strings)

This is a merger of two commits.

8 years agoTranslated using Weblate (Spanish)
ShadowNinja [Tue, 10 May 2016 15:34:28 +0000 (17:34 +0200)]
Translated using Weblate (Spanish)

Currently translated at 51.5% (457 of 887 strings)

8 years agoTranslated using Weblate (Ukrainian)
Fixer [Mon, 9 May 2016 14:22:10 +0000 (16:22 +0200)]
Translated using Weblate (Ukrainian)

Currently translated at 38.4% (341 of 887 strings)

This is a merger of two commits.

8 years agoTranslated using Weblate (Lojban)
senpi [Sun, 8 May 2016 15:39:07 +0000 (17:39 +0200)]
Translated using Weblate (Lojban)

Currently translated at 10.5% (94 of 887 strings)

8 years agoTranslated using Weblate (Italian)
Emon Omen [Sat, 7 May 2016 18:15:36 +0000 (20:15 +0200)]
Translated using Weblate (Italian)

Currently translated at 100.0% (887 of 887 strings)

This is a merger of three commits.

8 years agoTranslated using Weblate (Japanese)
BreadW [Sat, 7 May 2016 14:10:10 +0000 (16:10 +0200)]
Translated using Weblate (Japanese)

Currently translated at 51.5% (457 of 887 strings)

8 years agoTranslated using Weblate (French)
Yvan YR [Sat, 7 May 2016 09:19:25 +0000 (11:19 +0200)]
Translated using Weblate (French)

Currently translated at 90.7% (805 of 887 strings)

8 years agoTranslated using Weblate (Japanese)
BreadW [Fri, 6 May 2016 22:18:04 +0000 (00:18 +0200)]
Translated using Weblate (Japanese)

Currently translated at 50.6% (449 of 887 strings)

8 years agoTranslated using Weblate (Hungarian)
Kisbenedek Márton [Sat, 7 May 2016 01:17:37 +0000 (03:17 +0200)]
Translated using Weblate (Hungarian)

Currently translated at 75.7% (672 of 887 strings)

8 years agoTranslated using Weblate (Danish)
Thomas Wagner Nielsen [Thu, 5 May 2016 20:50:35 +0000 (22:50 +0200)]
Translated using Weblate (Danish)

Currently translated at 27.6% (245 of 887 strings)

This is a merger of two commits.

8 years agoTranslated using Weblate (Chinese (China))
Claybiokiller [Thu, 5 May 2016 17:09:42 +0000 (19:09 +0200)]
Translated using Weblate (Chinese (China))

Currently translated at 73.9% (656 of 887 strings)

8 years agoTranslated using Weblate (German)
Wuzzy [Thu, 5 May 2016 23:16:37 +0000 (01:16 +0200)]
Translated using Weblate (German)

Currently translated at 100.0% (887 of 887 strings)

This is a merger of three commits.

8 years agoTranslated using Weblate (Dutch)
Auke Kok [Thu, 5 May 2016 20:33:07 +0000 (22:33 +0200)]
Translated using Weblate (Dutch)

Currently translated at 89.6% (795 of 887 strings)

This is a merger of three commits.

8 years agoTranslated using Weblate (Dutch)
Tobyplowy [Thu, 5 May 2016 20:33:12 +0000 (22:33 +0200)]
Translated using Weblate (Dutch)

Currently translated at 85.6% (760 of 887 strings)

8 years agoLua_api.txt: Fix documentation for facedir rotation
paramat [Mon, 9 May 2016 22:44:15 +0000 (23:44 +0100)]
Lua_api.txt: Fix documentation for facedir rotation

8 years agoAdd [resize texture modifier Resizes the texture to the given dimensions.
SmallJoker [Tue, 3 May 2016 18:14:01 +0000 (20:14 +0200)]
Add [resize texture modifier Resizes the texture to the given dimensions.

8 years agoUpdate credits tab 3907/head
est31 [Thu, 24 Mar 2016 16:17:37 +0000 (17:17 +0100)]
Update credits tab

8 years agoDefaultsettings/Android: Increase 'max block generate distance' to 3
paramat [Sun, 8 May 2016 00:03:56 +0000 (01:03 +0100)]
Defaultsettings/Android: Increase 'max block generate distance' to 3

8 years agoFixes #4098 ce8a9ed didn't quite go far enough, and left this bug in
gregorycu [Sun, 8 May 2016 09:02:11 +0000 (19:02 +1000)]
Fixes #4098 ce8a9ed didn't quite go far enough, and left this bug in

8 years agoChat: Keep scroll position constant in ChatBuffer::deleteOldest()
Kahrl [Tue, 23 Apr 2013 21:17:33 +0000 (23:17 +0200)]
Chat: Keep scroll position constant in ChatBuffer::deleteOldest()

8 years agoOptimize default settings for Android build
Maksim Gamarnik [Sun, 10 Apr 2016 00:12:10 +0000 (03:12 +0300)]
Optimize default settings for Android build

8 years agoRun unescape_enriched *after* unescape_string.
Ekdohibs [Thu, 5 May 2016 17:08:45 +0000 (19:08 +0200)]
Run unescape_enriched *after* unescape_string.

Doing it the other way round was a mistake, since it breaks
minetest.formspec_escape with escape sequences that contain
special characters.

8 years agoMake dropdowns show the string that was their argument.
Ekdohibs [Thu, 5 May 2016 16:50:02 +0000 (18:50 +0200)]
Make dropdowns show the string that was their argument.

This makes it work even if it contains escape sequences,
which didn't work before.

8 years agoAndroid: Increase player_stepheight for thicker snow nodebox
Maksim Gamarnik [Tue, 3 May 2016 00:24:36 +0000 (03:24 +0300)]
Android: Increase player_stepheight for thicker snow nodebox

8 years agoLua_api.txt: Add warnings of l-system lighting bug
paramat [Mon, 2 May 2016 20:22:06 +0000 (21:22 +0100)]
Lua_api.txt: Add warnings of l-system lighting bug

8 years agoRun updatepo.sh
est31 [Thu, 5 May 2016 14:14:09 +0000 (16:14 +0200)]
Run updatepo.sh

8 years agoUpdate settings translation file and minetest.conf.example
est31 [Thu, 5 May 2016 14:12:58 +0000 (16:12 +0200)]
Update settings translation file and minetest.conf.example

8 years agoFix holding down F10 (open console) causing GUI to freeze
Craig Robbins [Wed, 4 May 2016 11:21:13 +0000 (21:21 +1000)]
Fix holding down F10 (open console) causing GUI to freeze

8 years agoSettings_translation_file: Update mapgen with cave width parameter
paramat [Mon, 2 May 2016 22:16:28 +0000 (23:16 +0100)]
Settings_translation_file: Update mapgen with cave width parameter

8 years agoFix Windows build
Craig Robbins [Mon, 2 May 2016 05:01:17 +0000 (15:01 +1000)]
Fix Windows build

Fixes the issue introduced by c1a0ebb (Fix use of uninitialised variable
in class Event) causing Windows builds to fail

8 years agoFileSelectMenu: Fix formspec parsing broken by Irrlicht file-chooser
Kahrl [Thu, 28 Apr 2016 18:27:59 +0000 (20:27 +0200)]
FileSelectMenu: Fix formspec parsing broken by Irrlicht file-chooser

8 years agofind_path: consider walkable instead of CONTENT_AIR 4037/head
Auke Kok [Tue, 26 Apr 2016 00:14:57 +0000 (17:14 -0700)]
find_path: consider walkable instead of CONTENT_AIR

The path finding code works fairly well except that it considers
anythin not CONTENT_AIR to be "above the surface". This results in
paths that are unwalkable for entities since e.g. plants are not
walkable. The path would force them to jump on top of grass plants,
etc..

The obvious solution is not to use CONTENT_AIR as a criteria, but
instead distinguish between walkable and non-walkable nodes. This
results in paths that properly walk through grass nodes.

This was extensively tested by a flock of electric sheep.

Note that for underwater purposes this changes the behaviour from
"the surface is walkable" to "ignore water entirely" making the
path go across the water bottom, and pathing fail likely from the
water surface. This is intentional.

8 years agoPathfinder: improve GridNode storage
est31 [Fri, 1 Apr 2016 01:13:24 +0000 (03:13 +0200)]
Pathfinder: improve GridNode storage

Before, the GridNodes were stored in vector<vector<vector<T>>>,
and initialized in advance. Putting three vectors inside each other
puts lots of unneccessary stress onto the allocator, costs more memory,
and has worse cache locality than a flat vector<T>.

For larger search distances, an the array getting initialized means
essentially O(distance^3) complexity in both time and memory,
which makes the current path search a joke. In order to really
profit from the dijkstra/A* algorithms, other data structures
need to be used for larger distances.

For shorter distances, a map based GridNode storage may be slow as
it requires lots of levels of indirection, which is bad for things like
cache locality, and an array based storage may be faster.

This commit does:

1. remove the vector<vector<vector<T>>> based GridNodes storage that
is allocated and initialized in advance and for the whole
possible area.

2. Add a vector<T> based GridNodes storage that is allocated and
initialized in advance for the whole possible area.

3. Add a map<P,T> based GridNodes storage whose elements are
allocated and initialized, when the path search code
demands it.

4. Add code to decide between approach 2 and 3,
based on the length of the path.

5. Remove the unused "surfaces" member of the PathGridnode class.
Setting this isn't as easy anymore for the
map based GridNodes storage.

8 years agoPathfinder: use core::aabbox3d instead of own type
est31 [Fri, 1 Apr 2016 00:43:28 +0000 (02:43 +0200)]
Pathfinder: use core::aabbox3d instead of own type

There is no need to reinvent the wheel here, we have
great classes from irrlicht.

8 years agoPathfinder: Fix style
est31 [Thu, 31 Mar 2016 23:52:17 +0000 (01:52 +0200)]
Pathfinder: Fix style

* Fix naming style for methods and classes:
Use camelCase for methods and PascalCase for classes as
code style demands it. And use sneak_case for methods that
are not member of a class.
* Replace "* " with " *" for Pointers
* Same for references
* Put function body opening braces on new line
* Other misc minor non functional style improvements

8 years agoMove pathfinder classes to cpp file
est31 [Thu, 31 Mar 2016 23:20:34 +0000 (01:20 +0200)]
Move pathfinder classes to cpp file

There is no need to put them into the header, they are solely used
inside the pathfinder.

Another advantage of this change is that only the pathfinder.cpp has
to be compiled if PATHFINDER_DEBUG gets defined or undefined, not
all files including the .h.

This commit moves the pathfinder classes to the cpp file without
modifications.
Also, the PATHFINDER_DEBUG macro gets moved to the cpp file and
the PATHFINDER_CALC_TIME macro gets moved to a plce where it
actually does work.

8 years agoFix use of uninitialised variable in class Event
Craig Robbins [Sun, 1 May 2016 06:47:08 +0000 (16:47 +1000)]
Fix use of uninitialised variable in class Event

8 years agoUse MoveFileEx to rename files on Windows (not rename)
gregorycu [Sun, 1 May 2016 07:27:29 +0000 (17:27 +1000)]
Use MoveFileEx to rename files on Windows (not rename)

8 years agoMainmenu: Remove space under mod list
Rui [Sat, 30 Apr 2016 08:09:59 +0000 (17:09 +0900)]
Mainmenu: Remove space under mod list

8 years agoTranslated using Weblate (Japanese)
Rui [Wed, 30 Mar 2016 11:09:05 +0000 (13:09 +0200)]
Translated using Weblate (Japanese)

Currently translated at 51.7% (448 of 865 strings)

This is a merger of two commits.

8 years agoTranslated using Weblate (Italian)
Emon Omen [Fri, 29 Apr 2016 19:48:10 +0000 (21:48 +0200)]
Translated using Weblate (Italian)

Currently translated at 100.0% (865 of 865 strings)

This is a merger of two commits.

8 years agoTranslated using Weblate (Chinese (China))
Claybiokiller [Sun, 24 Apr 2016 13:15:50 +0000 (15:15 +0200)]
Translated using Weblate (Chinese (China))

Currently translated at 75.4% (653 of 865 strings)

8 years agoTranslated using Weblate (Catalan)
Joan Ciprià Moreno Teodoro [Sat, 16 Apr 2016 09:26:36 +0000 (11:26 +0200)]
Translated using Weblate (Catalan)

Currently translated at 46.5% (403 of 865 strings)

This is a merger of two commits.

8 years agoTranslated using Weblate (Danish)
Thomas Wagner Nielsen [Sun, 17 Apr 2016 06:53:06 +0000 (08:53 +0200)]
Translated using Weblate (Danish)

Currently translated at 28.7% (249 of 865 strings)

8 years agoTranslated using Weblate (Indonesian)
Muhammad Rifqi Priyo Susanto [Tue, 12 Apr 2016 16:24:43 +0000 (18:24 +0200)]
Translated using Weblate (Indonesian)

Currently translated at 57.4% (497 of 865 strings)

This is a merger of three commits.

8 years agoTranslated using Weblate (Estonian)
Jan Harald [Sat, 9 Apr 2016 11:53:33 +0000 (13:53 +0200)]
Translated using Weblate (Estonian)

Currently translated at 21.8% (189 of 865 strings)

8 years agoTranslated using Weblate (Portuguese)
Fernando Reis [Fri, 25 Mar 2016 12:26:39 +0000 (13:26 +0100)]
Translated using Weblate (Portuguese)

Currently translated at 67.5% (584 of 865 strings)

This is a merger of 5 commits.

8 years agoTranslated using Weblate (German)
Wuzzy [Sun, 27 Mar 2016 01:07:17 +0000 (03:07 +0200)]
Translated using Weblate (German)

Currently translated at 100.0% (865 of 865 strings)

This is a merger of two commits.

8 years agoTranslated using Weblate (Chinese (China))
YFdyh000 [Tue, 29 Mar 2016 15:59:08 +0000 (17:59 +0200)]
Translated using Weblate (Chinese (China))

Currently translated at 75.3% (652 of 865 strings)

This is a merger of 3 commits.

8 years agoTranslated using Weblate (Russian)
Stas Kies [Sun, 27 Mar 2016 23:49:35 +0000 (01:49 +0200)]
Translated using Weblate (Russian)

Currently translated at 59.3% (513 of 865 strings)

This is a merger of 5 commits.

8 years agoTranslated using Weblate (Russian)
Pavel Sokolov [Sun, 27 Mar 2016 23:50:02 +0000 (01:50 +0200)]
Translated using Weblate (Russian)

Currently translated at 58.9% (510 of 865 strings)

This is a merger of two commits.

8 years agoTranslated using Weblate (Russian)
Anton Tsyganenko [Sun, 27 Mar 2016 23:48:58 +0000 (01:48 +0200)]
Translated using Weblate (Russian)

Currently translated at 58.9% (510 of 865 strings)

8 years agoTranslated using Weblate (Russian)
Alex “XShell” Schekoldin [Sun, 27 Mar 2016 23:48:26 +0000 (01:48 +0200)]
Translated using Weblate (Russian)

Currently translated at 58.9% (510 of 865 strings)

This is a merger of two commits.

8 years agoTranslated using Weblate (Russian)
Stas Kies [Sun, 27 Mar 2016 23:47:32 +0000 (01:47 +0200)]
Translated using Weblate (Russian)

Currently translated at 58.9% (510 of 865 strings)

8 years agoTranslated using Weblate (Spanish)
Ever Medina [Sat, 26 Mar 2016 11:16:43 +0000 (12:16 +0100)]
Translated using Weblate (Spanish)

Currently translated at 46.2% (400 of 865 strings)

8 years agoTranslated using Weblate (Portuguese (Brazil))
Ian Giestas Pauli [Fri, 25 Mar 2016 22:43:50 +0000 (23:43 +0100)]
Translated using Weblate (Portuguese (Brazil))

Currently translated at 71.3% (617 of 865 strings)

This is a merger of two commits.

8 years agoTranslated using Weblate (French)
Jean-Patrick G [Fri, 25 Mar 2016 16:20:51 +0000 (17:20 +0100)]
Translated using Weblate (French)

Currently translated at 94.1% (814 of 865 strings)

This is a merger of two commits.

8 years agoFix POSIX C++11 build
ShadowNinja [Sat, 30 Apr 2016 13:44:28 +0000 (09:44 -0400)]
Fix POSIX C++11 build

I broke this in 46fd114e9a4e05b74576dce682e24357363298e7.

8 years agoFix prepreprocessor error in thread.h (related to C++11 threads)
Craig Robbins [Sat, 30 Apr 2016 02:29:52 +0000 (12:29 +1000)]
Fix prepreprocessor error in thread.h (related to C++11 threads)

8 years agoMapgen: Make 3D noise tunnels' width settable
paramat [Mon, 25 Apr 2016 10:47:25 +0000 (11:47 +0100)]
Mapgen: Make 3D noise tunnels' width settable

Correct parameter names mg_valleys to mgvalleys
Remove biome NoiseParams from MapgenValleysParams
Improve format of parameter code

8 years agoFix race on thread creation
ShadowNinja [Mon, 7 Mar 2016 21:55:32 +0000 (16:55 -0500)]
Fix race on thread creation

This often broke the threading tests on OSX.

8 years agoUpgrade Android build to Gradle build system
ShadowNinja [Wed, 13 Apr 2016 18:14:04 +0000 (14:14 -0400)]
Upgrade Android build to Gradle build system

The old Ant build system has been deprecated for a while and new development is focused on Gradle.
I also removed a hardcoded string that lint caught and moved the patch files to a subdirectory.
I left the JNI files in the root directory.

8 years agoAvoid teleporting player if /teleport coords are out-of-range
tenplus1 [Thu, 28 Apr 2016 13:59:54 +0000 (23:59 +1000)]
Avoid teleporting player if /teleport coords are out-of-range

8 years agoAndroid menu: Unified serverlist
kilbith [Mon, 25 Apr 2016 09:18:17 +0000 (11:18 +0200)]
Android menu: Unified serverlist

8 years agoBuiltin: Add basic_privs setting
rubenwardy [Sat, 9 Apr 2016 15:07:45 +0000 (16:07 +0100)]
Builtin: Add basic_privs setting

8 years agoMainmenu: Standardize the menu button order and sizes
SmallJoker [Sun, 24 Apr 2016 13:44:10 +0000 (15:44 +0200)]
Mainmenu: Standardize the menu button order and sizes

8 years agoHandle particle spawners in env and delete expired ids
obneq [Wed, 27 Apr 2016 15:58:09 +0000 (01:58 +1000)]
Handle particle spawners in env and delete expired ids

Rebased by Zeno (2016-04-2016)

8 years agoAndroid: Update dependencies, GMP was required as a dependency
Maksim Gamarnik [Mon, 25 Apr 2016 12:05:35 +0000 (15:05 +0300)]
Android: Update dependencies, GMP was required as a dependency

8 years agoInventory: Make ItemStack with different metadata not stackable
Xunto [Fri, 22 Apr 2016 12:49:06 +0000 (15:49 +0300)]
Inventory: Make ItemStack with different metadata not stackable

8 years agotile.cpp: Automatically upscale lower resolution texture
SmallJoker [Thu, 21 Apr 2016 19:54:30 +0000 (21:54 +0200)]
tile.cpp: Automatically upscale lower resolution texture

8 years agoMake GUIEngine use pause_fps_max not fps_max
gregorycu [Sun, 24 Apr 2016 04:56:56 +0000 (14:56 +1000)]
Make GUIEngine use pause_fps_max not fps_max

8 years agoEscape more strings: formspecs, item descriptions, infotexts...
Ekdohibs [Mon, 4 Apr 2016 16:31:00 +0000 (18:31 +0200)]
Escape more strings: formspecs, item descriptions, infotexts...

Also, change the escape character to the more standard \x1b
Thus, it can be used in the future for translation or colored text,
for example.

8 years agoFix bug that was leading to oversized tooltips containing multiline text when it...
Xunto [Thu, 21 Apr 2016 20:26:31 +0000 (23:26 +0300)]
Fix bug that was leading to oversized tooltips containing multiline text when it have multiple lines

8 years agoFix mainmenu code downloading the public serverlist twice.
Ekdohibs [Fri, 22 Apr 2016 12:20:16 +0000 (14:20 +0200)]
Fix mainmenu code downloading the public serverlist twice.

Also, fix a nil error that can happen sometimes in
menu_handle_key_up_down

8 years agoCONTRIBUTING: disallow signed git commits 4004/head
est31 [Sun, 17 Apr 2016 16:35:02 +0000 (18:35 +0200)]
CONTRIBUTING: disallow signed git commits

They break bzr-git, and bzr-git breaks the Minetest PPAs.

8 years agoMake logging use a fixed-length buffer to avoid race conditions.
Ekdohibs [Thu, 21 Apr 2016 08:45:42 +0000 (10:45 +0200)]
Make logging use a fixed-length buffer to avoid race conditions.

Previously, race conditions occurred inside logging, that caused
segfaults because a thread was trying to use an old pointer that
was freed when the string was reallocated. Using a fixed-length buffer
avoids this, at the cost of cutting too long messages over seveal lines.

8 years agoBiomes: Make dust fallback 'ignore' to fix y = 63 lighting
paramat [Thu, 21 Apr 2016 07:58:29 +0000 (08:58 +0100)]
Biomes: Make dust fallback 'ignore' to fix y = 63 lighting

The shadow bug at y = 63 was caused by dark air being placed as dust,
when the biome dust was unspecified it was falling back to 'air'
In dustTopNodes only dust == 'ignore' will disable dust placement

8 years agoTextures: Replace menu background fallback dirt_bg.png with empty sky texture
paramat [Wed, 20 Apr 2016 06:24:14 +0000 (07:24 +0100)]
Textures: Replace menu background fallback dirt_bg.png with empty sky texture

8 years agoFix timer initialization.
Auke Kok [Tue, 19 Apr 2016 22:47:14 +0000 (15:47 -0700)]
Fix timer initialization.

This fixes the problem that the first timer tick is an
overrun and causes all timers to expire immediately.

replaces #4003

8 years agoMainmenu: Code cleaning
kilbith [Mon, 18 Apr 2016 20:43:12 +0000 (22:43 +0200)]
Mainmenu: Code cleaning

8 years agoMainmenu: Unify favorite servers with main serverlist
kilbith [Mon, 18 Apr 2016 16:20:04 +0000 (18:20 +0200)]
Mainmenu: Unify favorite servers with main serverlist

8 years agoMgv7: Combine mountain terrain generation with base terrain generation
paramat [Sat, 16 Apr 2016 22:20:20 +0000 (23:20 +0100)]
Mgv7: Combine mountain terrain generation with base terrain generation

Previous mountain terrain generation was by necessity placing
stone in air, this was removing air from any overgenerated
structures such as tunnels, dungeons and large caves
Moving it into the base terrain generation loop ensures that
only 'ignore' is replaced

generateRidgeTerrain: only return if node_max.Y < water_level - 16
Previously, if water level was set a few nodes above a mapchunk
border the river channel was only partially excavated

8 years agofalling: walk 4 additional diagonally down directions.
Auke Kok [Thu, 14 Apr 2016 06:10:37 +0000 (23:10 -0700)]
falling: walk 4 additional diagonally down directions.

This seems very little cost and matches the old behavior more
closely. This will cause some more falling nodes to get added
to falling clusters. With the efficiency of the algorithm, this
really doesn't do much damage.

8 years agoMainmenu: Still support favorites if send_pre_v25_init is disabled 3998/head
est31 [Fri, 15 Apr 2016 02:13:53 +0000 (04:13 +0200)]
Mainmenu: Still support favorites if send_pre_v25_init is disabled

@SmallJoker has noted a bug that servers from the (local) main menu
favorites list can't be opened.

This commit fixes the bug by disabling any main menu based protocol
checks for servers from the favorite list.

Also, it fixes a second bug that happens when a server from the
public serverlist doesn't send its supported protocol versions,
most likely because its running a minetest older than commit [1].
Then we have shown an error msg that the server has enforced
one specific protocol version. This was most likely not the case.

Of course, we can't do anything better than do an assumption on
the protocol versions if they are not known. That assumption
should however be closest to the most often occuring case as
possible.

Also, some little cleanups.

[1]: 5a0ed780f56a5225b3d7c5f64099586e390e5f39 "Server: announce MIN/MAX protocol version supported to serverlist. Client: check serverlist"

8 years agomainmenu: Tidy up logic in is_server_protocol_compat() (#3997)
SmallJoker [Fri, 15 Apr 2016 12:37:09 +0000 (14:37 +0200)]
mainmenu: Tidy up logic in is_server_protocol_compat() (#3997)

Apply de morgan to simplify the logic.