Commit Graph

5350 Commits (master)

Author SHA1 Message Date
kwolekr f17879fedf EmergeManager: Do not queue duplicate block requests 2016-01-19 13:22:22 +01:00
Kahrl 44b855e189 Fix Settings::remove() always returning true 2016-01-19 13:22:11 +01:00
RealBadAngel 1e9482e100 Fix wield item glitch 2016-01-19 13:21:38 +01:00
Pinky Snow e88bead4b3 Corrected minetest.pos_to_string() documentation 2016-01-19 13:20:45 +01:00
Rogier 04db25df7f Fix error message in advanced settings overlapping 'save' button
The save button is now fully functional again when an error message
is shown.

After an invalid value is entered in the advanced settings dialog, the GUI
label for the error message that is shown was partly overlapping the
'save' button, so that the top half of the button could not be clicked
on.
2016-01-19 13:19:09 +01:00
sfan5 8e483e33b9 Make ItemStack:set_count(0) clear the item stack
fixes minetest/minetest_game#786
2016-01-19 13:19:05 +01:00
Kahrl e073982c94 Make all mesh manipulators in mesh.cpp work with any vertex type
cloneMesh() has to use a switch in order to create a different
mesh buffer type depending on vertex type. (Credit: the new cloneMesh
was written by RealBadAngel.)

To avoid repetitive code, all other methods use getVertexPitchFromType()
to automatically adapt the indexing to the vertex type at runtime.
2016-01-19 13:19:02 +01:00
paramat d661e07790 Mapgen: Various fixes and improvements
Lua_api.txt: Document 'minetest.registered_biomes'
Cavegen: Add fallback node for 'mapgen_ice'
Dungeongen: Add fallback node for 'mapgen_river_water_source'
Mgv5: Remove unnecessary '#include util/directiontables.h'
Add missing 'this->'s in makeChunk()
Mgv6: Edit empty line formatting
Remove leading spaces in makeChunk()
Add missing spaces after 'for' and 'if'
Mgv7: Edit empty line formatting
2016-01-19 13:18:58 +01:00
Rogier 5de7c4507d Fix the checking of flags values in advanced settings
Changes:
- Accept setting an empty flags-type value in the settings tab
  if the variable specification permits it
- Don't accept substrings of flag values
  E.g. with values: 'one,two,three', 'hree', 'w', etc. used to
  be accepted. Not any more
- Don't accept flags with random pattern-matching special characters
  E.g. with values: 'one,two,three', 'on.', '(o)[n]e*' etc. used
  to be accepted. Not any more.
2016-01-19 13:18:34 +01:00
Rogier 9f1b9e2b21 Improve parsing of setting types from settingtypes.txt for advanced settings
- Accept numbers prefixed with '+'
- Accept multiple spaces instead of just a single one where spaces are expected
- Allow flags to have an empty default value
2016-01-19 13:18:06 +01:00
ASL97 429e638d08 Cache disable_anticheat and check it for "interacted_too_far" 2016-01-19 12:58:48 +01:00
Dalai Felinto d7d585df45 New 3D Mode: Pageflip
The pageflip mode requires a stereo quadbuffer, and a modern graphic
card. Patch tested with NVidia 3D Vision.

The mini-map is not drawn, but that's what is done for topbottom and
sidebyside modes as well.

Also most of the time the user would prefer the HUD to be off. That's
for the user to decide though, and toggle it manually.

Finally, the interocular distance (aka eye separation) is twice as much
as the "3d_paralax_strength" settings. I find this a strange design
decision. I didn't want to chance this though, since it's how the other
3d modes interpret this settings.
2016-01-19 12:57:39 +01:00
Pinky Snow 3fbee08899 fixed spelling
Fixed spelling mistake!
2016-01-19 12:56:50 +01:00
gregorycu 200547a55d Replace instance of readsome with read in decompressZlib Make decompressZlib more robust 2016-01-19 12:56:19 +01:00
Robert Zenz e588a736d5 Clarified what get_node does. 2016-01-19 12:55:46 +01:00
slemonide b897b6843d Update lua_api.txt
set_sky does work with on_joinplayer
2016-01-19 12:54:24 +01:00
est31 8379b34a9d Fix redis error reporting
Previously, we assumed that reply->str was NULL
terminated. However, this turned out to be not true,
as users reported crashes in strlen connected to
where reply->str was appended to an std::string.

Use the method recomended by the docs, to read the
length separately.
2016-01-19 12:54:09 +01:00
gregorycu 0ec2841bca Prevent technically unsafe access with empty vector 2016-01-19 12:51:10 +01:00
Robert Zenz 82f09d81ce Made it more clear that "[combine" does accept a list of files. 2016-01-19 12:49:12 +01:00
Perttu Ahola 7d854e2895 filesys: safeWriteToFile(): Remove the target file before rename only on Windows
Removing the target file on other platforms was enabled likely unintentionally
by commit 5f1f1151d3.

This may be the reason why there has been corruption of files on Linux on hard
shutdowns.

Previously I described the problem and this fix in issue #3084.
2016-01-19 12:48:53 +01:00
Rogier 776dbdcf79 Include custom error message in all SQLite3 exceptions.
And replace manual tests for error with SQLOK() where possible.
2016-01-19 12:47:14 +01:00
Rogier 45bb0d9867 Handle SQLITE_BUSY errors gracefully
This allows other applications (e.g. minetestmapper) to interrogate
the database while minetest is running, without causing an almost
certain minetest crash.
2016-01-19 12:47:03 +01:00
qiukeren 3cd994c9fb Add macos/freebsd missing endian.h include and add win endianness info 2016-01-19 12:46:27 +01:00
est31 e25f655005 Database backends: fix bug, and small speedup
-> Redis backend: break from switch to fix bug
-> Dummy and redis backends: reserve the count so that creating the list is faster
2016-01-19 12:44:02 +01:00
jp 9bfe087de1 Alphabetical sorting of texture packs in menu 2015-12-28 18:30:53 +01:00
sfan5 498811bcd2 Update URLs for buildbot & travis
The freehoster these files were hosted on is shutting down soon-ish, they're now hosted on my VPS.
2015-12-28 18:25:16 +01:00
Sapier a8bebc41dc Add missing documentation of automatic_face_movement_max_rotation_per_sec entity parameter 2015-12-28 18:25:12 +01:00
BlockMen 86bfce96ba Remove deprecated option 2015-12-28 18:23:24 +01:00
selat a41af44351 Fix node place inside 2015-12-28 17:50:30 +01:00
Gianluca Luparini d188b273ec Translated using Weblate (Italian)
Currently translated at 43.8% (345 of 787 strings)
2015-12-23 13:57:24 +01:00
Rui 016e531ea9 Translated using Weblate (Japanese)
Currently translated at 40.0% (315 of 787 strings)
2015-12-23 13:57:20 +01:00
Rogier 06c3f0b164 Translated using Weblate (Dutch)
Currently translated at 95.1% (749 of 787 strings)

Squashed two translation commits to one
2015-12-23 13:57:16 +01:00
Anton Tsyganenko cbf193e7ee Translated using Weblate (Russian)
Currently translated at 48.7% (384 of 787 strings)

Squashed two translation commits to one
2015-12-23 13:57:12 +01:00
Luca Argentieri 4314cbd5c0 Translated using Weblate (Italian)
Currently translated at 43.8% (345 of 787 strings)
2015-12-23 13:57:08 +01:00
Jakub Vaněk 70432befe5 Translated using Weblate (Czech)
Currently translated at 56.6% (446 of 787 strings)

Squashed two translation commits to one
2015-12-23 13:57:05 +01:00
Jeff Huang d477320893 Translated using Weblate (Chinese (Taiwan))
Currently translated at 59.7% (470 of 787 strings)
2015-12-23 13:57:01 +01:00
ChaosWormz cb996e7cf6 Translated using Weblate (Hebrew)
Currently translated at 3.1% (25 of 787 strings)
2015-12-23 13:56:57 +01:00
Rui 4025018248 Translated using Weblate (Japanese)
Currently translated at 39.8% (314 of 787 strings)
2015-12-23 13:56:53 +01:00
Jakub Vaněk 278bbe3006 Translated using Weblate (Czech)
Currently translated at 49.0% (386 of 787 strings)

Squashed two translation commits to one
2015-12-23 13:56:50 +01:00
senpi 758c7ad1a1 Translated using Weblate (Lojban)
Currently translated at 11.4% (90 of 787 strings)
2015-12-23 13:56:46 +01:00
Liudas Ališauskas d1a4a64dca Translated using Weblate (Lithuanian)
Currently translated at 30.7% (242 of 787 strings)

Squashed two translation commits to one
2015-12-23 13:56:42 +01:00
Kristjan Räts 96e16a7cd6 Translated using Weblate (Estonian)
Currently translated at 23.7% (187 of 787 strings)
2015-12-23 13:56:39 +01:00
Andrea Di Pietro Ulla 8bd7c37809 Translated using Weblate (Italian)
Currently translated at 42.0% (331 of 787 strings)
2015-12-23 13:56:35 +01:00
Sapier 814d3cc904 Fix lua object:get_properties() being broken 2015-12-23 13:56:31 +01:00
HybridDog 764f603eff Fix missing localization for obj 2015-12-23 13:56:27 +01:00
est31 1269ee8085 Fix missing pop
Previous commit

70ea5d552e "Add support for limiting rotation of automatic face movement dir entitys"

by sapier has broken minetest's feature to open worlds. This was due to a
missing stack pop operation.

Thanks to @oleastre for reporting this bug and suggesting the fix.
2015-12-23 13:56:04 +01:00
Sapier 7af0f4bf36 Add support for limiting rotation of automatic face movement dir entitys 2015-12-23 13:49:14 +01:00
BlockMen 0c04c69e34 Fix items not set physical_state after sliding 2015-12-19 22:49:29 +01:00
BlockMen 4b2bac6205 Fix wrong default value for players stepheight
- Also move player specific constants to player.h
2015-12-19 20:20:46 +01:00
BlockMen 0d27cd1c2a Improve waving defintions
- Allow more drawtypes to use waving
- Don't hardcode waving type, defined by nodedef
- Make leaves_with_apples wave :)
2015-12-19 13:42:06 +01:00