4820 Commits

Author SHA1 Message Date
rubenwardy
f5e3b9b8cf Update to new ContentDB API 2019-02-16 14:47:39 +13:00
rubenwardy
dde2b3ecf3 Add screenshots to online content browser 2019-02-16 14:47:31 +13:00
rubenwardy
e97d523645 Add updating to online content browser 2019-02-16 14:47:22 +13:00
rubenwardy
ebfd6a61d3 Add online content repository
Replaces mods and texture pack tabs with a single content tab
2019-02-16 14:46:21 +13:00
adelcoding1
fd38beb656 FormSpec : Add an auto vertical scrollbar to the textarea 2019-02-16 14:10:45 +13:00
Andrew Ward
ea46add1f6 Load dependencies and description from mod.conf 2019-02-16 14:00:56 +13:00
Elijah Duffy
a1732e814a Remove remaining modstore code (#6120) 2019-02-16 13:57:36 +13:00
Loïc Blot
091853c813 Implement minetest.register_can_bypass_userlimit (#6369)
* Implement minetest.register_on_userlimit_check

This new callback permits to bypass the max_users parameter with new mods condition, based on player name or IP
Only one mod needs to permit it.

Move core part for builtin privileges checks to builtin
2019-02-16 13:38:47 +13:00
random-geek
693f340e39 Fix coloured fog in main menu (#8181)
Fixes #4727. The issue was due to the video driver fog colour never getting reset after closing the game.
2019-02-16 13:21:22 +13:00
rubenwardy
cc13df9f3e Fix extract zip writing lowercase files (#8221) 2019-02-15 12:04:32 +13:00
HybridDog
cace65670c Add minetest.load_area (#8023) 2019-02-12 19:52:25 +13:00
SmallJoker
ac96505a73 Autojump: Disable in fly mode, support continuous forward (#8200)
Correctly disable in fly mode (issue #8199)
Also autojump in continuous forward mode (issue #8201)
2019-02-12 19:45:22 +13:00
Ben Deutsch
4a58af58a7 Client-side autojump. Remove Android-only stepheight autojump (#7228)
Works by detecting a collision while moving forward and then
simulating a jump. If the simulated jump is more successful,
an artificial jump key press is injected in the client.

Includes setting and key change GUI element for enabling and
disabling this feature.
2019-02-12 19:38:38 +13:00
luk3yx
539fb29c09 Fix another compilation error 2019-02-11 13:24:32 +13:00
SmallJoker
5efbcf9c76 Slippery: Do not apply when swimming (#8198) 2019-02-11 13:21:22 +13:00
SmallJoker
920ccfe9c2 Slippery: Simplify, make more efficient (#7086)
Use already existing collision results for the nearest colliding node
Fix slippery effect in free_move mode
2019-02-11 13:21:16 +13:00
Ben Deutsch
5181fb9b2c Alternative code for slipping (#6256)
* Alternative code for slipping

- does not depend on frame rate
- controllable via environment variables for now

* Adjust slipping speed for item entities too.

* Final version of framerate-independent slippery code

* Remove dead code and fix formatting

* getStandingNodePos should only look 0.05 nodes downwards

This ensures that, even if the player is standing on a partially
filled node, this node is used as the standing node and not the
node below it.

Specific use: enables slippery slabs

* Exchange global getStandingPosNode change for local inline change

Reverts previous commit

* Revert the item movement changes

* Slippery nodes now slip over cliffs and edges

Players no longer suddenly stop before falling off.
Also refactored slippery code into getSlipFactor method.

* Slipping over an edge gated by player's is_slipping state

A new flag for just this case, to reduce costly node lookups in
the normal case of leaning over a non-slippery edge.
Public access for consistency and potential future uses.

* Minor code tweaks / cosmetics

* Add temp variable to improve readability and fix indentation issues
2019-02-11 13:18:25 +13:00
Wuzzy
9d11e843a9 Add slippery group for nodes (players/items slide) 2019-02-11 13:14:03 +13:00
Ben Deutsch
5a459282f9 Safe digging and placing (#6127)
* Setting: Safe digging and placing

* New setting 'safe_dig_and_place' under Controls
* If set, digging and placing will not auto-repeat
* Releasing buttons unblocks the respective action again
* Useful for inexperienced users in creative mode where default
  repeat times may be too short

* Safe placing (right click repetition) does not need a guarding flag

* Added new setting to minetest.conf.example
2019-02-11 12:54:05 +13:00
Loic Blot
b35744cc2e Minetest for C++11 (CMakeLists + Travis)
* Move GCC to GCC 6 & GCC 7
* Move Clang to Clang 3.6 & Clang 4.0
* LINT moves from Clang 3.9 to Clang 4.0
* Move XCode 7.3 to 8.0
* Use more travis tricks to install compilers instead of adding complexity to our build script
* Clang format fixes on checked files (compat Cpp11 instead of Cpp03)
* Mingw GCC update from 4.8.4 to 5.3 (Ubuntu Xenial)
* Drop mingw cmake generated files and add them to gitignore
2019-02-10 20:19:58 +13:00
red-001
bac9238613 Have the server send the player list to the client (#5924)
* Have the server send the player list to the client

Currently the client generates the player list based on the Client active object list, the issue with this is that we can't be sure all player active objects will be sent to the client, so this could result in players showing up when someone run `/status` but auto complete not working with their nick and CSM not being aware of the player
2019-02-10 18:44:16 +13:00
luk3yx
8c74bce370 Fix pitch swimming 2019-02-08 10:19:45 +13:00
random-geek
741257eb89 Extend pitch fly mode to swimming (#7943) 2019-02-08 09:52:22 +13:00
luk3yx
1118354576 Add pitch fly to the "change keys" menu
• Allow the pitch fly key to be changed from the "change keys" menu.
 • Enable pitch fly by default.
2019-02-05 21:45:09 +13:00
Gaël C
e57bf32e0c Added pitch fly mode (#7817)
In pitch fly mode, you fly to the exact direction you are pointing at, using the forward key. Other move directions are also pitched accordingly.
It allows smoother and more complex movements.
Can be enabled/disabled by L key by default (set keymap_pitchfly in minetest.conf)
2019-02-05 21:29:21 +13:00
Jozef Behran
74ec7256b0 Optimize path finalization in pathfinder (#8100)
The pathfinder needs quite a bunch of items to add to the
resulting list. It turns out the amount of the space needed
for the finalized path is known in advance so preallocate it
to avoid a burst of reallocation calls each time something
needs to look for a path.
2019-02-05 20:50:31 +13:00
Jozef Behran
2e7aae6c72 Speed up the craft definition handling (#8097)
The craft definition handling code that collects the names of
the craftable nodes suffers from vector reallocation
performance hits, slowing down instances with lots of
crafting recipes (VanessaE's DreamBuilder and most public
server some to my mind when thinking about this). As in each
instance the size of the resulting vector is already known,
add a reserve() call before the offending loops to allocate
the needed chunk of memory within the result vector in one
go, getting rid of the overhead.
2019-02-05 20:44:07 +13:00
Paul Ouellette
e1bd092569 Fix some misspellings (#8104) 2019-02-05 20:32:58 +13:00
luk3yx
e73c6de617 Change default serverlist and strip client-sent colour/color codes by default.
• Change the default serverlist to servers.edgy1.net, as this is guaranteed to continue supporting Minetest 0.4.
 • Disable client-sent colour/color codes by default.
2019-02-05 19:25:18 +13:00
luk3yx
7ff4d8e91e Fix compilation error 2019-02-05 18:58:58 +13:00
Leonid Bobrov
c226e150c2 DragonFly BSD is somewhat identical to FreeBSD (#8159) 2019-02-05 16:57:12 +13:00
rubenwardy
4f90600912 Fix core.download_file() creating empty files on HTTP error 2019-02-05 16:56:11 +13:00
random-geek
09b2730552 Fix cloud color in loading screen and main menu (#8174) 2019-02-05 16:44:23 +13:00
rubenwardy
15da50c815 Fix get_server_status() segfault due to uninitialized m_env
Fixes #7857
2019-02-05 16:38:30 +13:00
DS
8fe5db2301 Fix wrong code comment (#8061)
"Get core.registered_on_chat_messages" to "Get core.registered_on_player_receive_fields" where `core.registered_on_player_receive_fields` is gotten
2019-02-05 16:33:12 +13:00
Loïc Blot
426b5d3149 Fix a crash on Android with Align2Npot2 (#8070)
* Fix a crash on Android with Align2Npot2

glGetString can be NULL. If stored in a string it triggers a SIGSEGV.
Instead do a basic strstr and verify the pointer
* Better Align2Npot2 check (+ performance)
2019-01-07 17:05:54 +01:00
Loïc Blot
dda844be16
Drop libgmp on Android and use mini-gmp (#8047) 2019-01-04 16:41:42 +01:00
Loïc Blot
957c59a678 Revert "upright_sprite: Fix texture position for players"
This reverts commit d58801ab3204757e6c49892a05633281144f4f44.
2019-01-03 12:04:51 +01:00
rubenwardy
ce4497224f
Android: Fix memory leak when displaying images in the mainmenu (#8011) 2018-12-22 17:20:18 +01:00
stujones11
a873a3f4f8
Include alpha channel reference in MaterialTypeParam 2018-12-22 17:15:39 +01:00
stujones11
8427ae529a Android: Use correct temporary path (#7463) 2018-06-28 19:11:01 +02:00
sfan5
2e85254e91 Fix MurmurHash implementation to really be unaligned (#7482) 2018-06-28 19:11:01 +02:00
red-001
971dea7efd Fix crash caused by Lua error during startup (#7473) 2018-06-28 19:11:01 +02:00
red-001
85ce23b165 Fix buffer overrun in SRP (#7484)
The old code got a pointer to the array instead of the first element, this resulted in a buffer overflow when the function was used more than once.
2018-06-28 19:11:01 +02:00
red-001
e66d5e500c Fix small memory leaks in client. (#7492) 2018-06-28 19:11:01 +02:00
SmallJoker
6dc7177a5d Bump version to 0.4.17.1 2018-06-10 17:18:11 +02:00
number Zero
24a2fd4dc4 Fix narrow/utf8 difference in incoming/outcoming messages 2018-06-10 17:18:11 +02:00
SmallJoker
2515207606 Fix crash in log_deprecated when triggered from no function
Based on commit a1598e1b
2018-06-10 17:18:11 +02:00
Loic Blot
119aa5c919 Fix crash due to missing pointer validation
Based on commit 014a1a0
2018-06-10 17:18:11 +02:00
SmallJoker
263400b3d8 C++03 oldify in various source files 2018-06-03 17:32:00 +02:00