RealBadAngel [Wed, 5 Aug 2015 20:52:32 +0000 (22:52 +0200)]
Fix tiling issues for PLANTLIKE and FIRELIKE with FSAA
paramat [Mon, 3 Aug 2015 03:34:11 +0000 (04:34 +0100)]
Cavegen V6: Make all caves consistent with 0.4.12 stable
When tunnels entirely above ground were avoided, the
missing pseudorandom calls changed the allowed caves.
Now, above ground tunnels are not placed while
still running all previous pseudorandom calls.
paramat [Sun, 2 Aug 2015 00:35:05 +0000 (01:35 +0100)]
Biome API: Make fallback biome stone and water, disable filler
Břetislav Štec [Sun, 2 Aug 2015 13:08:39 +0000 (15:08 +0200)]
src/util/numeric.{cpp,h}: Fix FacePositionCache data race
Miner59 [Sun, 5 Jul 2015 12:52:55 +0000 (14:52 +0200)]
Fix "bouncy" blocks
Before players "bounced" too high. Now, while still allowing to bounce, higher speed bounces are throttled.
Břetislav Štec [Sun, 2 Aug 2015 16:42:03 +0000 (18:42 +0200)]
src/client/tile.cpp: Fix reference counting
est31 [Sun, 2 Aug 2015 08:08:44 +0000 (10:08 +0200)]
Android: fix sound issue, and gitignore
Previously, sound failed due to errors with hardfp abi build
instructions. As the problem couldn't be found, the softfp
compatible abi was chosen instead.
This move will cause a small performance overhead, but due to the
abi being armeabi-v7a, the internal calculations will still be done
using the FPU.
We also fix some issues with ABI information passing. However, the
fixes aren't sufficient to get sound working.
The patch also fixes an issue with the gitignore file.
est31 [Sun, 2 Aug 2015 16:23:22 +0000 (18:23 +0200)]
Actually document what minetest.is_protected should do
rubenwardy [Mon, 13 Jul 2015 15:01:31 +0000 (16:01 +0100)]
Add map limit config option
Břetislav Štec [Sat, 1 Aug 2015 20:52:28 +0000 (22:52 +0200)]
Prepend "Lua: " before lua exceptions
src/server.cpp
src/emerge.cpp
Břetislav Štec [Sat, 1 Aug 2015 22:16:31 +0000 (00:16 +0200)]
src/wieldmesh.cpp: Fix mesh extrusion memory leak
Břetislav Štec [Sat, 1 Aug 2015 23:31:57 +0000 (01:31 +0200)]
src/client.cpp: Fix mapper memory leak
kwolekr [Sat, 1 Aug 2015 05:03:51 +0000 (01:03 -0400)]
Improve accuracy and safety of float serialization
Multiplying by a factor of 1/1000.f (rather than dividing by 1000.f) directly
introduces an error of 1 ULP. With this patch, an exact comparison of a
floating point literal with the deserialized F1000 form representing it is now
guaranteed to be successful.
In addition, the maxmium and minimum safely representible floating point
numbers are now well-defined as constants.
kwolekr [Sat, 1 Aug 2015 04:34:09 +0000 (00:34 -0400)]
Clean up util/serialization.{cpp,h} and add unit tests
Břetislav Štec [Sat, 1 Aug 2015 12:07:12 +0000 (14:07 +0200)]
src/environment.cpp: Fix NULL pointer dereference
Břetislav Štec [Sat, 1 Aug 2015 11:53:15 +0000 (13:53 +0200)]
src/network/connection.h: Fix race condition
est31 [Fri, 31 Jul 2015 14:38:36 +0000 (16:38 +0200)]
Android: Add githash header to spare rebuilds after new commits
Before, android_version.h got changed at every new commit. Now, we
only change it with new minetest releases. Analogous to how cmake
does it, we add an android_version_githash.h file that communicates
the git hash to C++ code.
Also, unify VERS_MAJOR, VERS_MINOR and VERS_PATCH variable
calculation inside the whole makefile.
kwolekr [Sat, 1 Aug 2015 03:29:51 +0000 (23:29 -0400)]
tests: Log exceptions thrown inside of unit tests
paramat [Fri, 31 Jul 2015 00:10:53 +0000 (01:10 +0100)]
Dungeon generation: Fix code style issues in dungeongen.cpp
est31 [Fri, 31 Jul 2015 03:52:34 +0000 (05:52 +0200)]
Android: speed up rebuild, and prevent race condition fail
Speeding up rebuild:
Before, we've written the android_version.h file at every rebuild.
As it thought the file's content has changed, make has rebuilt files
in the source tree that depended on that header file during rebuild,
causing lots of files being rebuilt without there being a reason.
The reasoning of make can be observed by passing -d and V=1 params
to the ndk-build command. You then got logging entries like:
Prerequisite `jni/src/android_version.h' is newer than target `obj/local/armeabi-v7a-hard/objs-debug/minetest/jni/src/areastore.o'.
Preventing race condition build fail:
Before, there was a race condition, where, if the prep_srcdir target
was executed in parallel with the $(ROOT)/jni/src/android_version.h
one, it could happen that the jni/src directory was nonexistent, and
we were trying to write into a file inside. This resulted in a build
failue:
/bin/sh: 1: cannot create [...]/jni/src/android_version.h: Directory nonexistent
Additionally, we now don't remove the link to src/ needlessly anymore.
Keeping this wouldn't have affected the rebuild, but this way its
more proper.
est31 [Fri, 31 Jul 2015 02:51:57 +0000 (04:51 +0200)]
Fix 0.4.11 githash for android
Also make only one >-redirection, sparing repetition.
Also, use cut instead of awk, which is shorter and should be a bit faster.
Loic Blot [Thu, 30 Jul 2015 21:14:05 +0000 (23:14 +0200)]
Small SendableMediaAnnouncement cleanup
-> Remove the SendableMediaAnnouncement struct
-> Forge the packet directly in the m_media loop, spare one loop and the construction of a vector
-> Use preincrement to spare iterator copies
est31 [Wed, 29 Jul 2015 09:54:27 +0000 (11:54 +0200)]
Android: fix horrible libiconv build
Before, our libiconv build was a joke. We first called configure for our own build host system,
then called make, before we executed a Android.mk script we provided as patch. The first "native make"
always failed, and the LIBICONV_LIB file setting in our Makefile didn't match the built one,
resulting in an always-rebuild of iconv.
This commit cleans up this total mess, removes the double-build, and the Android.mk, and properly calls
./configure with the according target platform, and uses a built toolchain.
As we have to deal with the android bug "NDK: Support for prebuild libs with full sonames"
https://code.google.com/p/android/issues/detail?id=55868
as the 2013 patch
https://lists.gnu.org/archive/html/libtool-patches/2013-06/msg00002.html
by Google's David Turner wasn't inside the 2011 libtool, we pass -avoid-version to
libtool.
Thanks to the proper build, wide_to_utf8 works for android now, removing us of the need to disable it.
est31 [Wed, 29 Jul 2015 13:22:51 +0000 (15:22 +0200)]
Android: Fix minor makefile bugs
Fix commenting happening thanks to missing quotes and dereference variable the right way,
to get rid of a compile error.
nerzhul [Wed, 29 Jul 2015 08:49:40 +0000 (10:49 +0200)]
Precalculate mapblock relative size. This permit to remove many s16 calculs on runtime
Břetislav Štec [Sat, 18 Jul 2015 23:35:47 +0000 (01:35 +0200)]
Fixed minimap memory leak
SmallJoker [Mon, 27 Jul 2015 09:53:19 +0000 (11:53 +0200)]
Extend CMake variable descriptions
est31 [Mon, 27 Jul 2015 05:44:48 +0000 (07:44 +0200)]
Fix srp.cpp:815 leak
Thanks @Zeno-
est31 [Sat, 11 Jul 2015 00:24:00 +0000 (02:24 +0200)]
Add AreaStore data structure
SmallJoker [Wed, 22 Jul 2015 08:11:34 +0000 (10:11 +0200)]
Fix MSVC number conversion warning
jeanpatrick.guerrero@gmail.com [Sat, 25 Jul 2015 10:40:01 +0000 (12:40 +0200)]
Fix FSAA dropdown option reset after changing another dropdown option
est31 [Sat, 25 Jul 2015 05:54:56 +0000 (07:54 +0200)]
Fix minetest.get_(all)_craft_recipe(s) regression
Since
03e0dd33a847a83d975282c6caf6b926306e7b57 the calls didn't return an output count
for the recipes.
Loic Blot [Sat, 25 Jul 2015 09:56:24 +0000 (11:56 +0200)]
Cleanup server addparticle(spawner) by merge two identical functions.
kilbith [Fri, 24 Jul 2015 19:21:24 +0000 (21:21 +0200)]
Remove drivers dropdown in the settings tab
est31 [Fri, 24 Jul 2015 21:11:19 +0000 (23:11 +0200)]
Fix documentation of dedicated_server_loop
est31 [Fri, 24 Jul 2015 19:38:40 +0000 (21:38 +0200)]
Check output of mpz_set_str and fix leak on error condition
Also add static identifier as upstream did
Loic Blot [Fri, 24 Jul 2015 19:03:50 +0000 (21:03 +0200)]
Remove some old dead code. Fix some Clang warnings in SRP (ng->N... will
always evaluate to true.
est31 [Fri, 24 Jul 2015 18:28:00 +0000 (20:28 +0200)]
Bump protocol to 26
This was needed due to the TileDef serialisation changes. Originally it has been planned
to also add utf-8 based chat to 26, but chat changes aren't final yet, so they are done
in one change, after the release, and not two small ones, causing us having to be compliant
to three versions of the packet.
Novatux [Fri, 24 Jul 2015 10:03:56 +0000 (12:03 +0200)]
Update my name
est31 [Fri, 17 Jul 2015 14:40:41 +0000 (16:40 +0200)]
Optional reconnect functionality
Enable the server to request the client to reconnect.
This can be done with the now extended minetest.request_shutdown([reason], [reconnect]) setting.
RealBadAngel [Thu, 23 Jul 2015 02:35:13 +0000 (04:35 +0200)]
Fix issues with light of attached CAOs
Robert Zenz [Tue, 21 Jul 2015 19:43:01 +0000 (21:43 +0200)]
Add note that chat messages can be marked as handled.
paramat [Wed, 22 Jul 2015 01:20:05 +0000 (02:20 +0100)]
Conf.example: Update mgv7 noise parameters
paramat [Wed, 15 Jul 2015 01:31:14 +0000 (02:31 +0100)]
Mgv7: Use density noise + density gradient for mountain terrain
Tune and optimise noise parameters
RealBadAngel [Tue, 21 Jul 2015 21:56:41 +0000 (23:56 +0200)]
Add wielded (and CAOs) shader
sfan5 [Tue, 21 Jul 2015 19:55:58 +0000 (21:55 +0200)]
Fix crash in mainmenu when loaded subgame does not have a "menu" directory
est31 [Tue, 21 Jul 2015 16:03:59 +0000 (18:03 +0200)]
Clarify docs for auth.cpp method
est31 [Tue, 21 Jul 2015 15:57:57 +0000 (17:57 +0200)]
Ask auth handler to create auth when a default password is set
-> Fix server crash with protocol >=25 if a default password is set.
-> Remove some useless and possibly confusion causing code for the TOCLIENT_FIRST_SRP packet handler
est31 [Tue, 21 Jul 2015 15:17:46 +0000 (17:17 +0200)]
Document game main menu image system
sfan5 [Sat, 18 Jul 2015 12:31:34 +0000 (14:31 +0200)]
Allow random menu images for subgames
Loic Blot [Mon, 20 Jul 2015 21:30:43 +0000 (23:30 +0200)]
Remove profiler.h include where it's not needed. Remove some unreachable and very old code
Elia Argentieri [Thu, 25 Jun 2015 12:57:10 +0000 (14:57 +0200)]
Added get_player_velocity() method. Fixes #1176
est31 [Sun, 19 Jul 2015 00:27:12 +0000 (02:27 +0200)]
MoveItemSomewhere double bugfix
-> Fix bug where MoveSomewhere from an infinite source would fill the destination inventory with copies of itself.
-> Fix bug where MoveSomewhere would needlessly call callbacks.
-> Remove trailing whitespaces
paramat [Sat, 18 Jul 2015 19:37:04 +0000 (20:37 +0100)]
Cavegen: Mgv6: No small caves entirely above ground
Mgv5/mgv7: Remove 'should make cave hole' feature
Remove ravine code
TeTpaAka [Sat, 18 Jul 2015 09:52:39 +0000 (11:52 +0200)]
Refactor particle code to remove the while loops
Replaces while loops with proper getfield calls
Rui [Sat, 11 Jul 2015 06:58:13 +0000 (15:58 +0900)]
Update toolchain_mingw64.cmake
Mark Schreiber [Sun, 28 Jun 2015 08:25:38 +0000 (01:25 -0700)]
Add antialiasing UI setting
The Irrlicht engine supports antialiasing, and Minetest already supports
saving an antialiasing setting in its configuration file. However,
Minetest lacked UI elements to set this setting, and previously the only
way to enable the feature was by hand-editing the configuration file.
Add a drop-down menu that can enable antialiasing.
Marcin [Thu, 25 Jun 2015 16:14:01 +0000 (18:14 +0200)]
Add ability to specify coordinates for /spawnentity
TeTpaAka [Mon, 22 Jun 2015 21:21:14 +0000 (23:21 +0200)]
Make acc and vel deprecated in add_particle and search for acceleration and velocity instead
The doc and the actual behaviour differed.
D Laboratory [Thu, 16 Jul 2015 07:15:29 +0000 (15:15 +0800)]
Fix a typo in comment of CMakeLists.txt
ExcaliburZero [Wed, 15 Jul 2015 17:21:27 +0000 (13:21 -0400)]
Change texture pack description file name
Change the name for texture pack description files from "info.txt" to "description.txt" in order to keep the naming consistent between description files for both mods and texture packs.
Also add backwards compatibility for texture packs that use "info.txt", and note in the log that "info.txt" is depreciated.
TeTpaAka [Fri, 3 Jul 2015 10:31:34 +0000 (12:31 +0200)]
Fix invisible player when the attached entity is removed
Kahrl [Fri, 17 Jul 2015 06:51:07 +0000 (08:51 +0200)]
Display an access denied message when client detects a server timeout
est31 [Fri, 17 Jul 2015 05:24:10 +0000 (07:24 +0200)]
Run updatepo.sh
Michal Čihař [Tue, 14 Jul 2015 14:48:28 +0000 (16:48 +0200)]
Translated using Weblate (Turkish)
Currently translated at 100.0% (269 of 269 strings)
Rui [Sat, 11 Jul 2015 11:46:56 +0000 (13:46 +0200)]
Translated using Weblate (Japanese)
Currently translated at 100.0% (264 of 264 strings)
sfan5 [Thu, 9 Jul 2015 13:56:35 +0000 (15:56 +0200)]
Translated using Weblate (Japanese)
Currently translated at 100.0% (264 of 264 strings)
Tae Lim Kook [Wed, 8 Jul 2015 21:31:00 +0000 (23:31 +0200)]
Translated using Weblate (Korean)
Currently translated at 1.7% (4 of 235 strings)
Tae Lim Kook [Wed, 8 Jul 2015 21:33:04 +0000 (23:33 +0200)]
Translated using Weblate (Japanese)
Currently translated at 100.0% (264 of 264 strings)
Jean-Patrick G [Wed, 8 Jul 2015 09:41:31 +0000 (11:41 +0200)]
Translated using Weblate (French)
Currently translated at 99.1% (233 of 235 strings)
Michal Čihař [Tue, 7 Jul 2015 12:43:59 +0000 (14:43 +0200)]
Translated using Weblate (Italian)
Currently translated at 82.5% (194 of 235 strings)
est31 [Fri, 17 Jul 2015 04:30:21 +0000 (06:30 +0200)]
Server kicks: make messages configurable, cache wstring
nerzhul [Thu, 16 Jul 2015 15:37:46 +0000 (17:37 +0200)]
Kick players when shutting down server and there is a crash due to a Lua stack exception
RealBadAngel [Thu, 16 Jul 2015 13:36:48 +0000 (15:36 +0200)]
Fix relief mapping issues
Kahrl [Tue, 14 Jul 2015 16:20:50 +0000 (18:20 +0200)]
Make serialization error message translatable
Also don't show "probably running a different version" message in simple singleplayer mode
Loic Blot [Tue, 14 Jul 2015 15:56:55 +0000 (17:56 +0200)]
connection.cpp: remove unused constructor
kwolekr [Tue, 14 Jul 2015 07:22:16 +0000 (03:22 -0400)]
Increase limit of serialized long strings
kwolekr [Tue, 14 Jul 2015 03:29:29 +0000 (23:29 -0400)]
Remove raw message output on AOM deserialization failure
Improve TOCLIENT_ACTIVE_OBJECT_MESSAGES robustness for handling invalid data
kwolekr [Sat, 11 Jul 2015 21:48:05 +0000 (17:48 -0400)]
Add more robust error checking to deSerialize*String routines
Add serializeHexString()
Clean up util/serialize.cpp
paramat [Mon, 13 Jul 2015 19:25:22 +0000 (20:25 +0100)]
Minimal: Remove recently added unnecessary nodes
Fix 'is ground content' for some nodes
paramat [Mon, 13 Jul 2015 00:17:54 +0000 (01:17 +0100)]
Mgv6/treegen: (Re)Add fallback nodes for compatibility with subgames
jp [Sat, 4 Jul 2015 15:53:00 +0000 (17:53 +0200)]
Fix remnant bugs on mainmenu
- Stop attempting to start a world when no world's created/selected in server tab
- Better world's indexes handling between subgames lists
kwolekr [Fri, 10 Jul 2015 19:58:32 +0000 (15:58 -0400)]
Fix damage flash when damage disabled
kwolekr [Wed, 8 Jul 2015 15:53:02 +0000 (11:53 -0400)]
Misc. minor fixes
Loic Blot [Fri, 10 Jul 2015 17:04:05 +0000 (19:04 +0200)]
Little coding style fix on porting.h
est31 [Thu, 9 Jul 2015 06:23:08 +0000 (08:23 +0200)]
Settings: pass name to callbacks by reference
Spare some copies.
est31 [Thu, 9 Jul 2015 06:07:59 +0000 (08:07 +0200)]
Update clouds enable_3d_clouds when setting changed
Diego Martinez [Wed, 8 Jul 2015 19:18:11 +0000 (16:18 -0300)]
Windows: Fix some warnings.
paramat [Wed, 8 Jul 2015 19:01:29 +0000 (20:01 +0100)]
Biome API decorations: 'spawnby' searches a 3D neighbourhood
The neighbours checked are the 8 nodes horizontally surrounding the decoration base
and the 8 nodes horizontally surrounding the ground node below the decoration
RealBadAngel [Wed, 8 Jul 2015 09:20:07 +0000 (11:20 +0200)]
Add new leaves style - simple (glasslike drawtype)
est31 [Tue, 7 Jul 2015 03:55:07 +0000 (05:55 +0200)]
Use UTF-8 instead of narrow
Use wide_to_utf8 and utf8_to_wide instead of wide_to_narrow and narrow_to_wide at almost all places.
Only exceptions: test functions for narrow conversion, and chat, which is done in a separate commit.
kwolekr [Wed, 8 Jul 2015 04:45:24 +0000 (00:45 -0400)]
Clean-up Minimap code
- Fixed race conditions
- Fixed null dereference
- Fixed out-of-bounds array access
- MinimapMapblock is now allocated and added to update queue only when enabled
- Removed dependency on LocalPlayer
- Fixed code style
- Simplified expressions and program logic
- Cleaned minimap object interfaces
paramat [Sat, 4 Jul 2015 23:56:31 +0000 (00:56 +0100)]
Mgv7: Auto-set lowest mountain generation level
Lowest level of base terrain determines mountain generation in mapchunk
Change some positional function arguments from int to s16
est31 [Sun, 5 Jul 2015 19:05:07 +0000 (21:05 +0200)]
Client: better m_proto_ver initialisation
Previously, m_proto_ver was set to the serialisation version
inside the legacy init packet.
Now, if the server doesn't send a protocol version (protocols < 25),
we set m_proto_ver to some value < 25 and > 0.
ShadowNinja [Sat, 4 Jul 2015 22:53:38 +0000 (00:53 +0200)]
Use minetest logging facilities for irrlicht log output
paramat [Fri, 3 Jul 2015 21:47:31 +0000 (22:47 +0100)]
Mgv7: Lower base of mountain generation to -112 and define constant
est31 [Sat, 4 Jul 2015 17:43:46 +0000 (19:43 +0200)]
Fix endless loop since grandparent commit
jeanpatrick.guerrero@gmail.com [Sat, 4 Jul 2015 13:08:32 +0000 (15:08 +0200)]
Fix attempt to start a world when no world is selected/created
est31 [Sat, 4 Jul 2015 14:21:37 +0000 (16:21 +0200)]
Craftdef: Use numbers instead of iterators
Use numbers instead of iterators to traverse various vectors.
TeTpaAka [Sat, 4 Jul 2015 09:28:09 +0000 (11:28 +0200)]
Fix missing check for 0 in craft replacements