1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-03 00:20:21 +02:00
Commit Graph

6917 Commits

Author SHA1 Message Date
8cccd75e81 Android build via CMake (#13528)
* the thing

* the thing 2
2023-05-26 15:21:23 +02:00
00c647e4cc Convert spaces to tabs (#13506)
* Convert spaces to tabs

* Desour reviews 1-3 fix

* Desour fixes

* Undo alignment changes
2023-05-26 15:13:57 +02:00
f4cb16cc2d Disable desynchronize_mapblock_texture_animation by default (#13514) 2023-05-26 13:48:37 +02:00
d6eb6ff973 Reset player lighting when passing no arguments (#13525)
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2023-05-26 13:47:16 +02:00
b60d38b7f9 Reset day/night ratio even when passing no arguments (#13524)
* reset day_night_ratio when passing zero fields

* Update lua_api.md

---------

Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2023-05-26 13:45:42 +02:00
180ec92ef9 Remove trailing whitespace (#13505) 2023-05-18 20:34:18 +02:00
95a9f4ab7c Inventory: Allow InvRef:set_list with new_size >= old_size (#13497)
Fixes a regression introduced by enforced checks to work with
valid pointers within inventory actions.
2023-05-18 20:32:55 +02:00
f393214fef Settings menu improvements regarding default values (#13489)
The reset button now removes the setting from minetest.conf instead of setting it to its default value.
The reset button is now shown whenever a value is present in minetest.conf
Float settings now get a .0 suffix if they have no decimal places.
2023-05-18 20:32:26 +02:00
5ba70cf5ef Fix crash on handling wallmounted nodes with invalid param2 (#13487) 2023-05-18 20:31:04 +02:00
35112f2453 Disable vertical movement when both jump and sneak keys are pressed (#13426) 2023-05-18 20:30:21 +02:00
15fb4cab15 Fix Android segfault when game exits before TouchScreenGUI is initalized 2023-05-11 22:51:16 +02:00
15445a0fbe Raise and clean up _WIN32_WINNT constant 2023-05-11 22:51:01 +02:00
80574cdbe8 Fix rotation of 4dir in schematic placement (#13432) 2023-05-11 22:50:52 +02:00
65692ad1b5 Add min/max protocol version to minetest.get_version() (#13482) 2023-05-06 16:16:21 +01:00
DS
bec9c68bf3 Release invlist resizelock while doing the recursive callback in move_somewhere mode (#13470)
Fixes a crash in popular creative inventory mods that set the list when you put
something into trash.
2023-04-30 18:20:48 +02:00
b35aa10579 Guarantee ActiveObjectMgr::m_active_object is not modified while iterating (#13468)
Currently if a mod creates new active objects in on_deactivate the server could crash.
2023-04-28 11:17:48 -07:00
7f6b09dce8 Use json forward-declarations 2023-04-27 18:50:33 +02:00
8b73743baa Reduce number of recursively included headers
This should improve compilation speed.

Things changed:
* Prefer forward-declarations in headers.
* Move header-includes out of headers if possible.
* Move some functions definitions out of headers.
* Put some member variables into unique_ptrs (see Client).
2023-04-27 18:50:33 +02:00
e9e8eed360 GUIChatConsole: Use primary selection 2023-04-27 18:50:17 +02:00
062b4d036a GUIEditBox: Use primary selection 2023-04-27 18:50:17 +02:00
0fb6dbab36 InventoryManager: Disallow resizing or deleting inventory lists that are in use (#13360)
Naive solution to prevent InventoryList UAF and OOB ItemStack access caused by shrink/clear operations on InventoryLists within callbacks of an inventory action.

Co-authored-by: Desour <ds.desour@proton.me>
2023-04-22 17:42:36 +02:00
4158b72971 Add ability to override item images using meta (#12614) 2023-04-17 19:44:41 +01:00
b1786e88ac Use .md extension for markdown files
Linking to line numbers is brittle, linking to sections/headings is better.

If you still want to link to a line number, you can append ?plain=1 to GitHub's URL
2023-04-16 20:23:53 +01:00
5cd6a22dd3 Update settingtypes (#13428)
* Move settings to correct sections
* Improve titles and descriptions
* Make defaults in settingtypes.txt and defaultsettings.cpp match

Fixes #9002
2023-04-14 22:32:25 +01:00
ccd696c49a Throw Hocroft-Karp onto shapeless recipes 2023-04-14 21:10:09 +02:00
50e91b882c Add some simple unittests for shapeless recipes
Note: devtest also has craft unittests (see devtest/mods/unittests/crafting.lua),
      but those aren't run at load-time.
2023-04-14 21:10:09 +02:00
DS
ae7271b725 Fix background[] pos-offset lower-right-corner being at least (1,1) (#13320)
IGUIElement has a MinSize for the RelativeRect, which is at least (1,1).
This means a pos offset of (0,0) will cause a seemingly off-by-1 error at the
lower right corner, and (0.1,0.1) for example will just not work on the lower
right corner.
Ergo, we can't use the AbsoluteRect for storing the pos offset.
2023-04-14 21:05:09 +02:00
DS
d49d80a4a0 Store whether window is maximized (#12861) 2023-04-14 21:04:03 +02:00
f9b1176fa9 Track server's max AsyncRunStep 2023-04-14 00:09:48 +01:00
3d232e2345 Add MAX profiler option 2023-04-14 00:09:48 +01:00
9d1ae80e89 Add focused styling to buttons (#13414) 2023-04-14 00:09:29 +01:00
2a1bc82887 Fix black loading screen background if menu_clouds = false (#13322) 2023-04-13 18:12:48 +01:00
d1e5dbefc7 Clarify documentation of punch key (#13238) 2023-04-13 18:12:26 +01:00
fc116ec950 Play object footstep sound at feet 2023-04-13 18:12:13 +01:00
e139749b5c Simulate all keys being released when when game loses focus (#13336) 2023-04-13 18:06:21 +02:00
2fc7eb3ea2 Remove formspec_default_bg_color/opacity settings (#13419)
These settings are unnecessary. They only apply when formspecs don't have a background/bgcolor set. In practice, most games do theme their GUIs. Removing low value settings simplifies code and improves UX by decluttering the settings menu

Split out from #12140
2023-04-11 19:57:36 +01:00
1dd13da37d Get rid of global dummySoundManager
There is no need for this to be globally unique.
2023-04-11 20:06:15 +02:00
b201c03625 Use smart-ptrs in GUIEngine 2023-04-11 20:06:15 +02:00
ceec560779 Add make_irr 2023-04-11 20:06:15 +02:00
73391013f7 Add node pos to node damage HP change reason (#13196) 2023-04-10 23:04:52 +01:00
4a742be73e Do not call updateDrawList, updateDrawListShadow, and touchMapBlocks in the same frame 2023-04-09 07:10:17 -10:00
8982998681 Add a default direction light for shadows 2023-04-09 07:10:17 -10:00
9d736e8b8b Drop ENABLE_GLES option
ENABLE_GLES predates forking Irrlicht. Its primary use was to distinguish Irrlicht-ogles from upstream version as Minetest could be compiled with either.
That's not necessary anymore and gets in the way sometimes.
2023-04-08 20:19:35 +02:00
c26e122485 Move video_driver default selection to runtime 2023-04-08 20:19:35 +02:00
67068cfaf4 Get rid of wgettext 2023-04-08 20:17:50 +02:00
35929d27e3 Remove fast faces (#13216)
Co-authored-by: Lars <larsh@apache.org>
2023-04-08 20:17:15 +02:00
ba2fee0751 Particle spawner: Fix missing parameters
The changes done to clientpackethandler.cpp and server.cpp move the
compatibility code into a protocol version check so that older code
parts can easily be removed in the future (e.g. bump of minimal version).
2023-04-08 17:23:17 +02:00
f8e0778fc9 Particle spawner: Move definitions to source
Long functions were moved to the source file to keep the header
short to speed up compiling. This has no functional change.
2023-04-08 17:23:17 +02:00
9c9309cdbb Lua API: Catch serialization error for chat messages (#13337)
Prevents server errors caused by too long chat messages from the Lua API.
2023-04-07 12:49:35 +02:00
d975ebdcb9 Limit formspec fields to 640K (#13380)
Fixes an issue where long inputs could cause issues when dealing with formspecs.
The expected data is usually below 1 KiB, however that's not a technical limit.
2023-04-07 12:49:23 +02:00