7616 Commits

Author SHA1 Message Date
Dániel Juhász
703c121576 Use node lighting for liquid spreading
This commit modifies the liquid transforming procedure to light and
unlight nodes instead of whole map blocks.
2016-10-27 08:04:42 +02:00
Dániel Juhász
7f8545d2d7 Improved lighting
This commit rewrites the procedure that is responsible for light
updating.

this commit
-provides iterative solutions for unlighting and light spreading
-introduces a new priority queue-like container for the iteration
-creates per-node MapBlock caching to reduce retrieving MapBlocks from
the map
-calculates with map block positions and in-block relative node
coordinates
-skips light updating if it is not necessary since the node's new light
will be the same as its old light was
2016-10-27 08:04:42 +02:00
raymoo
48aead7d1e Document item use callbacks (#4668) 2016-10-27 13:24:34 +10:00
lhofhansl
ab2315af66 Shaders: Remove special handling for liquids. (#4670) 2016-10-26 16:24:45 +02:00
Foghrye4
94eeb7ff8a Adding LuaError on attempt to assign vectors with values out of range 2016-10-25 21:10:51 +02:00
Gael-de-Sailly
df8f958a12 ParticleSpawner: fix offset being added twice 2016-10-25 20:39:39 +02:00
adrido
d4d26da258 Windows: dont link to libraries that are already linked by cmake
This solves the problem whith building where build fails if the libaries have different names.
2016-10-25 13:54:24 +02:00
Lars Hofhansl
a1458f75a4 Shaders: Apply tone mapping before fog calculation. 2016-10-25 07:49:19 +02:00
Maksim Gamarnik
0f0455ab07 Update Android, remove content_cso 2016-10-24 18:26:32 +03:00
Lars Hofhansl
b1a5c9fe3a Shaders: Harmonize Irrlicht and shader fog calculations 2016-10-24 07:41:00 +01:00
paramat
00a733ac21 Lua_api.txt: Clarify 'override_meta' bool in 'set mapgen setting' 2016-10-21 05:49:06 +01:00
paramat
d92cbb2fed Damage flash: Reduce maximum alpha. Avoid fade overload
Flash alpha maximum is reduced from 180 to 127 to avoid player blindness
in combat. Flash alpha minimum is unchanged.
The 'damage_flash' value is now limited to max alpha, to avoid multiple
hits creating a huge value that causes flash to stay at maximum alpha
for a long period. Now alpha always starts to fade immediately after
taking damage.
Both problems can be seen in Minetest let's play videos.
Simplify and optimise some code.
2016-10-21 05:48:53 +01:00
ubulem
91e89fb7d3 Actualize java part 2016-10-20 15:56:05 +03:00
paramat
000a472226 Changes to static object storage limit and error message
Move static object storage force-delete message from errorstream to
warningstream.
Increase 'max objects per block' setting to 64.
Add missing spaces in warning code.
2016-10-20 03:40:47 +01:00
red-001
aec348315e Chat commands: Trim whitespaces from input of /privs command 2016-10-20 03:39:03 +01:00
Foghrye4
e2b3b4ba07 Fix crash on attaching player to entity
Rename "refresh" to "processInitData"
2016-10-19 08:40:43 +02:00
Maksim Gamarnik
ba6a27e137 Fix mo create 2016-10-19 05:47:03 +03:00
Maksim Gamarnik
3d8d605f52 Run updatepo.sh (Part1) 2016-10-19 05:44:59 +03:00
Maksim Gamarnik
efd6e64b79 Disable Public server on Android, upd background 2016-10-19 04:02:50 +03:00
sfan5
7dac6b4a99 Fix APK build Part2 (#35)
* Fix asset collection

* Split assets into three seperate .zip files
2016-10-19 03:30:18 +03:00
sfan5
27e269a90a Ensure leveldb is always used as default backend (#36) 2016-10-19 03:20:03 +03:00
Maksim Gamarnik
f3e968bb90 Fix APK build Part1 2016-10-19 03:14:10 +03:00
sfan5
ba9bd4246e Fix irrlicht patch (#34) 2016-10-19 02:40:50 +03:00
sfan5
e144f9d97d Android intl (#31)
* Add libintl-lite to Android build

* Build and install .mo files on Android

* Compile with libintl on Android

* Make gettext actually function on Android

* Autodetect language on Android

* Fix small bug in asset collection
2016-10-19 02:18:23 +03:00
sfan5
7ec5c178ea Only send middle click event on release when not double-tapping (Android) (#32)
This prevents accidentally punching entities or picking up items when moving.
2016-10-19 02:18:10 +03:00
Maksim Gamarnik
2ced43eec8 Android: Fix build. Change progress bar size, android tune 2016-10-18 01:15:14 +03:00
sfan5
0f961ff931 LevelDB as default & automatic migration (#30)
* Automatic migration to LevelDB backend (only on Android by default)

* Use LevelDB as default backend
2016-10-17 23:33:21 +03:00
sfan5
41e5c12351 Allow picking up items with a single touch (#29)
* Allow handling middle click events

* Send middle click events when touch starts (Android)

* Punch objects when middle clicking (Touch only, combination with previous change)
2016-10-17 23:32:52 +03:00
rubenwardy
bb94e62525 Builtin: Add vector.floor helper function 2016-10-17 22:03:49 +02:00
Lars Hofhansl
52d84098e8 Revert changes to toggleNoClip and toggleFreeMove 2016-10-17 20:26:48 +02:00
Lars Hofhansl
7a7cc16e2a Don't use day light sky unless noclip and free_move are enabled 2016-10-17 20:26:48 +02:00
Maksim Gamarnik
42c41bf971 Merge pull request #28 from sfan5/pull1
Allow looking around while digging
2016-10-17 00:58:34 +03:00
sfan5
d80febd9ec Allow looking around while digging (Android with touchtarget=false)
Due to the check for m_move_sent_as_mouse_event, which is used
to distinguish between input for camera movement and input for
node selection, the shootline code was being executed despite
the result not being used with touchtarget=false.
2016-10-16 23:56:59 +02:00
Maksim Gamarnik
9b82bf2da6 Back LevelDB 2016-10-17 00:42:56 +03:00
Maksim Gamarnik
7c95e0c518 Update mini-gmp to 6.1.1 2016-10-16 22:27:21 +03:00
Maksim Gamarnik
6e6f3fedfc ver. 1.1.6 2016-10-16 22:23:15 +03:00
ShadowNinja
94b39ce44f Enable mod security by default 2016-10-16 01:14:54 +01:00
red-001
d4b87e9607 Builtin/../chatcommands: Add /grantme command 2016-10-16 01:13:50 +01:00
Rogier
afaa228dbf Emergeblocks: Fix occasional crash
Modification of the emergeblocks internal state was not protected
by a lock, causing a race condition.
This can be reproduced by repeatedly running emergeblocks for an
already-generated section of the map (with multiple emerge threads).
2016-10-16 01:13:16 +01:00
Tim
eb00be3703 Travis: Only trigger a compile, when C/C++ related files were touched (#4284) 2016-10-15 17:59:23 +02:00
sfan5
8b98a7dee9 Make documentation about ItemStack:set_{name,count,wear} clearer
These methods do not actually fail but instead clear the item stack
	and return false if a value like e.g. "" is passed.
2016-10-15 12:42:59 +02:00
tenplus1
a3a7538a92 Builtin/../falling.lua: Code optimisation 2016-10-14 02:12:32 +01:00
Lars Hofhansl
921e88f1c3 Use range-based fog instead of z-plane based. 2016-10-13 23:30:15 +02:00
raymoo
6e0388ece4 Attached particle spawners 2016-10-13 17:33:16 +02:00
sfan5
49e0ab9493 Don't use unordered maps for ProfilerGraph (fixes flickering) 2016-10-12 18:42:18 +02:00
red-001
25426f9156 Add a button for disabling all mods to world config. (#3900) 2016-10-12 03:11:38 +10:00
SmallJoker
d4fc6c3dc7 Add missing languages to the settings 2016-10-11 07:32:47 +02:00
Rogier
1c0df840f7 Disable cmake message concerning WIN32 on non-windows systems 2016-10-11 07:29:04 +02:00
Loic Blot
ef7735ab3a A little cleanup since previous commit 2016-10-09 16:31:43 +02:00
Loic Blot
94cfb9ae7c Environment cleanup
* Move client list to ServerEnvironment and use RemotePlayer members instead of Player
* ClientEnvironment only use setLocalPlayer to specify the current player
* Remove ClientEnvironment dead code on player list (in fact other players are CAO not Player objects)
* Drop LocalPlayer::getPlayer(xxx) functions which aren't used.
* Improve a little bit performance by using const ref list for ClientEnvironment::getPlayerNames() & Client::getConnectedPlayerNames()
* Drop isLocal() function from (Local)Player which is not needed anymore because of previous changes

This change permits to cleanup shared client list which is very old code.
ClientEnvironment doesn't use player list anymore, it only contains the local player, as addPlayer is only called from Client constructor client side.
Clients are only CAO on client side, this cleanup permit to remove confusion about player list.
2016-10-09 15:17:10 +02:00