zefram/minetest/minetest_engine.git
10 years agoFix memory leak in database migration
Selat [Wed, 5 Feb 2014 17:52:59 +0000 (19:52 +0200)]
Fix memory leak in database migration

10 years agoAdd missing header
BlockMen [Thu, 6 Feb 2014 20:55:12 +0000 (21:55 +0100)]
Add missing header

10 years agoAdd the option to bind to a specific address
ShadowNinja [Wed, 5 Feb 2014 20:24:46 +0000 (21:24 +0100)]
Add the option to bind to a specific address

10 years agoRemove blank default values for emergequeue_limit_* settings
kwolekr [Wed, 5 Feb 2014 05:17:53 +0000 (00:17 -0500)]
Remove blank default values for emergequeue_limit_* settings

Add checks for invalid user input for important settings
Rename Settings::tryGet* to Settings::get*NoEx for consistency

10 years agoRevert "Fix settings to honor numeric conversion errors"
kwolekr [Wed, 5 Feb 2014 05:05:58 +0000 (00:05 -0500)]
Revert "Fix settings to honor numeric conversion errors"

This reverts commit 3f376a092e1c16429fb52f24736e9da98aff4cd5.

10 years agoFix another heap-use-after-free in pause menu.
Ilya Zhuravlev [Thu, 16 Jan 2014 12:54:50 +0000 (16:54 +0400)]
Fix another heap-use-after-free in pause menu.

10 years agoFix unexpected preprocessor directive in gettext.cpp
Ilya Zhuravlev [Sun, 2 Feb 2014 12:22:33 +0000 (16:22 +0400)]
Fix unexpected preprocessor directive in gettext.cpp

10 years agoFix settings to honor numeric conversion errors
sapier [Wed, 5 Feb 2014 00:35:40 +0000 (01:35 +0100)]
Fix settings to honor numeric conversion errors
Rename try* non exceptioning functions to *NoEx

10 years agoUpdate minetest.conf.example
kwolekr [Tue, 4 Feb 2014 03:47:29 +0000 (22:47 -0500)]
Update minetest.conf.example

10 years agoHuge overhaul of the entire MapgenParams system
kwolekr [Tue, 4 Feb 2014 03:42:10 +0000 (22:42 -0500)]
Huge overhaul of the entire MapgenParams system

MapgenParams is no longer a polymorphic class, eliminating the need for messy and bug-prone reallocations.
Separation between the common and mapgen-specific parameters is now strongly defined.
Mapgen parameters objects are now properly encapsulated within the proper subsystems.

10 years agoSettings: Add no-exception variants of each get method
kwolekr [Tue, 4 Feb 2014 03:40:57 +0000 (22:40 -0500)]
Settings: Add no-exception variants of each get method

10 years agoFix crash when a error occurs in a globalstep callback
ShadowNinja [Mon, 3 Feb 2014 23:15:03 +0000 (18:15 -0500)]
Fix crash when a error occurs in a globalstep callback

10 years agoEscape texture pack names
ShadowNinja [Mon, 3 Feb 2014 22:57:19 +0000 (17:57 -0500)]
Escape texture pack names

10 years agoAdd minetest.kick_player(name, reason)
sapier [Sun, 26 Jan 2014 17:40:25 +0000 (18:40 +0100)]
Add minetest.kick_player(name, reason)

10 years agoRemove noisy error messages, prepend "pathfinder: " to pathfinder messages
sapier [Mon, 3 Feb 2014 19:13:31 +0000 (20:13 +0100)]
Remove noisy error messages, prepend "pathfinder: " to pathfinder messages

10 years agoAdd missing "-" to list of allowed chars in media filenames
sapier [Sun, 2 Feb 2014 14:34:33 +0000 (15:34 +0100)]
Add missing "-" to list of allowed chars in media filenames

10 years agoAdd additional check to avoid broadcasting private messages in error conditions
sapier [Sun, 2 Feb 2014 00:55:24 +0000 (01:55 +0100)]
Add additional check to avoid broadcasting private messages in error conditions

10 years agoAdd player:override_day_night_ratio() for arbitrarily controlling sunlight brightness
Perttu Ahola [Fri, 18 Oct 2013 08:53:19 +0000 (11:53 +0300)]
Add player:override_day_night_ratio() for arbitrarily controlling sunlight brightness

10 years agoAdd player:set_sky() with simple skybox support
Perttu Ahola [Thu, 2 May 2013 20:52:50 +0000 (23:52 +0300)]
Add player:set_sky() with simple skybox support

10 years agoAdd propper client initialization
sapier [Thu, 30 Jan 2014 23:24:00 +0000 (00:24 +0100)]
Add propper client initialization
  -add client states to avoid server sending data to uninitialized clients
  -don't show uninitialized clients to other players
  -propper client disconnect handling
Minor comment fixes in server
Minor bugfixes in connection
  -improved peer id calculation
  -honor NDEBUG flag
  -improved disconnect handling
  -increased initial send window
Remove some dead code

10 years agoNew HUD element - waypoint.
RealBadAngel [Sun, 26 Jan 2014 20:31:59 +0000 (21:31 +0100)]
New HUD element - waypoint.

10 years agoFix bug only half of unreliable queue handled per step in worst case
sapier [Sun, 26 Jan 2014 15:59:36 +0000 (16:59 +0100)]
Fix bug only half of unreliable queue handled per step in worst case

10 years agoFix use of previously deallocated EmergeManager
kwolekr [Sun, 26 Jan 2014 06:12:18 +0000 (01:12 -0500)]
Fix use of previously deallocated EmergeManager

10 years agoFix error on mod download failure
ShadowNinja [Fri, 24 Jan 2014 20:22:22 +0000 (15:22 -0500)]
Fix error on mod download failure

10 years agoPass pointed_thing to on_punch and minetest.register_on_punchnode callbacks
ShadowNinja [Fri, 24 Jan 2014 00:21:01 +0000 (19:21 -0500)]
Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks

10 years agoInclude system info in the HTTP user agent on Windows
Sfan5 [Sun, 19 Jan 2014 13:32:03 +0000 (14:32 +0100)]
Include system info in the HTTP user agent on Windows

10 years agoAdd pointed_thing to minetest.register_on_placenode
ShadowNinja [Wed, 22 Jan 2014 03:05:29 +0000 (22:05 -0500)]
Add pointed_thing to minetest.register_on_placenode

As suggested by qwrwed.

10 years agoConnection: Stop processing malformed packet when encountered
kwolekr [Tue, 21 Jan 2014 14:33:33 +0000 (09:33 -0500)]
Connection: Stop processing malformed packet when encountered

10 years agoFix curl dll not getting installed when sound is disabled
Sfan5 [Tue, 21 Jan 2014 12:35:26 +0000 (13:35 +0100)]
Fix curl dll not getting installed when sound is disabled

10 years agoFix minetest.rotate_and_place() calling on_rightclick() with nil/random param for...
PilzAdam [Sun, 19 Jan 2014 22:16:22 +0000 (23:16 +0100)]
Fix minetest.rotate_and_place() calling on_rightclick() with nil/random param for node

10 years agoUpdate lua_api.txt documentation
kwolekr [Sun, 19 Jan 2014 08:00:47 +0000 (03:00 -0500)]
Update lua_api.txt documentation

10 years agoLuaVoxelManip: Add get_param2_data and set_param2_data
kwolekr [Sun, 19 Jan 2014 07:55:34 +0000 (02:55 -0500)]
LuaVoxelManip: Add get_param2_data and set_param2_data

10 years agoSchematic: Read slice probability table from schematic descriptors
kwolekr [Sun, 19 Jan 2014 07:44:22 +0000 (02:44 -0500)]
Schematic: Read slice probability table from schematic descriptors

10 years agoFixed mainmenu lua errors because of changes in get_textlist_index
Dániel Varga [Thu, 16 Jan 2014 21:16:43 +0000 (22:16 +0100)]
Fixed mainmenu lua errors because of changes in get_textlist_index

Fixed lua error when none of the worlds or servers selected are and connect,
delete or configure buttons used.

10 years agoDeindent HTTPFetchRequest::HTTPFetchRequest()
ShadowNinja [Fri, 17 Jan 2014 00:33:02 +0000 (19:33 -0500)]
Deindent HTTPFetchRequest::HTTPFetchRequest()

10 years agoPrevent player jumping into nodes from below
BlockMen [Wed, 15 Jan 2014 13:49:13 +0000 (14:49 +0100)]
Prevent player jumping into nodes from below

Fixes camera glitch and cheating at drowning

10 years agoPrevent placing node when player would be inside new node
BlockMen [Wed, 15 Jan 2014 20:26:54 +0000 (21:26 +0100)]
Prevent placing node when player would be inside new node

10 years agoFix win32 reading semaphore count not working (broke all queues)
sapier [Tue, 14 Jan 2014 21:21:15 +0000 (22:21 +0100)]
Fix win32 reading semaphore count not working (broke all queues)

10 years agoMake default User-agent follow RFC 2616
ShadowNinja [Wed, 15 Jan 2014 16:58:28 +0000 (11:58 -0500)]
Make default User-agent follow RFC 2616

10 years agoFix building with MinGW
Sfan5 [Wed, 15 Jan 2014 16:35:00 +0000 (17:35 +0100)]
Fix building with MinGW

10 years agoFix building under MSVC
BlockMen [Tue, 14 Jan 2014 15:14:56 +0000 (16:14 +0100)]
Fix building under MSVC

10 years agoFix spelling of "attempt"
ShadowNinja [Tue, 14 Jan 2014 03:11:31 +0000 (22:11 -0500)]
Fix spelling of "attempt"

10 years agoAdd minetest.override_item
ShadowNinja [Tue, 14 Jan 2014 00:28:55 +0000 (19:28 -0500)]
Add minetest.override_item

10 years agoAdd formspec table
Kahrl [Fri, 23 Aug 2013 10:24:11 +0000 (12:24 +0200)]
Add formspec table

10 years agoAllow vertical axis particle rotation constraint
khonkhortisan [Mon, 22 Apr 2013 18:35:10 +0000 (11:35 -0700)]
Allow vertical axis particle rotation constraint

Use tables for adding particles, deprecate former way.

separate particles(pawner) definition, add default values, work with no
arguments

10 years agoFix some errors reported by clang static analyzer.
Ilya Zhuravlev [Sun, 12 Jan 2014 18:07:35 +0000 (22:07 +0400)]
Fix some errors reported by clang static analyzer.

10 years agoMapgen V6: Add flag to stop mud flow
kwolekr [Sun, 12 Jan 2014 23:20:53 +0000 (18:20 -0500)]
Mapgen V6: Add flag to stop mud flow

10 years agoFix doc and forceloading crash.
Novatux [Sun, 12 Jan 2014 12:53:10 +0000 (13:53 +0100)]
Fix doc and forceloading crash.

10 years agoAdd maximum recursion depth to read_json_value
ShadowNinja [Sat, 11 Jan 2014 19:08:02 +0000 (14:08 -0500)]
Add maximum recursion depth to read_json_value

10 years agoRename get_json_value to read_json_value
ShadowNinja [Sat, 11 Jan 2014 18:47:59 +0000 (13:47 -0500)]
Rename get_json_value to read_json_value

10 years agoAdd InvRef::get/set_lists()
ShadowNinja [Sun, 5 Jan 2014 00:07:30 +0000 (19:07 -0500)]
Add InvRef::get/set_lists()

10 years agoCompare values instead of pointers in Inventory::operator==
Kahrl [Sat, 11 Jan 2014 10:17:15 +0000 (11:17 +0100)]
Compare values instead of pointers in Inventory::operator==

10 years agoAdd operator!= to Inventory(List), make operator== a const method
Kahrl [Sat, 11 Jan 2014 18:46:37 +0000 (19:46 +0100)]
Add operator!= to Inventory(List), make operator== a const method

10 years agoAdd forceloading
Novatux [Sat, 11 Jan 2014 16:54:00 +0000 (17:54 +0100)]
Add forceloading

10 years agoDeepcopy pointed_thing for after_place_node, give it to on_rightclick too.
Novatux [Sat, 11 Jan 2014 16:23:28 +0000 (17:23 +0100)]
Deepcopy pointed_thing for after_place_node, give it to on_rightclick too.

10 years agoFix check for max_fd == -1 should actually be max_fd != -1
sapier [Fri, 10 Jan 2014 18:19:16 +0000 (19:19 +0100)]
Fix check for max_fd == -1 should actually be max_fd != -1

10 years agoFixed minetest reliable udp implementation (compatible to old clients)
sapier [Mon, 6 Jan 2014 19:05:28 +0000 (20:05 +0100)]
Fixed minetest reliable udp implementation (compatible to old clients)

10 years agoMake MutexQueue use jsemaphore for signaling
sapier [Mon, 6 Jan 2014 11:45:42 +0000 (12:45 +0100)]
Make MutexQueue use jsemaphore for signaling

10 years agoSet locale properly when built without gettext support
Perttu Ahola [Wed, 9 Jan 2013 12:37:00 +0000 (15:37 +0300)]
Set locale properly when built without gettext support

10 years agoDocument "wielditem" visual
ShadowNinja [Wed, 8 Jan 2014 22:09:23 +0000 (17:09 -0500)]
Document "wielditem" visual

10 years agoDon't lookup node texts in a endless recursion loop
sapier [Tue, 7 Jan 2014 10:15:24 +0000 (11:15 +0100)]
Don't lookup node texts in a endless recursion loop

10 years agoRevert "Improve (re)spawn, add cache_block_before_spawn and max_spawn_height settings"
ShadowNinja [Tue, 7 Jan 2014 02:17:19 +0000 (21:17 -0500)]
Revert "Improve (re)spawn, add cache_block_before_spawn and max_spawn_height settings"

The commit didn't work because the blocks weren't loaded yet.

This reverts commit 22dbbf0a6fc9547f0dbdb7f6076337b8c6acd48b.

Conflicts:
minetest.conf.example

10 years agoPass pointed_thing to after_place_node
ShadowNinja [Tue, 7 Jan 2014 02:15:44 +0000 (21:15 -0500)]
Pass pointed_thing to after_place_node

10 years agoAdd protection support to auto-rotated nodes
ShadowNinja [Tue, 7 Jan 2014 01:40:59 +0000 (20:40 -0500)]
Add protection support to auto-rotated nodes

10 years agoPrevent auto-rotated nodes replacing the nodes they are placed on
ShadowNinja [Tue, 7 Jan 2014 01:31:49 +0000 (20:31 -0500)]
Prevent auto-rotated nodes replacing the nodes they are placed on

10 years agoFix wrong named masterserver announce variable
proller [Mon, 6 Jan 2014 23:11:18 +0000 (03:11 +0400)]
Fix wrong named masterserver announce variable

10 years agoSend long announce as POST, show OS in useragent
proller [Mon, 6 Jan 2014 22:50:45 +0000 (02:50 +0400)]
Send long announce as POST, show OS in useragent
Add lag reporting to masterserver (average dtime)
StyledWriter  -> FastWriter in masterserver announce

10 years agoEscape error messages in error dialog
PilzAdam [Mon, 6 Jan 2014 17:59:14 +0000 (18:59 +0100)]
Escape error messages in error dialog

10 years agoActually pause singleplayer game in pause menu and use lower maximum FPS in it
Perttu Ahola [Mon, 6 Jan 2014 15:37:23 +0000 (17:37 +0200)]
Actually pause singleplayer game in pause menu and use lower maximum FPS in it

10 years agoAdd function to deregister a profiler from profiler list
sapier [Mon, 6 Jan 2014 14:21:22 +0000 (15:21 +0100)]
Add function to deregister a profiler from profiler list

10 years agoCreate new instance of mesh every time it's required (Solves #703)
Perttu Ahola [Mon, 6 Jan 2014 11:24:06 +0000 (13:24 +0200)]
Create new instance of mesh every time it's required (Solves #703)

10 years agoFix main menu error message dialog: Now multi-line messages aren't cut at half of...
Perttu Ahola [Mon, 6 Jan 2014 00:37:36 +0000 (02:37 +0200)]
Fix main menu error message dialog: Now multi-line messages aren't cut at half of second line

10 years agoBUILD: fix cmake list parsing
hasufell [Fri, 3 Jan 2014 15:15:14 +0000 (16:15 +0100)]
BUILD: fix cmake list parsing

because cmake is unable to parse it's own lists properly

10 years agoBUILD: prefer pkg-config for freetype2 detection
hasufell [Sun, 8 Dec 2013 20:05:25 +0000 (21:05 +0100)]
BUILD: prefer pkg-config for freetype2 detection

This can solve numerous problems such as:
http://www.cmake.org/Bug/view.php?id=13959
http://www.cmake.org/Bug/view.php?id=14601

If pkg-config or freetype2.pc is not found, then fall back to the
FindFreetype.cmake module logic.

Restrict to UNIX since I only tested it here.

10 years agoAdd option to link to OpenGL ES, fixes #1051
Sfan5 [Fri, 3 Jan 2014 09:17:01 +0000 (10:17 +0100)]
Add option to link to OpenGL ES, fixes #1051

10 years agoFix absence of images when compiled with RUN_IN_PLACE=0.
Ilya Zhuravlev [Fri, 13 Dec 2013 16:35:57 +0000 (20:35 +0400)]
Fix absence of images when compiled with RUN_IN_PLACE=0.

10 years agoReenable -dev suffix
Kahrl [Fri, 3 Jan 2014 03:36:13 +0000 (04:36 +0100)]
Reenable -dev suffix

10 years agoFix objects being selected behind a node
Novatux [Thu, 2 Jan 2014 13:26:21 +0000 (14:26 +0100)]
Fix objects being selected behind a node

10 years agoBump version to 0.4.9
kwolekr [Wed, 1 Jan 2014 21:54:28 +0000 (16:54 -0500)]
Bump version to 0.4.9

10 years agoFix exception caused by destroying sockets on Server shutdown
kwolekr [Wed, 25 Dec 2013 04:50:49 +0000 (23:50 -0500)]
Fix exception caused by destroying sockets on Server shutdown

10 years agoFix enum element name in Lua HUD code (position vs. pos)
kaeza [Sat, 21 Dec 2013 03:37:14 +0000 (01:37 -0200)]
Fix enum element name in Lua HUD code (position vs. pos)

10 years agoInitialize world before creating BanManager and RollbackManager
ShadowNinja [Mon, 30 Dec 2013 19:29:33 +0000 (14:29 -0500)]
Initialize world before creating BanManager and RollbackManager

10 years agoFix InventoryList reading order
ShadowNinja [Mon, 30 Dec 2013 19:00:05 +0000 (14:00 -0500)]
Fix InventoryList reading order

Lua does not guarantee that the indexes of a table will be in numerical order.

10 years agoRevert "Fix minetest.facedir_to_dir when param2 is 5 or 7."
Novatux [Mon, 30 Dec 2013 17:45:34 +0000 (18:45 +0100)]
Revert "Fix minetest.facedir_to_dir when param2 is 5 or 7."

This reverts commit 4e5760a5416cbca6945b1b4484cbd96bea7b250c.

10 years agoRemove FPS from window title
PilzAdam [Wed, 25 Dec 2013 02:52:42 +0000 (03:52 +0100)]
Remove FPS from window title
This doubles performance on some window managers (WTF?!)

10 years agoMake SHA1::addBytes(..., 0) a no-op instead of an assertion failure
Kahrl [Tue, 24 Dec 2013 23:29:00 +0000 (00:29 +0100)]
Make SHA1::addBytes(..., 0) a no-op instead of an assertion failure

10 years agoUse sleep_ms instead of select in httpfetch when max_fd == -1, fixes WSAEINVAL
Kahrl [Tue, 24 Dec 2013 18:28:09 +0000 (19:28 +0100)]
Use sleep_ms instead of select in httpfetch when max_fd == -1, fixes WSAEINVAL

10 years agoFix particle code ignoring return value of std::vector::erase(). Wat.
Kahrl [Mon, 23 Dec 2013 14:11:53 +0000 (15:11 +0100)]
Fix particle code ignoring return value of std::vector::erase(). Wat.

10 years agoFix wrong names for parallax settings in config example.
RealBadAngel [Sat, 21 Dec 2013 23:30:17 +0000 (00:30 +0100)]
Fix wrong names for parallax settings in config example.

10 years agoBugfix to get_all_craft_recipes.
RealBadAngel [Sat, 21 Dec 2013 22:03:51 +0000 (23:03 +0100)]
Bugfix to get_all_craft_recipes.
Indexes for empty slots shall not be skipped.

10 years agoCheck for denied access in itemdef/nodedef/media fetch loop
Kahrl [Thu, 19 Dec 2013 20:47:08 +0000 (21:47 +0100)]
Check for denied access in itemdef/nodedef/media fetch loop

10 years agoDon't throw a error when writing JSON fails
ShadowNinja [Wed, 18 Dec 2013 23:17:26 +0000 (18:17 -0500)]
Don't throw a error when writing JSON fails

10 years agoLog guilty node name when allow_metadata_inventory_move/put/take fails
Kahrl [Wed, 18 Dec 2013 21:57:33 +0000 (22:57 +0100)]
Log guilty node name when allow_metadata_inventory_move/put/take fails

10 years agoAdd 'minetest.write_json'
ShadowNinja [Wed, 18 Dec 2013 21:46:53 +0000 (16:46 -0500)]
Add 'minetest.write_json'

10 years agoHandle LuaErrors in Lua -> C++ calls on LuaJIT
ShadowNinja [Wed, 18 Dec 2013 21:35:55 +0000 (16:35 -0500)]
Handle LuaErrors in Lua -> C++ calls on LuaJIT

10 years agoFix formspec field labels
BlockMen [Tue, 17 Dec 2013 00:13:16 +0000 (01:13 +0100)]
Fix formspec field labels

10 years agoFix broken httpfetch due to SimpleThread removal
sapier [Mon, 16 Dec 2013 22:31:56 +0000 (23:31 +0100)]
Fix broken httpfetch due to SimpleThread removal

10 years agoFix MSVC compiling issue
BlockMen [Mon, 16 Dec 2013 00:13:08 +0000 (01:13 +0100)]
Fix MSVC compiling issue

10 years agoReduce cloud coloring for colored fog and cloud mode
sapier [Sun, 15 Dec 2013 23:16:06 +0000 (00:16 +0100)]
Reduce cloud coloring for colored fog and cloud mode

10 years agoRemove an unused function and include from client.cpp
PilzAdam [Sun, 15 Dec 2013 18:15:25 +0000 (19:15 +0100)]
Remove an unused function and include from client.cpp