Commit Graph

6544 Commits

Author SHA1 Message Date
ubulem e48a6e0b7a Actualize java part 2016-10-20 15:56:05 +03:00
paramat 63a3bb229a 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 c7d569b863 Chat commands: Trim whitespaces from input of `/privs` command 2016-10-20 03:39:03 +01:00
Foghrye4 91250c1078 Fix crash on attaching player to entity
Rename "refresh" to "processInitData"
2016-10-19 08:40:43 +02:00
Maksim Gamarnik b30cbda468 Fix mo create 2016-10-19 05:47:03 +03:00
Maksim Gamarnik 2fc7468f78 Run updatepo.sh (Part1) 2016-10-19 05:44:59 +03:00
Maksim Gamarnik 90f8832103 Disable Public server on Android, upd background 2016-10-19 04:02:50 +03:00
sfan5 5e24e2bd73 Fix APK build Part2 (#35)
* Fix asset collection

* Split assets into three seperate .zip files
2016-10-19 03:30:18 +03:00
sfan5 7cb75e7299 Ensure leveldb is always used as default backend (#36) 2016-10-19 03:20:03 +03:00
Maksim Gamarnik 4782ad207a Fix APK build Part1 2016-10-19 03:14:10 +03:00
sfan5 c9f51e805c Fix irrlicht patch (#34) 2016-10-19 02:40:50 +03:00
sfan5 949ac5a7ed 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 3f7549abeb 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 7d466a9e4b Android: Fix build. Change progress bar size, android tune 2016-10-18 01:15:14 +03:00
sfan5 7ced0e5b81 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 b33e6dbcad 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 0d740c5d82 Builtin: Add vector.floor helper function 2016-10-17 22:03:49 +02:00
Lars Hofhansl a291cd6132 Revert changes to toggleNoClip and toggleFreeMove 2016-10-17 20:26:48 +02:00
Lars Hofhansl 3253b6bd22 Don't use day light sky unless noclip and free_move are enabled 2016-10-17 20:26:48 +02:00
Maksim Gamarnik 5957cd3ca1 Merge pull request #28 from sfan5/pull1
Allow looking around while digging
2016-10-17 00:58:34 +03:00
sfan5 3670de4c0c 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 f6322dcc0b Back LevelDB 2016-10-17 00:42:56 +03:00
Maksim Gamarnik 4cec845b2c Update mini-gmp to 6.1.1 2016-10-16 22:27:21 +03:00
Maksim Gamarnik de3ea028b3 ver. 1.1.6 2016-10-16 22:23:15 +03:00
ShadowNinja 2ff054d041 Enable mod security by default 2016-10-16 01:14:54 +01:00
red-001 c31e354342 Builtin/../chatcommands: Add /grantme command 2016-10-16 01:13:50 +01:00
Rogier 4b17105dc4 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 adad6e0a1c Travis: Only trigger a compile, when C/C++ related files were touched (#4284) 2016-10-15 17:59:23 +02:00
sfan5 9a3129da5e 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 a468acce2c Builtin/../falling.lua: Code optimisation 2016-10-14 02:12:32 +01:00
Lars Hofhansl 0ad40fd484 Use range-based fog instead of z-plane based. 2016-10-13 23:30:15 +02:00
raymoo c9e7a27eeb Attached particle spawners 2016-10-13 17:33:16 +02:00
sfan5 0b27a70b29 Don't use unordered maps for ProfilerGraph (fixes flickering) 2016-10-12 18:42:18 +02:00
red-001 4f684b589d Add a button for disabling all mods to world config. (#3900) 2016-10-12 03:11:38 +10:00
SmallJoker b6569f1c69 Add missing languages to the settings 2016-10-11 07:32:47 +02:00
Rogier a4a9ee94f3 Disable cmake message concerning WIN32 on non-windows systems 2016-10-11 07:29:04 +02:00
Loic Blot 1b450861f0 A little cleanup since previous commit 2016-10-09 16:31:43 +02:00
Loic Blot 70f104be07 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
Rui b3fc133442 Remove unused parameter of GUIVolumeChange 2016-10-09 10:35:51 +02:00
Loic Blot 569b89b36f Move RemotePlayer code to its own cpp/header 2016-10-08 22:27:44 +02:00
Loic Blot 7bbd716426 RemotePlayer/LocalPlayer Player base class proper separation (code cleanup) (patch 3 of X)
* remove IGameDef from Player class, only LocalPlayer has it now
* move many attributes/functions only used by LocalPlayer from Player to LocalPlayer
* move many attributes/functions only used by RemotePlayer from Player to RemotePlayer
* make some functions const
* hudGetHotbarSelectedImage now returns const ref
* RemotePlayer getHotbarSelectedImage now returns const ref
* various code style fixes
2016-10-08 22:27:44 +02:00
Loic Blot edba6e50d9 Optimize ClientIface::getPlayerNames(): return const ref instead a copy of all names 2016-10-08 22:27:44 +02:00
Loic Blot fd5a130b86 More code cleanup (UNORDERED + RemotePlayer/LocalPlayer)
* ClientEnvironment now uses UNORDERED MAP for active objects
* Use RemotePlayer and LocalPlayer everywhere it's possible
* Minor code style fixes
* Drop Client::getBreath() unused function
2016-10-08 22:27:44 +02:00
rubenwardy 067766eec2 Fix backwards compatibility issue introduced by close_on_enter 2016-10-08 18:58:28 +02:00
SmallJoker 0baea8c25c Ensure std::unordered_ be used on MSVC 2010 too (#4600) 2016-10-09 00:25:34 +10:00
Loic Blot 656faf7373 Player/LocalPlayer/RemotePlayer inheritance cleanup (part 2 on X)
* Server/Client Environments now have an helper to cast Player object in the right type to use it
* Server: use RemotePlayer everywhere and remove previous added casts
* Client: use LocalPlayer where needed
* Environment: remove unused functions (getPlayers(), getRandomConnectedPlayer(), getNearestConnectedPlayer())
2016-10-08 15:57:50 +02:00
gregorycu 9393e4a0a8 Speed up emerge thread by using unordered map in a few places. Looking at 25% speedup in Emerge thread on Just Test. 2016-10-08 15:57:36 +02:00
gregorycu 3de9ae4e60 Ensure std::unordered_ will be used on supported MSVC compilers 2016-10-08 15:05:36 +02:00
Foghrye4 ad163ee5c3 Prevent attached models from disappearing during parent reload (#4128) 2016-10-08 14:51:25 +02:00
HybridDog 9978d0796f VoxelArea: faster iter function (#4490) 2016-10-08 22:42:17 +10:00