oweals/minetest.git
9 years agoFix build since: "Remove referenced schematics from Decorations on clear"
est31 [Fri, 17 Apr 2015 08:30:59 +0000 (10:30 +0200)]
Fix build since: "Remove referenced schematics from Decorations on clear"

Fixes build, which has been broken for all platforms (except BSD?) since
grandparent 406d9ba87b9f6e57b86c6282bf157e3341aa195c.
Thanks to @SmallJoker for pointing out a solution.

9 years agoSwitch to check_v3s16 in l_mapgen.cpp and l_vmanip.cpp for type safety
kwolekr [Fri, 17 Apr 2015 05:03:13 +0000 (01:03 -0400)]
Switch to check_v3s16 in l_mapgen.cpp and l_vmanip.cpp for type safety

9 years agoSchematics: Remove referenced schematics from Decorations on clear
kwolekr [Fri, 17 Apr 2015 04:52:48 +0000 (00:52 -0400)]
Schematics: Remove referenced schematics from Decorations on clear

9 years agoRefactor around translatePassword
est31 [Fri, 17 Apr 2015 04:10:30 +0000 (06:10 +0200)]
Refactor around translatePassword

Change types for passed password from wstring to string, which removes converting
back and forth in most cases. Move the narrow_to_wide conversion, where its neccessary,
closer to irrlicht. Remove trailing spaces in guiPasswordChange.cpp. Make parameters for
translatePassword passed as const reference.

9 years agoBiomes: Remove referenced biomes from Decorations on clear
kwolekr [Fri, 17 Apr 2015 03:37:50 +0000 (23:37 -0400)]
Biomes: Remove referenced biomes from Decorations on clear

9 years agoFix path detection with --std= parameter
est31 [Fri, 17 Apr 2015 03:05:52 +0000 (05:05 +0200)]
Fix path detection with --std= parameter

Fixes path detection when compilers have been told to follow a standard, e.g. with -DCMAKE_CXX_FLAGS=--std=c++98.
To see the passed defines, try this with and without the --std parameter:
gcc -E -dM --std=c99 - < /dev/null | grep linux

9 years agoFix build for < C++11 since last commit
est31 [Fri, 17 Apr 2015 00:29:50 +0000 (02:29 +0200)]
Fix build for < C++11 since last commit

Build broke since last commit 479f38973e13680d6a39d9c2a7f29fd330b67d41 for compilers not supporting C++11.
Pre C++11, the constructor of std::ifstream only allows C like strings.

9 years agoSchematics: Refactor NodeResolver and add NodeResolveMethod
kwolekr [Thu, 16 Apr 2015 08:12:26 +0000 (04:12 -0400)]
Schematics: Refactor NodeResolver and add NodeResolveMethod

NodeResolver name lists now belong to the NodeResolver object instead of
the associated NodeDefManager.  In addition to minimizing unnecessary
abstraction and overhead, this move permits NodeResolvers to look up nodes
that they had previously set pending for resolution.  So far, this
functionality has been used in the case of schematics for
serialization/deserialization.

9 years agoUse std::vector instead of std::set for Environment::getObjectsInsideRadius
Loic Blot [Thu, 16 Apr 2015 12:11:46 +0000 (14:11 +0200)]
Use std::vector instead of std::set for Environment::getObjectsInsideRadius
We are only iterating sequentially, we don't need a set here
Also use a vector reference instead of a copy

9 years agoMgv5: Fix above/below ground spawn when water level is altered
paramat [Thu, 16 Apr 2015 05:16:54 +0000 (06:16 +0100)]
Mgv5: Fix above/below ground spawn when water level is altered

9 years agoMgv5/v7: Add check for water for deciding biome node stability
paramat [Thu, 16 Apr 2015 02:45:42 +0000 (03:45 +0100)]
Mgv5/v7: Add check for water for deciding biome node stability

9 years agoDefaultsettings: Add dungeons and jungles flags. Update conf.example
paramat [Mon, 13 Apr 2015 21:48:03 +0000 (22:48 +0100)]
Defaultsettings: Add dungeons and jungles flags. Update conf.example

9 years agoSchematics: Reorganize (de)serialization and add Lua serialization API
kwolekr [Sun, 12 Apr 2015 20:40:50 +0000 (16:40 -0400)]
Schematics: Reorganize (de)serialization and add Lua serialization API

9 years agoConf.example: Update, fix and improve mapgen flags docs
paramat [Mon, 13 Apr 2015 03:14:06 +0000 (04:14 +0100)]
Conf.example: Update, fix and improve mapgen flags docs

Remove dynamic weather year parameter

9 years agoAdd Spanish comment translation to minetest.desktop
ngosang [Thu, 26 Mar 2015 19:08:46 +0000 (20:08 +0100)]
Add Spanish comment translation to minetest.desktop

9 years agoMgv6: Fix taiga, allow pine tree spawning on snowblocks
paramat [Sun, 12 Apr 2015 04:11:16 +0000 (05:11 +0100)]
Mgv6: Fix taiga, allow pine tree spawning on snowblocks

9 years agoMgv6: Add optional snow biomes
paramat [Thu, 2 Apr 2015 23:56:29 +0000 (00:56 +0100)]
Mgv6: Add optional snow biomes

9 years agoFix a rare crash case un SendPlayerHP
Ner'zhul [Sat, 11 Apr 2015 08:07:23 +0000 (10:07 +0200)]
Fix a rare crash case un SendPlayerHP

If the player is disconnected while Lua API is doing a l_punch call, for example, the playersao is NULL and the server crash. Fix it.

9 years agoDocument for api functions that rely on current_modname, that it doesn't work when...
est31 [Wed, 8 Apr 2015 20:44:37 +0000 (22:44 +0200)]
Document for api functions that rely on current_modname, that it doesn't work when not loading mods

9 years agoLink against shlwapi.lib and unify linker input sources for Windows
kwolekr [Wed, 8 Apr 2015 16:55:06 +0000 (12:55 -0400)]
Link against shlwapi.lib and unify linker input sources for Windows

9 years agoFix freetype detection
Dmitry Marakasov [Wed, 8 Apr 2015 04:32:09 +0000 (00:32 -0400)]
Fix freetype detection

Don't reinvent freetype detection, use working one from cmake.

9 years agoSchematics: Prepend mod path to relative schematic filepaths
kwolekr [Wed, 8 Apr 2015 03:04:48 +0000 (23:04 -0400)]
Schematics: Prepend mod path to relative schematic filepaths

9 years agoTOCLIENT_ACTIVE_OBJECT_MESSAGES: channel must be 1 for unreliable message
Loic Blot [Tue, 7 Apr 2015 12:28:36 +0000 (14:28 +0200)]
TOCLIENT_ACTIVE_OBJECT_MESSAGES: channel must be 1 for unreliable message

9 years agoFix missing SQLite3 statement pointer initialization
ShadowNinja [Tue, 7 Apr 2015 04:29:29 +0000 (00:29 -0400)]
Fix missing SQLite3 statement pointer initialization

This fixes a segfault when the database is shut down
before it finishes connecting and setting up.

9 years agoCavegen: Remove now unnecessary checks for water, lava, ice
paramat [Mon, 6 Apr 2015 21:52:08 +0000 (22:52 +0100)]
Cavegen: Remove now unnecessary checks for water, lava, ice

Remove large cave checks for air
Mgv5/mgv7:Add is_ground_content checks to 3d noise tunnels
More large caves
Shorten lines

9 years agoMake comments consistent with TOSERVER_INIT -> TOSERVER_INIT_LEGACY rename
est31 [Mon, 6 Apr 2015 22:11:10 +0000 (00:11 +0200)]
Make comments consistent with TOSERVER_INIT -> TOSERVER_INIT_LEGACY rename

9 years agoChange screenshot filename to one likely to work on all modern filesystems
Craig Robbins [Mon, 6 Apr 2015 01:07:51 +0000 (11:07 +1000)]
Change screenshot filename to one likely to work on all modern filesystems
Fixes #2603

9 years agoTOCLIENT_ACTIVE_OBJECT_REMOVE_ADD can be unreliable, catch PacketError exception.
Loic Blot [Sun, 5 Apr 2015 09:37:53 +0000 (11:37 +0200)]
TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD can be unreliable, catch PacketError exception.
Also set the packet size at creation not when pushing rawString, no functional change

9 years agocraftdef.cpp: Return 0 after assert to make Clang happy
Loic Blot [Sun, 5 Apr 2015 09:16:12 +0000 (11:16 +0200)]
craftdef.cpp: Return 0 after assert to make Clang happy

9 years agoFix uninitialized variabled in ConnectionEvent
Loic Blot [Sun, 5 Apr 2015 09:13:30 +0000 (11:13 +0200)]
Fix uninitialized variabled in ConnectionEvent

9 years agoCrafting speedup
est31 [Fri, 3 Apr 2015 23:33:34 +0000 (01:33 +0200)]
Crafting speedup

This greatly increases crafting performance, especially in worlds with many mods.

Approved by @kwolekr.

Introduces a hash-type-layered fall-through mechanism, where every layer specifies one hash algorithm,
and the "deeper the fall", the more collisions to expect for the algorithm. One Craft definition
only resides at one layer, which improves speed for lower layers (and a complete fail), due to most
craft definitions residing at high layers.

Due to the fall-through design, the undocumented behaviour that later craft recipes
override older ones had to be weaked up a bit, but craft recipes with the same hash and layer
will still override.

9 years agoAdd reason to kicked log message and use present tense
est31 [Sun, 5 Apr 2015 02:18:47 +0000 (04:18 +0200)]
Add reason to kicked log message and use present tense

9 years agoRemove errorstream logging on password change
est31 [Fri, 3 Apr 2015 11:55:55 +0000 (13:55 +0200)]
Remove errorstream logging on password change

This seems to be a debug message which has been forgotten to be removed.

9 years agoFix players spawned at (0,0,0) in some rare cases instead of static_spawnpoint, if set
Loic Blot [Fri, 3 Apr 2015 07:04:02 +0000 (09:04 +0200)]
Fix players spawned at (0,0,0) in some rare cases instead of static_spawnpoint, if set
Approved by: @kwoelkr

9 years agoCreate PacketError exception and use it with ACTIVEOBJECT_REMOVE_ADD handler which...
Loic Blot [Fri, 3 Apr 2015 06:53:31 +0000 (08:53 +0200)]
Create PacketError exception and use it with ACTIVEOBJECT_REMOVE_ADD handler which can be unreliable

9 years agoFix crash caused by null texture in GUI formspec/HUD.
Aaron Suen [Thu, 2 Apr 2015 12:58:18 +0000 (08:58 -0400)]
Fix crash caused by null texture in GUI formspec/HUD.

9 years agoFix MSVC error caused by ed10005
SmallJoker [Wed, 1 Apr 2015 17:41:35 +0000 (19:41 +0200)]
Fix MSVC error caused by ed10005

9 years agoTreegen: Add pine tree. Force place trunks
paramat [Sat, 28 Mar 2015 05:14:53 +0000 (05:14 +0000)]
Treegen: Add pine tree. Force place trunks

Speed-optimise leaves blits
Use MMVManip for make_jungletree
Use correct code style

9 years agoMove globals from main.cpp to more sane locations
Craig Robbins [Wed, 1 Apr 2015 13:01:28 +0000 (23:01 +1000)]
Move globals from main.cpp to more sane locations

Move debug streams to log.cpp|h

Move GUI-related globals to clientlauncher

Move g_settings and g_settings_path to settings.cpp|h

Move g_menuclouds to clouds.cpp|h

Move g_profiler to profiler.cpp|h

9 years agoNetworkPacket: reading outside packet is now clearer.
Loic Blot [Wed, 1 Apr 2015 12:47:43 +0000 (14:47 +0200)]
NetworkPacket: reading outside packet is now clearer.
Use a common function to check the reading offset

9 years agoFix some minor details from 6d61375
kwolekr [Wed, 1 Apr 2015 04:19:10 +0000 (00:19 -0400)]
Fix some minor details from 6d61375

9 years agoClean scaling pre-filter for formspec/HUD.
Aaron Suen [Mon, 9 Mar 2015 13:32:11 +0000 (09:32 -0400)]
Clean scaling pre-filter for formspec/HUD.

9 years agoFix usage of destroyed mutex
kwolekr [Wed, 1 Apr 2015 03:33:30 +0000 (23:33 -0400)]
Fix usage of destroyed mutex

Also fix a memory leak
Fix overloaded virtual warning in Player::move()
Remove some trailing whitespace

9 years agoFix set_bits
kwolekr [Wed, 1 Apr 2015 03:30:44 +0000 (23:30 -0400)]
Fix set_bits

9 years agoObjDefManager, Mapgen SAPI: Huge refactoring
kwolekr [Wed, 1 Apr 2015 03:27:19 +0000 (23:27 -0400)]
ObjDefManager, Mapgen SAPI: Huge refactoring

 - General code cleanup
 - Unified object creation and loading
 - Specifying objects in APIs is now orthogonal (i.e. anything can take an ID,
   name string, or the raw table definition (and automatically registers if present

9 years agoFix use of unitialized variable in gettext.cpp
Craig Robbins [Tue, 31 Mar 2015 11:26:34 +0000 (21:26 +1000)]
Fix use of unitialized variable in gettext.cpp

#2583

9 years agoConnection::Receive(): receive Network Packet instead of SharedBuffer<u8>.
Loic Blot [Tue, 31 Mar 2015 08:35:51 +0000 (10:35 +0200)]
Connection::Receive(): receive Network Packet instead of SharedBuffer<u8>.
Because we get a Buffer<u8> from ConnectionEvent, don't convert it to SharedBuffer<u8> and return it to Server/Client::Receive which will convert it to NetworkPacket
Instead, put the Buffer<u8> directly to NetworkPacket and return it to packet processing
This remove a long existing memory copy
Also check the packet size directly into Connection::Receive instead of packet processing

9 years agoRunCommandQueues: little optimization
Loic Blot [Tue, 31 Mar 2015 07:22:44 +0000 (09:22 +0200)]
RunCommandQueues: little optimization
remove command from queue on success, else do nothing, instead of remove command from queue and push it front on success

9 years agoTypo in getOutgoingSequenceNumber => successfull to successful
Loic Blot [Tue, 31 Mar 2015 07:18:11 +0000 (09:18 +0200)]
Typo in getOutgoingSequenceNumber => successfull to successful

9 years agoMove texture_min_size even further down the pipe. Now, textures are JIT-upscaled...
Aaron Suen [Tue, 31 Mar 2015 00:04:19 +0000 (20:04 -0400)]
Move texture_min_size even further down the pipe. Now, textures are JIT-upscaled using an image transformation, right at the time they're added to a mesh or particle; images used in 2D elements are left unscaled. This should fix any remaining issues with HUD elements.

9 years agoChange format of screenshot names
Craig Robbins [Tue, 31 Mar 2015 06:13:42 +0000 (16:13 +1000)]
Change format of screenshot names

Filename screenshot_ + ISO 8601 format + [-serial]

i.e. screenshot_YYYY-MM-DDTHH::MM::SS[-serial].png

Serial is added if the filename + timestamp already exists and is in the range 1 to 999

9 years agoGenElementManager: Pass opaque handles to Lua and rename to ObjDefManager
kwolekr [Tue, 31 Mar 2015 03:40:35 +0000 (23:40 -0400)]
GenElementManager: Pass opaque handles to Lua and rename to ObjDefManager

Add core.clear_registered_schematics() and refactor schematics somewhat

9 years agoUse Buffer not SharedBuffer in NetworkPacket::oldForgePacket
Loic Blot [Mon, 30 Mar 2015 17:55:14 +0000 (19:55 +0200)]
Use Buffer not SharedBuffer in NetworkPacket::oldForgePacket

9 years agoOn Android enable always fast
Craig Robbins [Sat, 28 Mar 2015 05:24:35 +0000 (15:24 +1000)]
On Android enable always fast

Invert the meaning of holding down the fast button (i.e. holding down the fast button -- if there is one -- means walk), unless performing an action, sneaking or jumping.
Still requires fast move to be toggled on (and fast priv)

9 years agoLet main menu scale (non-Android)
Craig Robbins [Sun, 29 Mar 2015 14:33:07 +0000 (00:33 +1000)]
Let main menu scale (non-Android)

This fixes main menu not fitting for 800x600 (and lower resolutions) on PC builds

9 years agoFix Android build-related bugs
Craig Robbins [Sat, 28 Mar 2015 10:25:34 +0000 (20:25 +1000)]
Fix Android build-related bugs

E.g. Sound and freetype always being disabled, redefinition of pre-processor directives

9 years agoMake sure g_timegetter is initalised before running speedtests
Craig Robbins [Sun, 29 Mar 2015 12:21:32 +0000 (22:21 +1000)]
Make sure g_timegetter is initalised before running speedtests

Thanks @SmallJoker for noticing the issue

9 years agoFix typo
Craig Robbins [Sun, 29 Mar 2015 12:08:14 +0000 (22:08 +1000)]
Fix typo

9 years agoUpdate credits
Craig Robbins [Mon, 23 Mar 2015 04:20:28 +0000 (14:20 +1000)]
Update credits

9 years agoqueued_commands must be a std::deque. RunCommandQueues needs to push packet on front...
Loic Blot [Sun, 29 Mar 2015 08:49:43 +0000 (10:49 +0200)]
queued_commands must be a std::deque. RunCommandQueues needs to push packet on front, not back

9 years agoFix uninitialized variable Player::local_animation_speed
Loic Blot [Sat, 28 Mar 2015 09:45:32 +0000 (10:45 +0100)]
Fix uninitialized variable Player::local_animation_speed

9 years agoUpdate minetest.po
Rui [Sun, 22 Mar 2015 21:18:04 +0000 (06:18 +0900)]
Update minetest.po

Update minetest.po

Update minetest.po

9 years agoAdd Lua function get_video_modes() for main menu
Craig Robbins [Sat, 28 Mar 2015 01:05:39 +0000 (11:05 +1000)]
Add Lua function get_video_modes() for main menu

Also updates and uses porting::getSupportedVideoModes()

9 years agoMake camera clear error message if there's no error
ShadowNinja [Sat, 28 Mar 2015 02:20:10 +0000 (22:20 -0400)]
Make camera clear error message if there's no error

9 years agoFix GetText translation loading
ShadowNinja [Sat, 28 Mar 2015 02:10:08 +0000 (22:10 -0400)]
Fix GetText translation loading

9 years agoChange error_message from wstring to string
ShadowNinja [Sat, 28 Mar 2015 00:24:04 +0000 (20:24 -0400)]
Change error_message from wstring to string

This removes a lot of narrow/wide conversions where a wide string was never used.

9 years agoFix MSVC compile error
ShadowNinja [Fri, 27 Mar 2015 19:16:41 +0000 (15:16 -0400)]
Fix MSVC compile error

9 years agoDocument nil player as being allowed for can_dig
ShadowNinja [Fri, 27 Mar 2015 19:11:28 +0000 (15:11 -0400)]
Document nil player as being allowed for can_dig

9 years agoFix typo in OpenGL ES 2 CMake file
ShadowNinja [Fri, 27 Mar 2015 19:10:27 +0000 (15:10 -0400)]
Fix typo in OpenGL ES 2 CMake file

9 years agoClean up and tweak build system 2402/head
ShadowNinja [Fri, 27 Feb 2015 23:05:29 +0000 (18:05 -0500)]
Clean up and tweak build system

  * Combine client and server man pages.
  * Update unit test options and available databases in man page.
  * Add `--worldname` to man page.
  * Fix a bunch of places where `"Minetest"` was used directly instead of `PROJECT_NAME`.
  * Disable server build by default on all operating systems.
  * Make `ENABLE_FREETYPE` not fail if FreeType isn't found.
  * Enable LevelDB, Redis, and FreeType detection by default.
  * Remove the `VERSION_PATCH_ORIG` hack.
  * Add option to search for and use system JSONCPP.
  * Remove broken LuaJIT version detection.
  * Rename `DISABLE_LUAJIT` to `ENABLE_LUAJIT`.
  * Rename `minetest_*` variables in `version.{h,cpp}` to `g_*`.
  * Clean up style of CMake files.

9 years agoRemove duplicate code since 8ca08a850ff2494652aa0ac2daa3d00f03aa4e7a
Loic Blot [Sun, 22 Mar 2015 09:22:25 +0000 (10:22 +0100)]
Remove duplicate code since 8ca08a850ff2494652aa0ac2daa3d00f03aa4e7a

9 years agoUpdate German translation and minetest.pot
Wuzzy [Sat, 14 Mar 2015 15:56:52 +0000 (16:56 +0100)]
Update German translation and minetest.pot

9 years agolua_api/l_mapgen: generate_ores/decorations: make p1, p2 optional
paramat [Sun, 22 Mar 2015 21:03:19 +0000 (21:03 +0000)]
lua_api/l_mapgen: generate_ores/decorations: make p1, p2 optional

9 years agoChange filename of screenshots to something more human readable
Craig Robbins [Tue, 24 Mar 2015 16:42:31 +0000 (02:42 +1000)]
Change filename of screenshots to something more human readable

9 years agoUpdate timestamp to include date
Craig Robbins [Tue, 24 Mar 2015 16:29:24 +0000 (02:29 +1000)]
Update timestamp to include date

9 years agoDon't send an InventoryAction at each setInventoryModified, we only need one SendInve...
Loic Blot [Tue, 24 Mar 2015 08:36:54 +0000 (09:36 +0100)]
Don't send an InventoryAction at each setInventoryModified, we only need one SendInventory per inventory modification

Client doesn't like to receive multiples SendInventory for one action, this can trigger glitches on clients (sometimes due to incorrect UDP packet ordering due to UDP protocol)

This fix issue #2544

9 years agoSlow down the "key repeat" touch speed for some Android controls
Craig Robbins [Tue, 24 Mar 2015 12:19:32 +0000 (22:19 +1000)]
Slow down the "key repeat" touch speed for some Android controls

Increases the key/buttons repeat delay for fly, noclip, fast, debug and camera buttons

9 years agoAdd core.register_schematic() and cache schematics on use
kwolekr [Tue, 24 Mar 2015 02:10:59 +0000 (22:10 -0400)]
Add core.register_schematic() and cache schematics on use

9 years agoFix endianness inconsistency with PcgRandom::bytes()
kwolekr [Tue, 24 Mar 2015 01:07:32 +0000 (21:07 -0400)]
Fix endianness inconsistency with PcgRandom::bytes()

9 years agoSchematics: Error if unable to open file
kwolekr [Tue, 24 Mar 2015 01:03:28 +0000 (21:03 -0400)]
Schematics: Error if unable to open file

9 years agoDo not enable texture_clean_transparent by default
kwolekr [Mon, 23 Mar 2015 22:19:19 +0000 (18:19 -0400)]
Do not enable texture_clean_transparent by default

This feature is still experimental and has some issues. Also,
increase texture_min_size to 64 px. The setting was initially
a conservative 16 so that the effect would not be noticable
for players who aren't using aniso/bi/trilinear filtering. This
isn't necessary now that texture_clean_transparent is disabled
by default.

9 years agoMgv6: Use heightmap in placeTreesAndJungleGrass()
paramat [Mon, 23 Mar 2015 19:36:00 +0000 (19:36 +0000)]
Mgv6: Use heightmap in placeTreesAndJungleGrass()

9 years agoFix for sun/moon tonemaps: don't upscale 1px images.
Aaron Suen [Mon, 23 Mar 2015 06:23:29 +0000 (02:23 -0400)]
Fix for sun/moon tonemaps: don't upscale 1px images.

9 years agoFix Android build on 32 bit
est31 [Sun, 22 Mar 2015 23:46:55 +0000 (00:46 +0100)]
Fix Android build on 32 bit

Remove the --system=linux-x86_64 which isn't neccessary on 64 bit,
as, when given no --system parameter, the standalone-toolchain.sh script
figures out the platform on itself. Naturally, the hardcoded setting broke
android building on 32 bit systems.

9 years agoFix cmake po detection bug
est31 [Sun, 22 Mar 2015 19:52:57 +0000 (20:52 +0100)]
Fix cmake po detection bug

Previously, cmake po detection would treat the "timestamp" file created by building for android as own language directory.

9 years agoFix minetest.get_craft_recipe function
est31 [Mon, 23 Mar 2015 01:38:53 +0000 (02:38 +0100)]
Fix minetest.get_craft_recipe function

Previously, calling it resulted in a crash.

9 years agoPlayer: Fix a deadlock triggered by previous commit 0e5e49736c0a5fa29bca257bafc02d7c7...
Loic Blot [Sun, 22 Mar 2015 20:33:09 +0000 (21:33 +0100)]
Player: Fix a deadlock triggered by previous commit 0e5e49736c0a5fa29bca257bafc02d7c7a7171c9

9 years agoProtect Player::hud from concurrent modifications
Loic Blot [Sun, 22 Mar 2015 19:09:44 +0000 (20:09 +0100)]
Protect Player::hud from concurrent modifications
Sometimes HUD can be modified by ServerThread and EmergeThread results in a crash on client side because the HUD is not correct

9 years agoMgv7: 1 up , 1 down overgeneration for chunk border continuity
paramat [Fri, 20 Mar 2015 18:06:05 +0000 (18:06 +0000)]
Mgv7: 1 up , 1 down overgeneration for chunk border continuity

Fixes biome layer at y = 47 when base/alt terrain exceeds it
Also fixes missing dust glitch at y = 47
Mgv5/mgv7:Cleanup code

9 years agoRevert "Add a Lua call to do damages / heals" ok @ShadowNinja
Loic Blot [Sun, 22 Mar 2015 17:01:56 +0000 (18:01 +0100)]
Revert "Add a Lua call to do damages / heals" ok @ShadowNinja

This reverts commit 467fc0ddc912ae38c3bf9fcb99e0b66d7478eec0.

9 years agoRemove unused ConnectionCommand::sendToAll function. NetworkPacket::oldForgePacket...
Loic Blot [Sun, 22 Mar 2015 11:18:16 +0000 (12:18 +0100)]
Remove unused ConnectionCommand::sendToAll function. NetworkPacket::oldForgePacket returns Buffer instead of SharedBuffer and is used in ConnectionCommand instead of Connection::Send
This remove the NetworkPacket buffer => SharedBuffer => Buffer copy. Now NetworkPacket => Buffer

9 years agoFix some loose ends from 3993093f
kwolekr [Sun, 22 Mar 2015 06:58:47 +0000 (02:58 -0400)]
Fix some loose ends from 3993093f

9 years agoAdd support for the PCG32 PRNG algo (and associated script APIs)
kwolekr [Sun, 22 Mar 2015 04:01:46 +0000 (00:01 -0400)]
Add support for the PCG32 PRNG algo (and associated script APIs)

9 years agoSendInventory when handleCommand_Interact is a use.
poet-nohit [Sat, 21 Mar 2015 19:41:32 +0000 (13:41 -0600)]
SendInventory when handleCommand_Interact is a use.
This call was missing when change looping to triggering SendInventory: 1b2f64473ed4f222d3b7f02df853730d4382105e

9 years agoFix composite textures with texture_min_size. Moved upscaling of textures to later...
Aaron Suen [Sat, 21 Mar 2015 13:59:06 +0000 (09:59 -0400)]
Fix composite textures with texture_min_size. Moved upscaling of textures to later in the process, when images are converted to textures, instead of right after image load, so the original image is unmodified for generateImagePart.

9 years agoConnect rails with connect_to_raillike and shorten the codes
SmallJoker [Sat, 21 Mar 2015 11:52:05 +0000 (12:52 +0100)]
Connect rails with connect_to_raillike and shorten the codes

9 years agoOptimize minetest.get_(all)_craft_recipe(s)
gregorycu [Mon, 26 Jan 2015 13:46:55 +0000 (00:46 +1100)]
Optimize minetest.get_(all)_craft_recipe(s)

Signed off by: ShadowNinja, kwolekr

9 years agoConfigurable automatic texture scaling and filtering at load time.
Aaron Suen [Sun, 8 Mar 2015 00:52:59 +0000 (19:52 -0500)]
Configurable automatic texture scaling and filtering at load time.

Signed off by: Zeno, kwolekr

9 years agoRevert "Fix issue #2441: crash on respawn, since a conversion std::list to std::vecto...
kwolekr [Fri, 20 Mar 2015 22:40:18 +0000 (18:40 -0400)]
Revert "Fix issue #2441: crash on respawn, since a conversion std::list to std::vector on Environment.cpp"

This reverts parts of commit 9749d9fee6db99da1ab861dc04ec63ef973db3e0, which breaks node resolver
list clearing

9 years agoMgv5/mgv7: Sprinkle dust from full_node_max.Y if chunk above is generated
paramat [Mon, 16 Mar 2015 01:22:37 +0000 (01:22 +0000)]
Mgv5/mgv7: Sprinkle dust from full_node_max.Y if chunk above is generated

Mgv5: Add large_cave_depth constant