6374 Commits

Author SHA1 Message Date
Loïc Blot
f22f819df0 Travis: Build server too for UNIX 2017-01-04 15:13:17 +01:00
Lars Hofhansl
3af2a959cf Pull occlusion check out of loop, and minor code cleanups. 2017-01-03 08:14:58 +01:00
Thomas--S
9685b33bd3 Fix display gamma documentation
Overlooked in #4873
2017-01-02 21:42:50 +00:00
sfan5
c68d446afa Add 2D sheet animation for nodes 2017-01-02 15:28:06 +01:00
Luke Puchner-Hardman
c83a1e6c5f Added "[sheet" to the texture special commands.
"[sheet:WxH:X,Y" assumes the base image is a tilesheet with W*H tiles
on it and crops to the tile at position X,Y.  Basically it works
like "[verticalframe" but in 2D.

For testing, I combined the four default_chest images into one.
2017-01-02 15:28:06 +01:00
sfan5
779eb70e7e Move TileAnimation code to seperate file 2017-01-02 15:28:06 +01:00
Loic Blot
a4f455f428 Fix non reverted change on TOSERVER_BREATH compat 2017-01-01 23:57:37 +01:00
Loic Blot
295d6102c0 Breath cheat fix: server side
Breath is now handled server side. Changing this behaviour required some modifications to core:

* Ignore TOSERVER_BREATH package, marking it as obsolete
* Clients doesn't send the breath to server anymore
* Use PlayerSAO pointer instead of peer_id in Server::SendPlayerBreath to prevent a useless lookup (little perf gain)
* drop a useless static_cast in emergePlayer
2017-01-01 23:11:26 +01:00
Dorian Wouters
6ba3df87e2 Fix /grant & /revoke not working with custom auth handler (#4974)
core.auth_table is not supposed to be accessed directly.
2016-12-31 18:12:26 +01:00
sfan5
78e9ce1587 Fix interact range check (thanks to @lhofhansl) 2016-12-29 19:35:22 +01:00
Rogier-5
bd864de335 Use the outgoing split sequence number for every outgoing packet (#4864)
(instead of the last incoming sequence number...)

Fixes #4848
2016-12-29 13:44:47 +01:00
sfan5
17c247e432 Buildbot: Update Gettext version (#4971) 2016-12-29 13:17:24 +01:00
Auke Kok
a76bf415a3 Redo light.cpp.
Remake the light_decode_table.

The table starts out without pre-filled in values since those
are always discarded by the code apparently. We calculate a
pseudo curve with gamma power function, and then apply a new
adjustment table.

The adjustment table is setup to make the default gamma of 2.2
look decent: not too dark at light level 3 or so, but too dark
at 1 and below to be playable. The curve is much smoother than
before and looks reasonable at the whole range, offering a
pleasant decay of light levels away from lights.

The `display_gamma` setting now actually does something logical:
the game is darker at values below 2.2, and brighter at values
above 2.2. At 3.0, the game is very bright, but still has a good
light scale. At 1.1 or so, the bottom 5 light levels are virtually
black, but you can still see enough detail at light levels 7-8,
so the range and spread is adequate.

I must add that my monitor is somewhat dark to begin with, since
I have a `hc` screen that doesn't dynamic range colors or try to
pull up `black` pixels for me (it is tuned for accurate color and
light levels), so this should look even better on more dynamic
display tunings.
2016-12-28 14:16:39 -08:00
adrido
a0d2cea433 Dont compare short with bool (#4963)
Fixes a compiler warning on MSVC
2016-12-28 21:22:01 +01:00
sfan5
a3448cca81 Irrlicht 1.9 support 2016-12-26 22:36:22 +01:00
sfan5
e171949b92 Various anticheat improvements
* Calculate maximum interact distance from wielded tool
* New "interacted_while_dead" cheat_type for the Lua API
* Disallow dropping items while dead
* Move player to spawn before resurrecting them
2016-12-26 22:34:29 +01:00
Ner'zhul
52a4b7d72e Add gradle wrapper (#4954)
Gradle wrapper permit to use multiple gradle versions across OS versions
2016-12-24 12:30:18 +01:00
rubenwardy
4c57f7b440 Update Android build tools to latest version (#4872) 2016-12-24 08:34:19 +01:00
Rogier
18bdc18f75 Move PP() and PP2() macros to basic_macros.h
Instead of redefining them everywhere.
2016-12-24 00:32:50 +00:00
Lars Hofhansl
117a7ec57a Process ABMs in a spherical volume instead of cubic
Increase active_block_range default to a 3 mapblock radius.
2016-12-24 00:28:39 +00:00
Lars Hofhansl
587e4b23f2 Shaders: Remove unnecessary 'if' statements
Pull if GENERATE_NORMALMAPS == 1 into the template to avoid evaluating
it for each fragment.
Remove if (fogDistance != 0.0).
2016-12-24 00:22:16 +00:00
Rogier
7bf89e4b5b Make minetest abort on lua panic
Currently, lua does a regular exit() after a lua panic, which can make
a problem hard to debug. Invoking FATAL_ERROR() instead will print
some useful information, and abort() minetest, so that a debugger can
be used to analyze the situation.
2016-12-24 00:18:45 +00:00
sfan5
72415a324b Continue with 0.4.15-dev 2016-12-22 23:14:17 +01:00
sfan5
4e2d145369 Bump version to 0.4.15 2016-12-22 23:14:17 +01:00
Craig Robbins
46b7aa1bc0 Final update to credits before release 2016-12-22 23:14:17 +01:00
Nikolay
b5231f7ab4 Translated using Weblate (Russian)
Currently translated at 59.2% (544 of 918 strings)
2016-12-22 23:14:16 +01:00
Cold Meson 06
e83f3939ec Translated using Weblate (Portuguese (Brazil))
Currently translated at 99.5% (914 of 918 strings)
2016-12-22 23:14:15 +01:00
Bruno Borges
33b5c84619 Translated using Weblate (Portuguese (Brazil))
Currently translated at 94.8% (871 of 918 strings)
2016-12-22 23:14:14 +01:00
Cold Meson 06
0fcc1079bc Translated using Weblate (Portuguese (Brazil))
Currently translated at 84.5% (776 of 918 strings)
2016-12-22 23:14:13 +01:00
Rogier
20affed23a Translated using Weblate (Dutch)
Currently translated at 85.2% (783 of 918 strings)
2016-12-22 23:14:12 +01:00
Wuzzy
486978b545 Translated using Weblate (German)
Currently translated at 100.0% (918 of 918 strings)
2016-12-22 23:14:09 +01:00
sfan5
f489ae7997 Android: Workarounds for Googles completely broken NDK 2016-12-22 22:17:54 +01:00
est31
9c1da08f3b Android: update curl and libgmp 2016-12-21 14:36:14 +01:00
paramat
4471a7f75a Builtin/../falling.lua: Avoid crash when object pos over limit
If the object pos is over limit, 'add entity' will not add an entity,
causing 'obj' to be nil.
2016-12-21 13:30:10 +00:00
est31
4e839d3434 Don't ship with broken languages (#4940) 2016-12-21 14:15:48 +01:00
sfan5
dd06993733 Disable mod security by default (closes #4944) 2016-12-21 14:13:10 +01:00
sfan5
cca7feaa6c Fix warning reported by clang (possible bug in Settings lua api) 2016-12-21 10:20:06 +01:00
sfan5
51e9f4fb87 Correct Swahili translations (#4939) 2016-12-21 06:37:25 +01:00
sfan5
5d6a716bd0 Limit drawing rect of selected item to viewport size (fixes #4341) 2016-12-20 14:29:12 +01:00
ShadowNinja
43c24df7e7 Security: Fix resolving of some relative paths
Trying to resolve a path with RemoveRelativePathComponents that can't
be resolved without leaving leading parent components (e.g. "../worlds/foo"
or "bar/../../worlds/foo") will fail.  To work around this, we leave
the relative components and simply remove the trailing components one
at a time, and bail out when we find a parent component.  This will
still fail for paths like "worlds/foo/noexist/../auth.txt" (the path
before the last parent component must not exist), but this is fine
since you won't be able to open a file with a path like that anyways
(the O.S. will determine that the path doesn't exist.
Try `cat /a/../etc/passwd`).
2016-12-20 17:17:38 +10:00
ShadowNinja
835cc3f27f Fix RemoveRelatvePathComponents
This used to return "/foo" for "../foo" when it should return the enpty
string (i.e., error removing all relative components).
2016-12-20 17:17:38 +10:00
ShadowNinja
79c3da8546 Mod security: Allow read-only access to all mod paths 2016-12-20 06:34:04 +00:00
lhofhansl
0d793a3fe9 Fix occlusion culling, again (#4930) 2016-12-19 06:43:04 +01:00
lhofhansl
5f3354d634 Fix occlusing counting (#4922) 2016-12-18 22:25:42 +10:00
Dániel Juhász
675911971a Fix unnecessary block loading (#4847)
This commit makes the game load blocks only if they are not in the
memory.
2016-12-18 19:20:23 +10:00
Auke Kok
9014f4ff5a Mapgen: Make mgv7 the default in UI
The actual menu default comes from defaultsettings.cpp.
2016-12-16 12:31:38 +00:00
est31
5d2d426c20 Fix build with gettext enabled 2016-12-14 19:52:33 +01:00
paramat
261b30cbd0 Cavegen: Wider tunnels in mgflat, mgfractal, mgvalleys
As mgv7 is now the default mapgen i re-checked its tunnel width on request,
discovered they needed to be wider, and have made this change.
This commit widens the identical 3D noise tunnels in the other mapgens in
exactly the same way.
2016-12-14 06:28:45 +00:00
est31
dc946f583d Run updatepo.sh 2016-12-14 00:31:12 +01:00
est31
44c617daae Update minetest.conf.example and settings_translation_file.cpp 2016-12-14 00:30:39 +01:00