est31 [Fri, 1 May 2015 09:48:59 +0000 (11:48 +0200)]
Better version detection for shallow clones
paramat [Sun, 3 May 2015 01:44:58 +0000 (02:44 +0100)]
RotateAlongYAxis: For facedir case, return if param2 >= 4
est31 [Fri, 1 May 2015 05:42:08 +0000 (07:42 +0200)]
Add .patch files to gitignore
SmallJoker [Wed, 29 Apr 2015 17:28:25 +0000 (19:28 +0200)]
Fix several MSVC issues numeric.h
-> Round negative numbers correctly CMakeLists.txt
-> Link Json with the static run-time library
kwolekr [Wed, 29 Apr 2015 17:20:01 +0000 (13:20 -0400)]
Fix MSVC compatibility
Make sure to include random unittests in android builds, too
Use SWAP() macro
Ensure that negative ranges are tested as well in random unittests
kwolekr [Wed, 29 Apr 2015 08:07:24 +0000 (04:07 -0400)]
Tests: Add random unittests
mich1 [Fri, 17 Apr 2015 12:57:06 +0000 (15:57 +0300)]
Add Russian comment translation to minetest.desktop
sfan5 [Mon, 27 Apr 2015 14:17:10 +0000 (16:17 +0200)]
Revert the upper-case PROJECT_NAME nonsense that was part of #2402
sfan5 [Sun, 26 Apr 2015 20:24:48 +0000 (22:24 +0200)]
Revert "Only lowercase project name at compile time"
This reverts commit
3be9787e64362b8a5020746220c65abbe31f8097.
kwolekr [Mon, 27 Apr 2015 08:05:25 +0000 (04:05 -0400)]
Noise: Fix PcgRandom::randNormalDist() when range contains negative numbers
This fixes an issue with erroneous float-to-int rounding that resulted in
truncation toward 0, causing a biased distribution.
kwolekr [Mon, 27 Apr 2015 05:24:37 +0000 (01:24 -0400)]
Replace PRNG assertions with PrngException
Tomas Brod [Thu, 16 Apr 2015 22:38:28 +0000 (00:38 +0200)]
Fix minetest.clear_* creating new LOCAL table instead of clearing the existing one.
On calling clear_redistered_biomes the registered_biomes table is cleared
by creating a new empty table, but the pointer is not updated to point to
the new one. So after calling more register_biome, the registered_biome
table always contains 0 items, which is an error. Instead, the table is
cleared by removing all its items so the pointer (minetest.registered_*)
remains valid.
kwolekr [Sun, 26 Apr 2015 19:40:19 +0000 (15:40 -0400)]
Update .gitignore
est31 [Tue, 21 Apr 2015 20:24:45 +0000 (22:24 +0200)]
Remove craftdef serialisation
It isn't needed anymore, sending ICraftDefManager over the network has been obsoleted
by protocol version 7.
est31 [Tue, 21 Apr 2015 20:24:23 +0000 (22:24 +0200)]
Craftdef refactor
Fix style, refactor assert, use '"' instead of "\"",
replace code duplicating craftGetItemName, rename iterators.
kwolekr [Sun, 26 Apr 2015 05:24:19 +0000 (01:24 -0400)]
Tests: Modularize unit testing
Split unit tests into separate files under src/unittest/
Give better unittest diagnostics
Clean up some code
fishyWET [Sat, 18 Apr 2015 18:03:03 +0000 (02:03 +0800)]
Update chinese translation
fixed some mistakes and added in some new translations
Aaron Suen [Wed, 1 Apr 2015 12:26:57 +0000 (08:26 -0400)]
Fix fast leaves with texture_clean_transparent enabled.
Kevin Ott [Sat, 25 Apr 2015 06:18:26 +0000 (02:18 -0400)]
Fix player pitch and yaw not being set properly
Muhammad Rifqi Priyo Susanto [Sat, 25 Apr 2015 03:11:12 +0000 (10:11 +0700)]
Remove fly mode in simple main menu
As the fly mode option is avaiable in-game, this is not used anymore.
est31 [Fri, 24 Apr 2015 18:25:33 +0000 (20:25 +0200)]
German translation: shorter setting name
nerzhul [Fri, 24 Apr 2015 13:33:47 +0000 (15:33 +0200)]
Remove unused variable Client::m_active_blocks
paramat [Tue, 21 Apr 2015 11:09:32 +0000 (12:09 +0100)]
DecoSchematic: Fix missing trees in rough terrain
Move place_on check to before place_center_x/y/z displacement of p
Reduce displacement of p by place_center_x/y/z flags
to correctly position schematics
est31 [Wed, 22 Apr 2015 12:10:39 +0000 (14:10 +0200)]
Protocol 25: wstring -> string for custom access denial reasons
Also fix std::logic_error when server::DenyAccess() is used with only two arguments.
nerzhul [Wed, 22 Apr 2015 09:47:22 +0000 (11:47 +0200)]
Re-apply
972d17baea81ffe6d508b291ef97207a4822e1da...
but not rename the container. Approved-By est31
SmallJoker [Tue, 21 Apr 2015 17:54:14 +0000 (19:54 +0200)]
Fix crash on startup (Windows)
ShadowNinja [Tue, 21 Apr 2015 15:09:44 +0000 (11:09 -0400)]
Only lowercase project name at compile time
kwolekr [Tue, 21 Apr 2015 22:12:01 +0000 (18:12 -0400)]
Revert "m_active_object_messages is used like a queue. Use std::queue instead of std::list. Also rename to m_active_object_messages_queue"
This reverts commit
972d17baea81ffe6d508b291ef97207a4822e1da.
The commit being reverted was unauthorized. There had been no discussion,
review, or sign-off prior to submittal to upstream.
Loic Blot [Tue, 21 Apr 2015 21:26:34 +0000 (23:26 +0200)]
m_active_object_messages is used like a queue. Use std::queue instead of std::list. Also rename to m_active_object_messages_queue
ShadowNinja [Fri, 21 Nov 2014 16:32:01 +0000 (11:32 -0500)]
Add minetest.global_exists()
kwolekr [Tue, 21 Apr 2015 16:59:09 +0000 (12:59 -0400)]
Noise: Add noise unittests
Fix buffer size calculation for lacunarity < 1.0
Add guard against absurd noise parameters
ShadowNinja [Tue, 21 Apr 2015 02:56:29 +0000 (22:56 -0400)]
Fix sign-compare compiler warnings in mg_ore.cpp
ShadowNinja [Fri, 19 Sep 2014 19:41:28 +0000 (15:41 -0400)]
Fix mod store rating
kwolekr [Tue, 21 Apr 2015 00:25:33 +0000 (20:25 -0400)]
Ore: Add biomes parameter
kwolekr [Mon, 20 Apr 2015 05:35:41 +0000 (01:35 -0400)]
Fix build on OS X (Thanks neoascetic)
kwolekr [Mon, 20 Apr 2015 01:42:40 +0000 (21:42 -0400)]
Add 'persistence' alias for Lua noiseparams and validate more vector parameters
kwolekr [Mon, 20 Apr 2015 01:39:10 +0000 (21:39 -0400)]
Noise: Correct noise objects created with invalid dimensions
kwolekr [Sun, 19 Apr 2015 00:12:14 +0000 (20:12 -0400)]
Porting: Refactor initalizePaths()
Add support for Solaris and HP-UX
Search additional potential procfs locations for current executable
est31 [Sun, 19 Apr 2015 17:49:31 +0000 (19:49 +0200)]
Disable connection timeout for singleplayer and server tabs
In worlds with many mods we can easily reach timeout, waiting for the server to start.
paramat [Sun, 19 Apr 2015 02:37:55 +0000 (03:37 +0100)]
Biome API: Add biome-specific river water
obneq [Sun, 5 Apr 2015 20:02:01 +0000 (22:02 +0200)]
fix infinite spawners
kwolekr [Fri, 17 Apr 2015 22:39:18 +0000 (18:39 -0400)]
Schematics: Fix core.schematic_create()
SmallJoker [Thu, 9 Apr 2015 17:59:32 +0000 (19:59 +0200)]
10s timeout when connecting to server
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.
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
kwolekr [Fri, 17 Apr 2015 04:52:48 +0000 (00:52 -0400)]
Schematics: Remove referenced schematics from Decorations on clear
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.
kwolekr [Fri, 17 Apr 2015 03:37:50 +0000 (23:37 -0400)]
Biomes: Remove referenced biomes from Decorations on clear
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
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.
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.
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
paramat [Thu, 16 Apr 2015 05:16:54 +0000 (06:16 +0100)]
Mgv5: Fix above/below ground spawn when water level is altered
paramat [Thu, 16 Apr 2015 02:45:42 +0000 (03:45 +0100)]
Mgv5/v7: Add check for water for deciding biome node stability
paramat [Mon, 13 Apr 2015 21:48:03 +0000 (22:48 +0100)]
Defaultsettings: Add dungeons and jungles flags. Update conf.example
kwolekr [Sun, 12 Apr 2015 20:40:50 +0000 (16:40 -0400)]
Schematics: Reorganize (de)serialization and add Lua serialization API
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
ngosang [Thu, 26 Mar 2015 19:08:46 +0000 (20:08 +0100)]
Add Spanish comment translation to minetest.desktop
paramat [Sun, 12 Apr 2015 04:11:16 +0000 (05:11 +0100)]
Mgv6: Fix taiga, allow pine tree spawning on snowblocks
paramat [Thu, 2 Apr 2015 23:56:29 +0000 (00:56 +0100)]
Mgv6: Add optional snow biomes
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.
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
kwolekr [Wed, 8 Apr 2015 16:55:06 +0000 (12:55 -0400)]
Link against shlwapi.lib and unify linker input sources for Windows
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.
kwolekr [Wed, 8 Apr 2015 03:04:48 +0000 (23:04 -0400)]
Schematics: Prepend mod path to relative schematic filepaths
Loic Blot [Tue, 7 Apr 2015 12:28:36 +0000 (14:28 +0200)]
TOCLIENT_ACTIVE_OBJECT_MESSAGES: channel must be 1 for unreliable message
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.
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
est31 [Mon, 6 Apr 2015 22:11:10 +0000 (00:11 +0200)]
Make comments consistent with TOSERVER_INIT -> TOSERVER_INIT_LEGACY rename
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
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
Loic Blot [Sun, 5 Apr 2015 09:16:12 +0000 (11:16 +0200)]
craftdef.cpp: Return 0 after assert to make Clang happy
Loic Blot [Sun, 5 Apr 2015 09:13:30 +0000 (11:13 +0200)]
Fix uninitialized variabled in ConnectionEvent
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.
est31 [Sun, 5 Apr 2015 02:18:47 +0000 (04:18 +0200)]
Add reason to kicked log message and use present tense
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.
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
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
Aaron Suen [Thu, 2 Apr 2015 12:58:18 +0000 (08:58 -0400)]
Fix crash caused by null texture in GUI formspec/HUD.
SmallJoker [Wed, 1 Apr 2015 17:41:35 +0000 (19:41 +0200)]
Fix MSVC error caused by
ed10005
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
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
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
kwolekr [Wed, 1 Apr 2015 04:19:10 +0000 (00:19 -0400)]
Fix some minor details from
6d61375
Aaron Suen [Mon, 9 Mar 2015 13:32:11 +0000 (09:32 -0400)]
Clean scaling pre-filter for formspec/HUD.
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
kwolekr [Wed, 1 Apr 2015 03:30:44 +0000 (23:30 -0400)]
Fix set_bits
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
Craig Robbins [Tue, 31 Mar 2015 11:26:34 +0000 (21:26 +1000)]
Fix use of unitialized variable in gettext.cpp
#2583
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
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
Loic Blot [Tue, 31 Mar 2015 07:18:11 +0000 (09:18 +0200)]
Typo in getOutgoingSequenceNumber => successfull to successful
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.
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
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
Loic Blot [Mon, 30 Mar 2015 17:55:14 +0000 (19:55 +0200)]
Use Buffer not SharedBuffer in NetworkPacket::oldForgePacket
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)
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
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
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