]>
git.lizzy.rs Git - minetest.git/log
Loïc Blot [Thu, 3 Nov 2022 16:35:31 +0000 (17:35 +0100)]
Reduce exposure of various internals (#12885)
* refactoring(StaticObjectList): don't expose m_active and m_stored anymore
This prevents our old crap code where anyone can access to StaticObjectList. use proper modifiers. It also permits to do a short cleanup on MapBlock using a helper
* refactoring(MapBlock): reduce a bit exposed m_active_blocks variable
* refactoring: MapBlock::m_node_timers is now private
We already had various helpers to perform this privatization, just use it. Also factorize the MapBlock stepping code for timers using already existing code and importing them from ServerEnvironment to MapBlock.
It's currently done pretty straight forward without any inheritance as MapBlock is just used everywhere, maybe in a future we'll have ServerMapBlock over MapBlock. Currently for a simple function let's just use proper objects and add a comment warning
* refactoring(Server): fix duplicated function for add/remove node
* refactoring(guiFormSpecMenu): add removeAll function to prevent duplicated code
* refactoring(ShadowRenderer) + perf: code quality + increase performance
* All callers are already using the point and we should never test a function with nullptr node, it's a bug. Removed workaround which was hacky and fix the bug
* Drop clientmap lookup from shadowrendered, just use directly its
pointer and forbid to push it in the generic list
* Reduce memory pressure on the renderShadowObject by preventing
deallocating and reallocating multiple vectors on each node
* refactoring(MapBlock): reduce exposure of MapBlock::m_static_objects
It's not complete as some parts of the code are pretty nested, but it's better than before :)
* fix: better working on new functions & drop unwanted 2 lines
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
x2048 [Thu, 3 Nov 2022 07:43:31 +0000 (08:43 +0100)]
Return correct variable when debugging bloom.
Fixes #12922
x2048 [Wed, 2 Nov 2022 08:09:48 +0000 (09:09 +0100)]
Improve bloom effect (#12916)
* Remove the built-in exposure factor of 2.5
* Add physics-based bloom (https://learnopengl.com/Guest-Articles/2022/Phys.-Based-Bloom)
* Add luminance scaling for bloom layer to simulate HDR
* Add setting to control bloom strength
Muhammad Rifqi Priyo Susanto [Mon, 31 Oct 2022 13:19:30 +0000 (20:19 +0700)]
Android: Increase target/compiled SDK version to 32 (#12911)
Build Tools, NDK, and Gradle are also updated.
Repositories is changed from jcenter() to mavenCentral().
Muhammad Rifqi Priyo Susanto [Mon, 31 Oct 2022 13:17:50 +0000 (20:17 +0700)]
Send crosshair setting after the touch screen GUI has been initialized (#12910)
Lars Mueller [Mon, 31 Oct 2022 08:31:21 +0000 (09:31 +0100)]
Fix node placement regression
x2048 [Sun, 30 Oct 2022 15:54:06 +0000 (16:54 +0100)]
Enable negative values for sun/moon orbit tilt (Northern hemisphere) (#12904)
x2048 [Fri, 28 Oct 2022 19:50:45 +0000 (21:50 +0200)]
Add comments explaining use of entity glow
x2048 [Sun, 4 Sep 2022 20:17:27 +0000 (22:17 +0200)]
Apply entity glow before translating to color space
x2048 [Sun, 4 Sep 2022 20:17:04 +0000 (22:17 +0200)]
Always add increment when getting node interior light
x2048 [Sun, 4 Sep 2022 20:15:21 +0000 (22:15 +0200)]
Use the same light level for non-solid draw types as for solid
DS [Sun, 30 Oct 2022 15:53:31 +0000 (16:53 +0100)]
Add a worlds_here.txt file in the worlds folder and update .gitignore (#12720)
Lars Müller [Sun, 30 Oct 2022 15:53:14 +0000 (16:53 +0100)]
Allow rotating entity selectionboxes (#12379)
lhofhansl [Fri, 28 Oct 2022 16:52:54 +0000 (09:52 -0700)]
Fix incorrect culling introduced by ##12710 (#12887)
lhofhansl [Fri, 28 Oct 2022 02:31:42 +0000 (19:31 -0700)]
Safety check the map's blocksize (#12895)
x2048 [Wed, 26 Oct 2022 20:26:09 +0000 (22:26 +0200)]
Shadow list improvements (#12898)
* Remove redundant checks when attaching SM texture to entities.
Some of the checks were broken, leading to crashes when shadow intensity is set to 0
* Avoid memory leak in shadow casters list when wield mesh changes item stacks
Jean-Patrick Guerrero [Mon, 24 Oct 2022 11:58:56 +0000 (13:58 +0200)]
GUIInventoryList: Keep item size while moving (#12896)
Wuzzy [Sun, 23 Oct 2022 19:59:24 +0000 (21:59 +0200)]
Fix some outdated stuff about falling node docs
Jude Melton-Houghton [Sun, 23 Oct 2022 19:59:12 +0000 (15:59 -0400)]
Check sizeof(int) and sizeof(size_t)
Wuzzy [Sun, 9 Oct 2022 14:50:35 +0000 (16:50 +0200)]
DevTest: Colorize 2 nodebox nodes
Wuzzy [Sun, 9 Oct 2022 14:41:55 +0000 (16:41 +0200)]
DevTest: Cleanup callback logging
Wuzzy [Sun, 9 Oct 2022 14:26:16 +0000 (16:26 +0200)]
DevTest: Fix rendering of 2 texture test nodes
Wuzzy [Sun, 9 Oct 2022 14:19:42 +0000 (16:19 +0200)]
DevTest: More node textures to tell them apart
Wuzzy [Sun, 9 Oct 2022 12:52:36 +0000 (14:52 +0200)]
DevTest: Use 4dir for chests
Wuzzy [Sun, 9 Oct 2022 12:34:10 +0000 (14:34 +0200)]
DevTest: Restore callback item descriptions
Wuzzy [Sat, 8 Oct 2022 19:32:27 +0000 (21:32 +0200)]
DevTest: Fix callback item textures
Wuzzy [Sat, 8 Oct 2022 19:26:56 +0000 (21:26 +0200)]
Remove credits for 2 images no longer in use
Wuzzy [Sat, 8 Oct 2022 18:55:10 +0000 (20:55 +0200)]
DevTest: Refactor testhud features
Wuzzy [Sat, 8 Oct 2022 18:41:11 +0000 (20:41 +0200)]
DevTest: Move 2 HUD commands to testhud & improve
Wuzzy [Sat, 8 Oct 2022 18:01:59 +0000 (20:01 +0200)]
DevTest: No use privatizer on chest of everything
Wuzzy [Sat, 8 Oct 2022 17:50:23 +0000 (19:50 +0200)]
DevTest: Remove experimental mod
Wuzzy [Sat, 8 Oct 2022 17:49:28 +0000 (19:49 +0200)]
DevTest: Move detached inv tests to chest mod
Wuzzy [Sat, 8 Oct 2022 16:58:02 +0000 (18:58 +0200)]
DevTest: /test_place_node skips dummy/cb nodes
Wuzzy [Sat, 8 Oct 2022 16:45:51 +0000 (18:45 +0200)]
DevTest: Clean up callback textures
Wuzzy [Sat, 8 Oct 2022 16:29:22 +0000 (18:29 +0200)]
DevTest: Move callback entities to callbacks mod
Wuzzy [Sun, 9 Oct 2022 12:22:42 +0000 (14:22 +0200)]
DevTest: Move callback items to callbacks mod
Wuzzy [Sun, 9 Oct 2022 12:20:35 +0000 (14:20 +0200)]
DevTest: Move experimental items to other mods
Wuzzy [Sat, 8 Oct 2022 15:46:03 +0000 (17:46 +0200)]
DevTest: Move more logging to log mod
Wuzzy [Sat, 8 Oct 2022 15:41:53 +0000 (17:41 +0200)]
DevTest: Move benchmark commands to new mod
Wuzzy [Sat, 8 Oct 2022 15:38:50 +0000 (17:38 +0200)]
DevTest: Move /test_place_nodes to testnodes mod
Wuzzy [Sat, 8 Oct 2022 15:34:55 +0000 (17:34 +0200)]
DevTest: Move chat command logging to separate mod
Jude Melton-Houghton [Sat, 22 Oct 2022 12:05:45 +0000 (08:05 -0400)]
Add VoxelArea() constructor (#12886)
Abdou-31 [Fri, 21 Oct 2022 15:12:39 +0000 (16:12 +0100)]
Fix typos and en_US/en_GB inconsistency in files inside doc directory (#12882)
Jude Melton-Houghton [Tue, 18 Oct 2022 22:20:00 +0000 (18:20 -0400)]
Fix use of unassigned global "check"
Riceball LEE [Fri, 21 Oct 2022 15:12:07 +0000 (23:12 +0800)]
guiChatConsole: fix the unicode characters crowded together on prompt (#12867)
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
DS [Fri, 21 Oct 2022 15:11:41 +0000 (17:11 +0200)]
Fix formspec focus (#12795)
sfan5 [Fri, 21 Oct 2022 15:09:44 +0000 (17:09 +0200)]
Revise bump_version.sh script to address shortcomings (#12789)
Jude Melton-Houghton [Tue, 18 Oct 2022 22:03:05 +0000 (18:03 -0400)]
Check for falling `float` nodes in liquid transform (#12862)
Jude Melton-Houghton [Tue, 18 Oct 2022 22:01:44 +0000 (18:01 -0400)]
Implement vector and node conversion in Lua (#12609)
Co-authored-by: sfan5 <sfan5@live.de>
sfan5 [Mon, 17 Oct 2022 18:05:14 +0000 (20:05 +0200)]
Fix list sorting behaviour with missing geoip
Abdou-31 [Sun, 16 Oct 2022 09:55:54 +0000 (10:55 +0100)]
Fix en_US/en_GB inconsistency in lua_api.txt
Abdou-31 [Sun, 16 Oct 2022 09:38:45 +0000 (10:38 +0100)]
Fix typos in lua_api.txt
sfan5 [Mon, 17 Oct 2022 11:56:28 +0000 (13:56 +0200)]
Take geographic distance into account for server list ordering (#12790)
SmallJoker [Mon, 17 Oct 2022 11:56:04 +0000 (13:56 +0200)]
LocalPlayer: Fix sneaking on nodes with large collisionboxes (#12626)
sfan5 [Sat, 15 Oct 2022 10:02:02 +0000 (12:02 +0200)]
Exclude MSVC from new Lua sanity check
sfan5 [Mon, 26 Sep 2022 15:02:49 +0000 (17:02 +0200)]
Other minor CMake improvements
sfan5 [Mon, 26 Sep 2022 14:59:47 +0000 (16:59 +0200)]
Defer searching for libintl to CMake
resolves #12800
sfan5 [Mon, 26 Sep 2022 14:05:00 +0000 (16:05 +0200)]
Get rid of LuaJIT linking workarounds
...and replace them with a cautionary warning message if someone uses an old version.
The detection is kind of a hack but no choice as upstream is not interested in version numbering.
sfan5 [Mon, 26 Sep 2022 13:26:34 +0000 (15:26 +0200)]
Add extra check in case someone tries to unbundle Lua
Jude Melton-Houghton [Thu, 13 Oct 2022 13:35:19 +0000 (09:35 -0400)]
Speed up find_nodes_in_area (#12845)
fluxionary [Thu, 13 Oct 2022 12:46:48 +0000 (05:46 -0700)]
object ids are u16, not s16 (#12848)
Jude Melton-Houghton [Wed, 12 Oct 2022 18:06:41 +0000 (14:06 -0400)]
Use enum to define custom registry indices
Jude Melton-Houghton [Wed, 12 Oct 2022 17:48:59 +0000 (13:48 -0400)]
Test on-lighting node param1 in lighting test
Jude Melton-Houghton [Sun, 9 Oct 2022 15:55:07 +0000 (11:55 -0400)]
Embed data directly in mapblocks
Jude Melton-Houghton [Wed, 5 Oct 2022 11:55:33 +0000 (07:55 -0400)]
Remove unused MapBlock functionality
sfan5 [Sun, 9 Oct 2022 17:11:04 +0000 (19:11 +0200)]
Fix tone mapping being always enabled
broke in
579fc93c24b030e33a6255d96e773706f6e99c93
Jude Melton-Houghton [Sun, 9 Oct 2022 14:50:26 +0000 (10:50 -0400)]
Optimize lighting calculation (#12797)
fluxionary [Sun, 9 Oct 2022 12:06:09 +0000 (05:06 -0700)]
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>
Wuzzy [Sun, 9 Oct 2022 12:05:40 +0000 (14:05 +0200)]
Improve documentation for `liquid_alternative_*` (#12810)
Wuzzy [Sun, 9 Oct 2022 12:05:22 +0000 (14:05 +0200)]
DevTest: Explain purpose of most items in tooltips (#12833)
Wuzzy [Thu, 6 Oct 2022 16:25:40 +0000 (18:25 +0200)]
DevTest: Change texture for node-aligned node (#12831)
ROllerozxa [Thu, 6 Oct 2022 16:07:57 +0000 (18:07 +0200)]
Only set quicktune keybinds in debug builds (#12779)
x2048 [Tue, 4 Oct 2022 19:02:42 +0000 (21:02 +0200)]
Use legacy call when rendering to a single texture
Fixes depth buffer in when undersampling > 1
x2048 [Tue, 4 Oct 2022 12:52:56 +0000 (14:52 +0200)]
Make bloom shaders compatible with GLES2 (#12834)
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
Jude Melton-Houghton [Tue, 4 Oct 2022 12:31:36 +0000 (08:31 -0400)]
Consolidate API object code (#12728)
Co-authored-by: sfan5 <sfan5@live.de>
Jude Melton-Houghton [Mon, 3 Oct 2022 16:13:35 +0000 (12:13 -0400)]
Disable -ffinite-math-only (#12832)
Wuzzy [Mon, 3 Oct 2022 16:13:23 +0000 (18:13 +0200)]
DevTest: Reject buggy "/hp inf" command (#12830)
DS [Sat, 1 Oct 2022 19:21:06 +0000 (21:21 +0200)]
Add an item pick up callback (2) (#7712)
Co-authored-by: SmallJoker <mk939@ymail.com>
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
Wuzzy [Sat, 1 Oct 2022 19:20:28 +0000 (21:20 +0200)]
Improve crafting recipe documentation (#12806)
sfan5 [Sun, 11 Sep 2022 19:16:17 +0000 (21:16 +0200)]
Implement tool use sounds
sfan5 [Tue, 26 Apr 2022 18:40:52 +0000 (20:40 +0200)]
Clean up Game::handleDigging() and some related parts
Muhammad Rifqi Priyo Susanto [Fri, 30 Sep 2022 12:02:06 +0000 (19:02 +0700)]
Improve double tap for jump detection (#12793)
Jude Melton-Houghton [Fri, 30 Sep 2022 10:31:24 +0000 (06:31 -0400)]
Avert collision static detection rounding error (#12822)
Wuzzy [Fri, 30 Sep 2022 10:30:39 +0000 (12:30 +0200)]
Fix inconsistent craft replacements (#9250) (#12819)
Wuzzy [Thu, 29 Sep 2022 18:34:51 +0000 (20:34 +0200)]
Fix error msg if craft replacement w/ full inv (#12820)
x2048 [Thu, 29 Sep 2022 18:34:05 +0000 (20:34 +0200)]
Bloom (#12791)
Adds configurable light exposure control and bloom effect (light bleeding) with client-side settings.
Muhammad Rifqi Priyo Susanto [Thu, 29 Sep 2022 18:30:33 +0000 (01:30 +0700)]
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>
20kdc [Wed, 28 Sep 2022 13:06:14 +0000 (14:06 +0100)]
Add zstd compression support (#12515)
DS [Tue, 27 Sep 2022 20:23:07 +0000 (22:23 +0200)]
Pause shader animation timer in singleplayer pause menu (#12766)
Co-authored-by: sfan5 <sfan5@live.de>
pecksin [Tue, 27 Sep 2022 20:22:36 +0000 (16:22 -0400)]
Restore and enhance bouncy behavior (#11939)
savilli [Tue, 27 Sep 2022 20:22:11 +0000 (22:22 +0200)]
Add unittests for item movement code (#11885)
Wuzzy [Mon, 26 Sep 2022 23:27:47 +0000 (01:27 +0200)]
Fix liquid drawtype faces sometimes not rendering (#12807)
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
Jude Melton-Houghton [Mon, 26 Sep 2022 21:03:43 +0000 (17:03 -0400)]
Avoid duplication of mod metadata in memory (#12562)
Co-authored-by: sfan5 <sfan5@live.de>
Jude Melton-Houghton [Mon, 26 Sep 2022 11:23:48 +0000 (07:23 -0400)]
Modify PUC Lua to wrap C++ exceptions (#12445)
Jude Melton-Houghton [Mon, 26 Sep 2022 10:49:08 +0000 (06:49 -0400)]
Add lighting test and benchmark (#12802)
Lars Mueller [Fri, 23 Sep 2022 09:21:09 +0000 (11:21 +0200)]
Fix double escape in update checker dialog
Tobias Frost [Sun, 25 Sep 2022 11:45:27 +0000 (13:45 +0200)]
Fix two spelling mistakes
Co-authored-by: Tobias Frost <tobi@debian.org>
Aritz Erkiaga [Sun, 25 Sep 2022 11:45:02 +0000 (13:45 +0200)]
Briefly explain how facedir rotations work (#11934)
Lars Müller [Tue, 20 Sep 2022 08:55:51 +0000 (10:55 +0200)]
Fix formula used for acceleration (#12353)
DS [Tue, 20 Sep 2022 08:55:11 +0000 (10:55 +0200)]
Rename a variable in localplayer.h, resolves a TODO