oweals/minetest.git
9 years agoFix unitialised variable occassionally being used
Craig Robbins [Sat, 24 Jan 2015 04:22:50 +0000 (14:22 +1000)]
Fix unitialised variable occassionally being used

9 years agoMake the GameGlobalShaderConstantSetter use the settings callback (8% perf improvemen...
gregorycu [Sat, 24 Jan 2015 02:03:57 +0000 (13:03 +1100)]
Make the GameGlobalShaderConstantSetter use the settings callback (8% perf improvement in game loop)
Amend the settings callback to support userdata

9 years agoMgv5: Skip calculation of filler, heat and humidity perlinmaps in underground mapchunks
paramat [Wed, 21 Jan 2015 11:42:13 +0000 (11:42 +0000)]
Mgv5: Skip calculation of filler, heat and humidity perlinmaps in underground mapchunks

9 years agoSend real port to server list
ShadowNinja [Wed, 21 Jan 2015 19:32:12 +0000 (14:32 -0500)]
Send real port to server list

9 years agoMgv7 generateRidgeTerrain: Make river generation relative to water level
paramat [Mon, 19 Jan 2015 11:03:54 +0000 (11:03 +0000)]
Mgv7 generateRidgeTerrain: Make river generation relative to water level
Remove widthn and make nridge zero underwater

9 years agoMgv7: Speed optimise calculateNoise and generateRidgeTerrain
paramat [Sun, 18 Jan 2015 12:35:38 +0000 (12:35 +0000)]
Mgv7: Speed optimise calculateNoise and generateRidgeTerrain
Remove unnecessary range limiting of persistmap
Skip calculation of filler, mountain, ridge, heat and humidity perlinmaps in underground mapchunks
Skip generateRidgeTerrain in underground mapchunks

9 years agoMgv7 generateRidgeTerrain: Enable rangelim of widthn to remove abysses, calculate...
paramat [Sun, 18 Jan 2015 11:52:59 +0000 (11:52 +0000)]
Mgv7 generateRidgeTerrain: Enable rangelim of widthn to remove abysses, calculate widthn later in function
Reduce width to 0.2
Carve river channels in deeper waters

9 years agoAllow filter and mipmap drop down menues to be translated
Craig Robbins [Wed, 21 Jan 2015 10:58:26 +0000 (20:58 +1000)]
Allow filter and mipmap drop down menues to be translated

9 years agoImprove desktop file
Markus Koschany [Tue, 20 Jan 2015 09:47:27 +0000 (10:47 +0100)]
Improve desktop file

9 years agoUpdate german translation
est31 [Sat, 10 Jan 2015 19:30:44 +0000 (20:30 +0100)]
Update german translation

9 years agoAdded ratio argument to colorize, removed the weird alpha-based ratio.
TriBlade9 [Mon, 19 Jan 2015 06:15:20 +0000 (14:15 +0800)]
Added ratio argument to colorize, removed the weird alpha-based ratio.

9 years agoFix hyphen used as minus sign
Markus Koschany [Tue, 20 Jan 2015 09:50:00 +0000 (10:50 +0100)]
Fix hyphen used as minus sign

9 years agoUpdate Spanish language
ngosang [Sun, 18 Jan 2015 19:32:54 +0000 (20:32 +0100)]
Update Spanish language

I am a native speaker. I have corrected all the mistakes I've found.

Update Spanish language

9 years agoMapgen V5: Various improvements
paramat [Tue, 13 Jan 2015 07:18:00 +0000 (07:18 +0000)]
Mapgen V5: Various improvements

Caves check for biome nodes, only excavate stone under water level
Unease caves noises, use MT0.3 parameters
Blobgen after cavegen
Biomegen: remove 'is replaceable content' bool

9 years agoFix all warnings and remove -Wno-unused-but-set cflag
kwolekr [Mon, 19 Jan 2015 04:29:19 +0000 (23:29 -0500)]
Fix all warnings and remove -Wno-unused-but-set cflag

9 years agoAdd SemiDebug (-O1 with debug symbols) build mode and do not optimize Debug at all
kwolekr [Mon, 19 Jan 2015 03:30:11 +0000 (22:30 -0500)]
Add SemiDebug (-O1 with debug symbols) build mode and do not optimize Debug at all

Add -Wall to Debug modes for all compilers and -Wabi for non-MSVC
Use /Ox for MSVC Release mode (potentially higher optimization than /O2)

9 years agoReorganize supported video driver query mechanisms
kwolekr [Sun, 18 Jan 2015 18:14:25 +0000 (13:14 -0500)]
Reorganize supported video driver query mechanisms

9 years agoRevert "Fix style on settings tab"
kwolekr [Sun, 18 Jan 2015 18:19:40 +0000 (13:19 -0500)]
Revert "Fix style on settings tab"

This reverts commit 7b17b9059e30cef384ecca37feec87cdcdfd39b8.

9 years agoRevert "Fix bug in debug build"
kwolekr [Sun, 18 Jan 2015 18:19:28 +0000 (13:19 -0500)]
Revert "Fix bug in debug build"

This reverts commit 839c4a99cddcacdc19dee42286b7029c4c1e7800.

9 years agoFix bug in debug build
Craig Robbins [Sun, 18 Jan 2015 14:26:59 +0000 (00:26 +1000)]
Fix bug in debug build

-O1 results in executables that are completely useless for actuall debugging

9 years agoFix style on settings tab
jeanpatrick.guerrero@gmail.com [Sun, 18 Jan 2015 13:38:21 +0000 (14:38 +0100)]
Fix style on settings tab

9 years agoFix use of uninit data in Sky and (potentially) GUIChatConsole constructors
Kahrl [Sat, 17 Jan 2015 19:05:45 +0000 (20:05 +0100)]
Fix use of uninit data in Sky and (potentially) GUIChatConsole constructors

Clean up nearby code a bit

As a small side effect, it is now possible to add a background texture
to the chat console by simply providing background_chat.jpg, it is no
longer necessary to also add "console_color =" to minetest.conf.

9 years agoFix particles causing unitialised data being used due to use of incorrect union member
Craig Robbins [Sun, 18 Jan 2015 06:08:49 +0000 (16:08 +1000)]
Fix particles causing unitialised data being used due to use of incorrect union member

9 years agoWater fixes
gregorycu [Tue, 13 Jan 2015 14:19:54 +0000 (01:19 +1100)]
Water fixes

Change must_reflow to a deque
Add overload for MapBlock::raiseModified that takes a const char*. This is a speed improvement.
Comment out unused variable
Optimisations to block offset calculations

9 years agoCreate empty default constructor for MapNode
Craig Robbins [Sat, 17 Jan 2015 09:19:26 +0000 (19:19 +1000)]
Create empty default constructor for MapNode

9 years agoMgv7: Replace small pseudorandom caves with 3D noise tunnels. Fewer large caves
paramat [Sun, 11 Jan 2015 13:36:08 +0000 (13:36 +0000)]
Mgv7: Replace small pseudorandom caves with 3D noise tunnels. Fewer large caves

9 years agoFix NodeMetadataList loosing memory on deserialize due to invalid clear map call...
sapier [Sat, 17 Jan 2015 18:14:36 +0000 (19:14 +0100)]
Fix NodeMetadataList loosing memory on deserialize due to invalid clear map call instead of clear

9 years agoFix entitiy WieldMeshSceneNode not freed due to additional grab
gregorycu [Sat, 17 Jan 2015 18:13:08 +0000 (19:13 +0100)]
Fix entitiy WieldMeshSceneNode not freed due to additional grab

9 years agoMake minor style change(unescape_string())
Craig Robbins [Fri, 16 Jan 2015 11:05:44 +0000 (21:05 +1000)]
Make minor style change(unescape_string())

9 years agoFix missing return in Database_Dummy::deleteBlock
Loic Blot [Fri, 16 Jan 2015 10:59:59 +0000 (20:59 +1000)]
Fix missing return in Database_Dummy::deleteBlock

9 years agoOptimize bumpmapping mathematics
Loic Blot [Fri, 16 Jan 2015 10:53:14 +0000 (20:53 +1000)]
Optimize bumpmapping mathematics

OpenGL_vertex:
* bufferize a duplicate calcul
* Factorize vertexes

9 years agoFix potential out-of-bounds array index
Craig Robbins [Fri, 16 Jan 2015 04:32:27 +0000 (14:32 +1000)]
Fix potential out-of-bounds array index

9 years agoSimplify deleteblocks chat command argument parsing
kwolekr [Thu, 15 Jan 2015 23:03:43 +0000 (18:03 -0500)]
Simplify deleteblocks chat command argument parsing

Add optional core.pos_to_string decimal place rounding
Move core.string_to_pos to builtin/common/misc_helpers.lua for consistency

9 years agoAdd ability to delete MapBlocks from map
kwolekr [Thu, 15 Jan 2015 21:20:05 +0000 (16:20 -0500)]
Add ability to delete MapBlocks from map

Also add a Lua API and chatcommand for this

9 years agoInitialize noise ptr on creation (fixes crash if OreVein deleted before use)
kwolekr [Thu, 15 Jan 2015 17:46:42 +0000 (12:46 -0500)]
Initialize noise ptr on creation (fixes crash if OreVein deleted before use)

9 years agoFix unescape_string removing all backslashes
ShadowNinja [Thu, 15 Jan 2015 21:14:40 +0000 (16:14 -0500)]
Fix unescape_string removing all backslashes

9 years agoFix typo in `serialize.lua`.
Diego Martínez [Thu, 15 Jan 2015 18:08:06 +0000 (15:08 -0300)]
Fix typo in `serialize.lua`.

9 years agoAndroid, build: Update curl to 7.40.00
sapier [Thu, 15 Jan 2015 20:51:54 +0000 (21:51 +0100)]
Android, build: Update curl to 7.40.00

9 years agoAdd missing return value for filter/mipmap dropdown in mainmenu
kilbith [Thu, 15 Jan 2015 19:17:54 +0000 (20:17 +0100)]
Add missing return value for filter/mipmap dropdown in mainmenu

9 years agoRevert "Optimize bumpmapping mathematics"
Craig Robbins [Thu, 15 Jan 2015 15:30:03 +0000 (01:30 +1000)]
Revert "Optimize bumpmapping mathematics"

This reverts commit 148fffb0f23fa437c67639ff3cc69177fb71d76a.

9 years agoSmall tweaking (alignement - client tab)
kilbith [Thu, 15 Jan 2015 13:18:20 +0000 (14:18 +0100)]
Small tweaking (alignement - client tab)

9 years agoOptimize bumpmapping mathematics
Loic Blot [Thu, 15 Jan 2015 13:11:56 +0000 (23:11 +1000)]
Optimize bumpmapping mathematics

OpenGL_vertex:
* bufferize a duplicate calcul
* Factorize vertexes

9 years agoChange UniqueQueue to use a queue and a set.
unknown [Tue, 13 Jan 2015 12:28:21 +0000 (23:28 +1100)]
Change UniqueQueue to use a queue and a set.

9 years agoReorganizing client and server tabs
jeanpatrick.guerrero@gmail.com [Wed, 14 Jan 2015 14:46:18 +0000 (00:46 +1000)]
Reorganizing client and server tabs

9 years agoAdded configurable ambient_occlusion_gamma. Default is 2.2 (same as previous hardcode...
TriBlade9 [Wed, 14 Jan 2015 13:34:44 +0000 (23:34 +1000)]
Added configurable ambient_occlusion_gamma. Default is 2.2 (same as previous hardcoded values).

9 years agoFix use of uninitialized data
Craig Robbins [Wed, 14 Jan 2015 05:43:33 +0000 (15:43 +1000)]
Fix use of uninitialized data

9 years agobuiltin: Unify register wrapper functions and wrap clear_registered_* functions too
kwolekr [Tue, 13 Jan 2015 17:26:13 +0000 (12:26 -0500)]
builtin: Unify register wrapper functions and wrap clear_registered_* functions too

9 years agoPerformance fixes.
onkrot [Sat, 10 Jan 2015 11:05:42 +0000 (11:05 +0000)]
Performance fixes.

9 years agoAdd VoxelArea::hasEmptyExtent
unknown [Tue, 13 Jan 2015 13:23:31 +0000 (23:23 +1000)]
Add VoxelArea::hasEmptyExtent

9 years agoFix Android crash on keyboard connection change.
Kodexky [Mon, 12 Jan 2015 19:17:07 +0000 (14:47 -0430)]
Fix Android crash on keyboard connection change.

9 years agoAttempt to fix occasional issue of uninitialized MapBlock data
kwolekr [Tue, 13 Jan 2015 03:31:08 +0000 (22:31 -0500)]
Attempt to fix occasional issue of uninitialized MapBlock data

9 years agoPrevent transform of noise3d result in getBlockSeed2
kwolekr [Mon, 12 Jan 2015 20:46:04 +0000 (15:46 -0500)]
Prevent transform of noise3d result in getBlockSeed2

9 years agoMapgen V5: Move cave generation from base terrain loop to optional function
paramat [Sun, 11 Jan 2015 09:21:55 +0000 (09:21 +0000)]
Mapgen V5: Move cave generation from base terrain loop to optional function

This fixes biome surface in tunnels

9 years agoRemove builtin_biome.lua from builtin and add simple biome minimal
paramat [Thu, 1 Jan 2015 06:47:07 +0000 (06:47 +0000)]
Remove builtin_biome.lua from builtin and add simple biome minimal

9 years agoLua-api.txt: Document that paramtype='light' results in light propagation with attenu...
paramat [Sat, 10 Jan 2015 07:01:54 +0000 (07:01 +0000)]
Lua-api.txt: Document that paramtype='light' results in light propagation with attenuation and is essential for a light source to spread it's light

9 years agoDisable sound and key binding settings in "pause" menu on android
sapier [Sun, 11 Jan 2015 12:58:49 +0000 (13:58 +0100)]
Disable sound and key binding settings in "pause" menu on android

9 years agoFix invalid stepheight increase calculation on android
sapier [Sun, 11 Jan 2015 12:57:26 +0000 (13:57 +0100)]
Fix invalid stepheight increase calculation on android

9 years agoIncrease stepheight on android by 0.5 to smoothen movement
sapier [Sun, 11 Jan 2015 03:32:56 +0000 (04:32 +0100)]
Increase stepheight on android by 0.5 to smoothen movement

9 years agoFix clipping rectangle of GUITable row highlight
Kahrl [Sat, 10 Jan 2015 18:56:14 +0000 (19:56 +0100)]
Fix clipping rectangle of GUITable row highlight

9 years agoChange default font sizes to 14(freetype) and 10(non-freetype)
sfan5 [Sat, 10 Jan 2015 17:59:43 +0000 (18:59 +0100)]
Change default font sizes to 14(freetype) and 10(non-freetype)

9 years agoSet default value for ENABLE_REDIS to 0
sfan5 [Sat, 10 Jan 2015 14:28:25 +0000 (15:28 +0100)]
Set default value for ENABLE_REDIS to 0

9 years agoRevert "Switch default scaling factor to 0.75 as most ppl seem to have 96dpi screens...
sapier [Fri, 9 Jan 2015 18:07:55 +0000 (19:07 +0100)]
Revert "Switch default scaling factor to 0.75 as most ppl seem to have 96dpi screens instead of previous assumed 72"
which ain't required any longer as fonts are no longer autoadjusted
This reverts commit 7ad17a25f4dfc81427df54d5c855b40b4472d517.

9 years agoRemove automatic consistent formspec size <-> font size (now has to be done manually)
sapier [Fri, 9 Jan 2015 17:01:59 +0000 (18:01 +0100)]
Remove automatic consistent formspec size <-> font size (now has to be done manually)
Set builtin formspecs to autoscale in order to get consistent formspec look and feel
Uncouple label positioning from font size (May break some formspecs but is required to allow manual font adjustment)

9 years agoRemoved superfluous facedir check in mapblock_mesh.cpp
Craig Robbins [Fri, 9 Jan 2015 16:06:33 +0000 (02:06 +1000)]
Removed superfluous facedir check in mapblock_mesh.cpp

9 years agoFix logic of checkbox formspec element validity checking
Kahrl [Fri, 9 Jan 2015 15:57:54 +0000 (16:57 +0100)]
Fix logic of checkbox formspec element validity checking

9 years agoFix memory leaks due to messed up memory handling for particles as well as their...
sapier [Mon, 5 Jan 2015 17:34:59 +0000 (18:34 +0100)]
Fix memory leaks due to messed up memory handling for particles as well as their spawners

9 years agoSplit gui_scaling to gui_scaling + hud_scaling as those elements need different handl...
sapier [Tue, 6 Jan 2015 23:10:46 +0000 (00:10 +0100)]
Split gui_scaling to gui_scaling + hud_scaling as those elements need different handling on some devices

9 years agoFix facedir > 23 causes segfault in client
Craig Robbins [Fri, 9 Jan 2015 05:42:03 +0000 (15:42 +1000)]
Fix facedir > 23 causes segfault in client
See issue #2017
Applied kahrl's gist

9 years agoSwitch default scaling factor to 0.75 as most ppl seem to have 96dpi screens instead...
sapier [Thu, 8 Jan 2015 23:37:02 +0000 (00:37 +0100)]
Switch default scaling factor to 0.75 as most ppl seem to have 96dpi screens instead of previous assumed 72

9 years agoRemove included SQLite3 2046/head
ShadowNinja [Sun, 4 Jan 2015 18:48:23 +0000 (13:48 -0500)]
Remove included SQLite3

9 years agoAdd SQLite3 libraries to buildbot
sfan5 [Thu, 8 Jan 2015 20:30:07 +0000 (21:30 +0100)]
Add SQLite3 libraries to buildbot

9 years agoReturn step smoothing value to 23
paramat [Wed, 7 Jan 2015 12:22:33 +0000 (12:22 +0000)]
Return step smoothing value to 23

9 years agoMapgen V6: Re-enable liquid flowing
kwolekr [Thu, 8 Jan 2015 00:25:27 +0000 (19:25 -0500)]
Mapgen V6: Re-enable liquid flowing

9 years agoRemove accidentally added non-ft font files
sapier [Thu, 8 Jan 2015 00:02:24 +0000 (01:02 +0100)]
Remove accidentally added non-ft font files

9 years agoFix armv7 using arm arch while arm uses armv7
sapier [Wed, 7 Jan 2015 23:11:00 +0000 (00:11 +0100)]
Fix armv7 using arm arch while arm uses armv7

9 years agoFix direction property of HUD
rubenwardy [Wed, 7 Jan 2015 19:08:51 +0000 (19:08 +0000)]
Fix direction property of HUD

9 years agoFix emerge thread not cleaning up emerge queue on shutdown
sapier [Sun, 4 Jan 2015 00:01:30 +0000 (01:01 +0100)]
Fix emerge thread not cleaning up emerge queue on shutdown

9 years agoSwitch android build to external sqlite3
sapier [Wed, 7 Jan 2015 00:01:03 +0000 (01:01 +0100)]
Switch android build to external sqlite3

9 years agoFix andorid build error
sapier [Tue, 6 Jan 2015 23:10:21 +0000 (00:10 +0100)]
Fix andorid build error

9 years agoImplement X11 dpi autodetection
sapier [Tue, 6 Jan 2015 21:40:34 +0000 (22:40 +0100)]
Implement X11 dpi autodetection

9 years agoFix buildbot (was broken by 04a1a446cf845a0db80d39fd0e42771aa07e4492)
sfan5 [Tue, 6 Jan 2015 18:43:21 +0000 (19:43 +0100)]
Fix buildbot (was broken by 04a1a446cf845a0db80d39fd0e42771aa07e4492)

9 years agoFixes for android 2057/head
sapier [Tue, 6 Jan 2015 15:01:49 +0000 (16:01 +0100)]
Fixes for android
Copy only minetest_game to apk by default
Don't copy .git and .svn folders to apk
Fix bouncing asset copy scrollbar due to long filepaths
Reenable font scaling to fix broken menu on high dpi screens
Implement minetest loglevel to android loglevel mapping
Disable touch digging while moving around

9 years agoAdd registered_ores and registered_decorations
ShadowNinja [Mon, 5 Jan 2015 02:30:55 +0000 (21:30 -0500)]
Add registered_ores and registered_decorations

9 years agoPrevent client crashing if an NDT_AIRLIKE node is dropped
Craig Robbins [Mon, 5 Jan 2015 12:39:08 +0000 (22:39 +1000)]
Prevent client crashing if an NDT_AIRLIKE node is dropped

The player dropping the node can either be themselves or another player (i.e. without this fix you can crash other people's clients)
Thanks CWz for reporting the issue

9 years agoShorten ManualMapVoxelManipulator to MMVManip
kwolekr [Mon, 5 Jan 2015 07:42:27 +0000 (02:42 -0500)]
Shorten ManualMapVoxelManipulator to MMVManip

9 years agoOptionally specify propagateSunlight area in calcLighting
kwolekr [Mon, 5 Jan 2015 06:18:53 +0000 (01:18 -0500)]
Optionally specify propagateSunlight area in calcLighting

This fixes the Mapgen V5 calcLighting segfault

9 years agoFix off-by-one error in `string:split` implementation.
Diego Martínez [Sun, 4 Jan 2015 23:10:25 +0000 (20:10 -0300)]
Fix off-by-one error in `string:split` implementation.

9 years agoExclude vertical mapblock borders when setting light
kwolekr [Mon, 5 Jan 2015 04:14:16 +0000 (23:14 -0500)]
Exclude vertical mapblock borders when setting light

9 years agoNodeDef: Clear NodeResolver related entries too in clear()
kwolekr [Mon, 5 Jan 2015 03:39:57 +0000 (22:39 -0500)]
NodeDef: Clear NodeResolver related entries too in clear()

9 years agoAdd minetest.generate_ores() and minetest.generate_decorations()
kwolekr [Mon, 5 Jan 2015 03:37:20 +0000 (22:37 -0500)]
Add minetest.generate_ores() and minetest.generate_decorations()

9 years agoFix broken android version due to new openssl not linking correct to curl
sapier [Sun, 4 Jan 2015 23:48:33 +0000 (00:48 +0100)]
Fix broken android version due to new openssl not linking correct to curl

9 years agoNodeResolver: Perform callback immediately if node registration phase finished
kwolekr [Sun, 4 Jan 2015 21:32:31 +0000 (16:32 -0500)]
NodeResolver: Perform callback immediately if node registration phase finished

Also add NodeResolver callbacks on the client

9 years agoFix forgotten favourite list image update of simple menu
sapier [Sun, 4 Jan 2015 16:37:45 +0000 (17:37 +0100)]
Fix forgotten favourite list image update of simple menu

9 years agoRe-add lost way to debug simple menu on PC
sapier [Sun, 4 Jan 2015 16:19:25 +0000 (17:19 +0100)]
Re-add lost way to debug simple menu on PC

9 years agoSwitch to official openssl version and update to 1.0.1j
sapier [Sat, 3 Jan 2015 22:49:46 +0000 (23:49 +0100)]
Switch to official openssl version and update to 1.0.1j

9 years agoRemove freezemelt documentation from lua_api.txt
Craig Robbins [Sun, 4 Jan 2015 11:53:25 +0000 (21:53 +1000)]
Remove freezemelt documentation from lua_api.txt

9 years agoRemove freezemelt (the remainder of proller nonsense)
kwolekr [Sun, 4 Jan 2015 08:30:10 +0000 (03:30 -0500)]
Remove freezemelt (the remainder of proller nonsense)

9 years agoAdd warning about using deprecated fields in Mapgen API and update docs
kwolekr [Sun, 4 Jan 2015 08:21:42 +0000 (03:21 -0500)]
Add warning about using deprecated fields in Mapgen API and update docs

9 years agoLuaVoxelManip: Error when given out-of-bounds area
kwolekr [Sun, 4 Jan 2015 08:07:28 +0000 (03:07 -0500)]
LuaVoxelManip: Error when given out-of-bounds area

9 years agoLighting: Fix nearly all issues
kwolekr [Sun, 4 Jan 2015 07:34:33 +0000 (02:34 -0500)]
Lighting: Fix nearly all issues

The cause of a single light source seemingly being lit without spread
was due to its creation in the +Y mapblock boundary layer during map
generation, which was ignored as the overtop.  This overtop explicitly
needs to be omitted during sunlight propagation, however.  To accomplish
this, Mapgen::calcLighting() was split into separate functions taking
separate parameters.
Additionally, do not diminish light too early during spread.  This fixes the
output inconsistency between Map::updateLighting and Mapgen::calcLighting.