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

6722 Commits

Author SHA1 Message Date
440d966b93 add an 'equals' method to ItemStack and compatibility w/ lua '==' (#12771)
Co-authored-by: rubenwardy <rw@rubenwardy.com>
Co-authored-by: sfan5 <sfan5@live.de>
2022-10-09 08:06:09 -04:00
be5c675263 Only set quicktune keybinds in debug builds (#12779) 2022-10-06 17:07:57 +01:00
1e96403954 Use legacy call when rendering to a single texture
Fixes depth buffer in when undersampling > 1
2022-10-04 21:02:42 +02:00
7632af3c73 Consolidate API object code (#12728)
Co-authored-by: sfan5 <sfan5@live.de>
2022-10-04 08:31:36 -04:00
b21fb18379 Disable -ffinite-math-only (#12832) 2022-10-03 12:13:35 -04:00
525fc3833c Implement tool use sounds 2022-09-30 14:02:14 +02:00
bbdb1929c6 Clean up Game::handleDigging() and some related parts 2022-09-30 14:02:14 +02:00
13a8948edd Improve double tap for jump detection (#12793) 2022-09-30 14:02:06 +02:00
e832cee1e6 Avert collision static detection rounding error (#12822) 2022-09-30 06:31:24 -04:00
6eb7d57ed3 Fix inconsistent craft replacements (#9250) (#12819) 2022-09-30 06:30:39 -04:00
5e7ea0664a Fix error msg if craft replacement w/ full inv (#12820) 2022-09-29 20:34:51 +02:00
9df79a4b2d Bloom (#12791)
Adds configurable light exposure control and bloom effect (light bleeding) with client-side settings.
2022-09-29 20:34:05 +02:00
3978b9b8ed Add crosshair support for Android (#7865)
If enabled, a crosshair will be shown to select object.
This will give Android players a way to play like they play on desktop.
On third-person back camera mode, player is forced to use crosshair.
On third-person front camera mode, player is unable to select anything.

Co-authored-by: ROllerozxa <temporaryemail4meh+github@gmail.com>
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2022-09-29 20:30:33 +02:00
b1233056b7 Add zstd compression support (#12515) 2022-09-28 09:06:14 -04:00
DS
0251b01da6 Pause shader animation timer in singleplayer pause menu (#12766)
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-27 16:23:07 -04:00
6ac38aa2c8 Restore and enhance bouncy behavior (#11939) 2022-09-27 16:22:36 -04:00
907dcdcf7b Add unittests for item movement code (#11885) 2022-09-27 16:22:11 -04:00
3f801bc096 Fix liquid drawtype faces sometimes not rendering (#12807)
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2022-09-26 19:27:47 -04:00
f4a01f3a5d Avoid duplication of mod metadata in memory (#12562)
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-26 17:03:43 -04:00
03428d9825 Modify PUC Lua to wrap C++ exceptions (#12445) 2022-09-26 07:23:48 -04:00
f916398a54 Add lighting test and benchmark (#12802) 2022-09-26 06:49:08 -04:00
7069d99aa6 Fix two spelling mistakes
Co-authored-by: Tobias Frost <tobi@debian.org>
2022-09-25 13:45:27 +02:00
1317cd12d7 Fix formula used for acceleration (#12353) 2022-09-20 10:55:51 +02:00
DS
11905a6db6 Rename a variable in localplayer.h, resolves a TODO 2022-09-20 10:55:11 +02:00
2c3f641e0b Simplify bit flip in sha1.cpp 2022-09-20 10:54:35 +02:00
006d974c58 Catch exceptions in SQLite3 callback 2022-09-18 17:39:09 +02:00
6f5a68b7f7 Allow getmetatable in CSM (#12776) 2022-09-18 17:32:18 +02:00
DS
c9ed059d91 Client map: do frustum culling via planes (#12710) 2022-09-18 15:28:53 +02:00
9428917870 Fix UAF in craft recipes (#12763)
If you call minetest.clear_craft after minetest.register_alias_force, the craft definition reference may not be removed from m_output_craft_definitions leading to UAF.
2022-09-16 13:20:14 +02:00
19e936362a Add support for MINETEST_USERDATA environment variable (#12639)
The MINETEST_USER_PATH environment variable can be used to define a
custom path for Minetest user data. If MINETEST_USER_PATH is empty or
unset, the HOME (or APPDATA on Windows) environment variable is used as
the default user data path; this ensures backwards compatibility with
existing user setups.
2022-09-16 13:19:44 +02:00
1d04903c19 Add paramtype2s for 4 horizontal rotations and 64 colors (#11431)
4dir is like facedir, but only for 4 horizontal directions: NESW. It is identical in behavior to facedir otherwise. The reason why game makers would want to use this over facedir is 1) simplicity and 2) you get 6 free bits.
It can be used for things like chests and furnaces and you don't need or want them to "flip them on the side" (like you could with facedir).

color4dir is like colorfacedir, but you get 64 colors instead of only 8.
2022-09-16 13:18:55 +02:00
DS
f3f3b752f2 Fix tooltips for dropdown, scrollbar and more (#12747) 2022-09-13 12:48:28 +01:00
bc3dccca5c Mainmenu: Properly sort mods and games (#12758)
This also removes trivial and unused pkgmgr functions
Fixes a bug caused by sorting in 2133fc8
2022-09-12 19:24:54 +02:00
fe13f9dfd1 Fix potential use-after-free with item metadata (#12729)
This fixes a use-after-free bug in the case where itemstack metadata is accessed after the itemstack has been garbage-collected.
2022-09-11 19:28:37 +02:00
c607bee19e Allow looped animation to be used safely with old clients
fixes #12657
2022-09-10 12:21:29 +02:00
adb03ccc6d Chat weblink: remove comma as delimiter (#12730) 2022-09-10 12:21:15 +02:00
DS
643971c948 Add documentation of sun/moon orientation/scale differences (#12145) 2022-09-06 11:21:55 +01:00
038da00e79 Code optimizations / refactor (#12704)
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-06 11:21:09 +01:00
ff6dcfea82 Implement rendering pipeline and post-processing (#12465)
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: lhofhansl <lhofhansl@yahoo.com>
2022-09-06 08:25:18 +02:00
464043b8ab Convert entity glow value to color space before adding to the light 2022-09-04 16:00:13 +02:00
0ab9bf926d Fix texture_min_size 2022-08-24 22:38:14 +02:00
2d10fa7867 Prevent loading a world with unresolved dependencies (#12542) 2022-08-19 12:31:36 +01:00
8c29c4f620 Use Sky class to obtain directional light source position for shadows (#12662)
* Also remove unused Sky::getSkyBodyOrbitTilt method

Fixes misalignment of sun position and shadow direction at high tilt values.
2022-08-17 16:30:05 +02:00
3f67215df9 Log sockets into tracestream instead of dstream (#12701) 2022-08-16 15:18:11 +01:00
7c5e3cac6a Apply DPI Scaling to GUIModalMenu (#12693)
Co-authored-by: sfan5 <sfan5@live.de>
2022-08-15 21:19:47 +01:00
aa2fdc6ef6 Limit force shadow update to urgent blocks (#12692) 2022-08-14 20:29:20 +02:00
2690585e99 Add handling of environment variables to control terminal/logging colors (#12641) 2022-08-14 20:27:28 +02:00
d1cbb4bd8a Reduce the use of porting::getTimeMs() when rendering frames (#12679)
* Avoid calling TimeTaker too frequently in renderMapXXX
* Calculate animation timer once per frame
* Remove code that breaks rendering frame at 2000ms

Co-authored-by: sfan5 <sfan5@live.de>

Co-authored-by: sfan5 <sfan5@live.de>
2022-08-13 22:33:26 +02:00
0e439b2fa3 Check hp_max > 0 for entities (#12667) 2022-08-13 15:35:41 +01:00
ab8dfb45b4 Allow buffer argument to VoxelManip:get_light_data (#12682) 2022-08-13 08:53:47 +02:00