sfan5
5cbe8437a8
Swap out -ffast-math for a safe subset of optimization flags ( #9682 )
...
It caused more trouble than its worth.
fixes #3943 , fixes #5330
2020-04-16 10:23:48 +02:00
Loïc Blot
e8ac5a31cf
Optimize get_objects_inside_radius calls ( #9671 )
...
* Optimize getObjectsInsideRadius calls
our previous implementation calls the ActiveObjectMgr to return ids and then lookup those ids in the same map and test each object
Instead now we call the global map to return the pointers directly and we ask filtering when building the list using lamba.
This drop double looping over ranges of active objects (and then filtered one) and drop x lookups on the map regarding the first call results
2020-04-16 08:25:48 +02:00
Maksim
62ae7adab2
Android: add Android Studio support, completely redone java part ( #9066 )
2020-04-15 16:27:40 +02:00
sfan5
8ae8c1600a
Fix parsing JSON with large integers ( #9674 )
2020-04-15 08:01:28 +02:00
Loïc Blot
5c588f89e7
Verify database connection on interval ( #9665 )
2020-04-15 08:01:11 +02:00
sfan5
2d5bd3bf79
scriptapi: Some small optimizations to value pushing ( #9669 )
2020-04-14 20:44:18 +02:00
SmallJoker
7c43cf47c3
PostgreSQL: Fix listAllLoadableBlocks returning the same block
...
Suggested change from https://github.com/minetest/minetest/issues/9670#issuecomment-613563738
2020-04-14 20:42:40 +02:00
Hugues Ross
5cf6318117
Refactor texture overrides and add new features ( #9600 )
...
* Refactor texture overrides, and add new features:
- Texture overrides can support multiple targets in one line
- Texture override files can have comment lines
- Item images/wield images can be overridden
* Formatting changes
* Address soime feedback
- Pass vectors by const reference
- Log syntax errors as warnings
- Remove 'C' prefix from TextureOverrideSource
* Simplify override target checks with an inline helper function
* make linter happy
* Apply feedback suggestions
Co-Authored-By: rubenwardy <rw@rubenwardy.com>
* Remove remaining != 0 checks
* Update copyright notice
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2020-04-14 20:41:29 +02:00
Wuzzy
7e21b3cd48
Remove sound menu and show proper msgs if sound is off ( #9069 )
2020-04-13 20:26:54 +02:00
DS
0ac999ded7
Add scroll_container formspec element (redo) ( #9101 )
...
New formspec elements:
- `scroll_container[<X>,<Y>;<W>,<H>;<scrollbar name>;<orientation>;<scroll factor>]`
- `scroll_container_end[]`
Other elements can be embedded in this element. Scrollbar must be placed manually.
2020-04-13 10:50:07 +02:00
SmallJoker
6cf15cf872
GUIFormSpecMenu: Add basic element highlighing debug feature ( #9423 )
...
Activated using F5
2020-04-12 12:02:32 +02:00
Wuzzy
a24d3b3600
Play 'player_jump' when player jumps ( #9373 )
2020-04-12 00:50:40 +01:00
Lars Müller
af2e6a6a10
Improve waypoints and add image variant ( #9480 )
2020-04-11 22:09:46 +01:00
Hugues Ross
f780bae05c
Formspecs: Add state-selection to style elements ( #9378 )
2020-04-11 21:39:30 +01:00
sfan5
ba3587e776
Fix broken config check in 659245a
2020-04-11 21:29:57 +02:00
sfan5
40df3931d8
Implement DPI scaling for Windows ( #9586 )
2020-04-11 20:03:59 +02:00
Loïc Blot
5cc06e4748
Reduce ServerEnvironment propagation ( #9642 )
...
ServerEnvironment is a huge class with many accessors. In various places it's not needed
Remove it to reduce the ServerEnvironment view.
Idea here is to reduce size of some of our objects to transport lightweight managers and permit easier testing
Pathfinder is now tied to a generic map, not a ServerMap, it can be
ported to client
2020-04-11 19:59:43 +02:00
Loic Blot
5146086a64
Drop content_sao.{cpp,h}
...
Move LuaEntitySAO to a new dedicated file
Drop TestSAO (useless object)
Drop the old static startup initialized SAO factory, which was pretty useless.
This factory was using a std::map for 2 elements, now just use a simple condition owned by ServerEnvironment, which will be lightweight, that will also drop a one time useful test on each LuaEntitySAO creation. This should reduce server load on massive SAO creation
2020-04-11 16:07:17 +02:00
Loic Blot
894a34aef4
Move PlayerSAO to dedicated files
2020-04-11 16:07:17 +02:00
Loic Blot
c99e8df07f
pass clang-format
2020-04-11 16:07:17 +02:00
Loic Blot
6d43736172
Move serveractiveobject & unitsao
...
Move serverobject.{cpp,h} to server/serveractiveobject.{cpp,h}
Move UnitSAO class to dedicated files
2020-04-11 16:07:17 +02:00
SmallJoker
01b3f26c7b
Formspec: No spec ID for static text labels
...
Fixes #9634
2020-04-11 15:31:02 +02:00
Alex
fbf74dc524
Use TILE_MATERIAL_ALPHA for use_texture_alpha entity flag ( #9639 )
...
Fixes #9637 .
2020-04-11 13:45:14 +02:00
sfan5
1292bdbbce
Various features and fixes
2020-04-11 13:12:51 +02:00
sfan5
5f3a17eb65
Implement minetest.sound_fade()
2020-04-11 13:12:51 +02:00
sfan5
054c5dfaa3
scriptapi: Sort out ServerEnvironment / Environment distinction properly
...
The API implementation is shared between CSM and SSM.
Functions should retrieve a plain env when they do not
need any server-specific functions.
2020-04-11 13:12:51 +02:00
sfan5
f105bc8dc2
A few initialization cleanups
2020-04-11 13:12:51 +02:00
Wuzzy
aa3cf400e2
Print error if invalid mapgen alias was detected ( #9579 )
2020-04-10 20:36:16 +02:00
Loïc Blot
35e778ee9f
Move clientsimpleobject.h to client folder ( #9630 )
...
This file is only called from client folder, retrieve its friends :)
2020-04-10 20:10:51 +02:00
Loïc Blot
f648fb76ae
Drop genericobject.{cpp,h} ( #9629 )
...
* Drop genericobject.{cpp,h}
This file is not for generic object but for ActiveObject message passing.
Put ownership of the various commands to the right objects and cleanup the related code.
* Protect ServerActiveObject::m_messages_out
* typo fix
2020-04-10 19:49:20 +02:00
TheTermos
3ad5388c6d
Collision various fixes ( #9343 )
2020-04-08 22:45:05 +02:00
sfan5
659245acc7
Work around LuaJIT issues on aarch64 ( #9614 )
...
- Move the text segment below the 47-bit limit, needed for script_exception_wrapper which must be lightuserdata
- Replace CUSTOM_RIDX_SCRIPTAPI with full userdata
2020-04-08 20:14:08 +02:00
sfan5
de73f989eb
Overall improvements to log messages ( #9598 )
...
Hide some unnecessarily verbose ones behind --trace or disable them entirely.
Remove duplicate ones. Improve their contents in some places.
2020-04-08 20:13:23 +02:00
sfan5
3494475df1
Miscellaneous networking improvements ( #9611 )
...
fixes #2862
2020-04-08 20:12:58 +02:00
Hugo Locurcio
f45ba78a72
Allow relative directories for screenshot_path
, tweak default path ( #9122 )
...
This will likely be more intuitive for users and should play better
with sandboxed distributions such as Flatpak.
In addition, the screenshot directory will now be created if it doesn't
exist already.
2020-04-06 16:54:12 +02:00
Pierre-Yves Rollo
0eb3072819
Hypertext: Fix hovercolor not working in global tag ( #9582 )
2020-04-05 15:04:41 +02:00
SmallJoker
d5c4412536
Revert collision tweaks #9365 and #9327 ( #9591 )
...
This reverts commit df74d369a395f0b99bd23fa3e7fb4c628c3df336.
This reverts commit 908e76247922d4adf879b3996c4f75bdbb4e536d.
Restores the original collision detection bugs to release 5.2.0 prior the large collision detection fix.
2020-04-04 21:27:23 +02:00
Pierre-Yves Rollo
86a0e991ef
Fix cursor still visible after closing formspec while on HyperText ( #9583 )
2020-04-04 16:17:15 +02:00
LNJ
307d7376cf
Fix 'the the' typos in comments ( #9554 )
2020-04-04 15:52:41 +02:00
updatepo.sh
6940e5a191
Update minetest.conf.example, settings_translation_file.cpp
2020-04-03 23:19:36 +02:00
Elias Åström
3d6b55d3e9
Fix texture distortion for flowing liquids ( #9561 )
...
Previously textures of the side faces on flowing liquid nodes would
become distorted on different axis depending on the liquid level. This
is because the nodes always had the same texture coordinates, even when
the generated face could have different sizes. This solves that problem
by adjusting the texture coordinates for the vertices making up the top
of the faces, so the textures will not look compressed for smaller
faces.
2020-04-02 19:24:35 +02:00
DS
d7825bca1b
Fix GUI element click-through by changing visibility ( #9534 )
...
This adds a vector that holds pointers to elements that should only be visible while being drawn.
In the guifsmenu's draw func, all elements in this vector are made visible and invisible again. Apart from there, they are always invisible. (Well they are still visible before the first drawn, does this matter? If yes, it could be fixed easily with some lines of code everywhere.)
2020-03-31 18:34:42 +01:00
ANAND
13b228513e
Ignore near_plane setting on non-Android platforms ( #8749 )
...
Camera's near-plane will be hard-coded to 0.1 on all non-Android platforms. The upper-bound of this setting has been reduced to 0.25, as 0.5 is just way too high.
2020-03-28 21:53:55 +01:00
sfan5
04961491c1
Fix crash on wielditem/item entities
...
bug was introduced in f3032a637c53f3c98fbbed1d3b691898aabe1687
2020-03-28 12:56:48 +01:00
Pierre-Yves Rollo
49a558574f
Hypertext: Fix alignment tags adding unwanted newlines ( #9548 )
2020-03-26 19:56:35 +01:00
SmallJoker
a0998754a7
Connection: Fix deadlock in debug mode ( #9550 )
2020-03-26 19:13:50 +01:00
Danila Shutov
f3032a637c
Fix incorrect light updates for wielditem and item visuals ( #9540 )
...
An alternative to #9537
2020-03-23 21:57:44 +01:00
Wuzzy
625b100593
Add comments for translators ( #9510 )
...
* Add translator comments for "special" strings
* Add translator comments for some "tricky" strings
2020-03-20 09:41:07 +01:00
Danila Shutov
5c1b72544a
Fix entity lighting ( #9514 )
...
fixes #9482
2020-03-16 22:58:13 +01:00
sfan5
5a31d56c9f
Fix mouse events sent to wrong GUI elements when dragging
2020-03-16 22:57:10 +01:00
v-rob
13ad8e2a09
Formspecs: Add starting frame to animated_image
( #9411 )
2020-03-16 22:56:48 +01:00
SmallJoker
766d160ffb
guiHyperText: Fix blinky cursor on link hover ( #9392 )
...
Change legacy size/position calculations to 'textarea'
2020-03-11 19:09:50 +01:00
HybridDog
fd4daefb29
minetest.get_content_id: error if the node does not exist ( #9458 )
...
If a mod creator makes a typing mistake, this function now causes an error instead of returning the id of "ignore".
2020-03-11 16:25:14 +01:00
DS
b42493fb4c
Fix memory leak in GUIHyperText ( #9489 )
2020-03-10 20:32:38 +01:00
sfan5
7a7bfdca7c
minetest,get_connected_players: Return empty table at load time ( #9493 )
2020-03-10 20:32:04 +01:00
SmallJoker
7da4f9ef20
GUIFormSpecMenu: Remove field_close_on_enter warning ( #9501 )
2020-03-10 20:30:55 +01:00
Nicolas Abril
30d795b4b2
Remove unnecessary checks before delete ( #9500 )
...
Co-authored-by: Nicolas Abril <nicolasabril@alunos.utfpr.edu.br>
2020-03-10 20:30:42 +01:00
Maksim
0cb34ce158
Fix 2 log messages when player joined to game ( #9477 )
2020-03-08 18:24:32 +01:00
Jean-Patrick Guerrero
c49575ef97
Improve arm physics ( #9485 )
2020-03-08 18:21:55 +01:00
Jordan Snelling
b9a0626d88
Fix star visilibity and documentation (since 946c03c6)
...
Fix memory leak (unused allocation)
Fix star rendering
Rename sky color struct
Fix stars on android
Remove extraneous .data() from android star draw
2020-03-08 16:13:36 +01:00
SmallJoker
23c907befe
Workaround for get_player_information
...
'-1' as value is handled as an error. If there are no RTT updates upon fast connect, set_player_information returned nil.
2020-03-08 13:21:15 +01:00
Jean-Patrick Guerrero
0e88176db8
GUIHyperText: Fix bug with UTF8 chars in action name + simplify UTF8 stringw conversion ( #9437 )
...
Co-authored-by: Pierre-Yves Rollo <dev@pyrollo.com>
2020-03-07 14:01:11 +01:00
sfan5
9ca0b3739c
Fix memory leak in protocol 38 set_sky
2020-03-05 22:36:21 +01:00
sfan5
db95ff2286
Fix linking failures when compiled with Clang 9
2020-03-05 22:05:18 +01:00
sfan5
e774d8ca2f
Fixes around ServerActiveObject on_punch handling
2020-03-05 22:04:23 +01:00
sfan5
ef09e8a4d6
Fix code style to make clang-format happy
2020-03-05 20:55:29 +01:00
Jordach
946c03c69b
set_sky improvements, set_sun, set_moon and set_stars
2020-03-05 20:12:19 +01:00
Wuzzy
580e7e8eb9
Fix pathfinder bugs: returning nil frequently, broken A*, jump through solid nodes ( #9339 )
...
* Fix pathfinder fail when startpos is over air
* Note down pathfinder restrictions
* Implement real A* search
* Pathfinder: Implement buildPath non-recursively
* Update find_path documentation
* Pathfinder: Check if jump path is unobstructed
* Pathfinder: Fix drop check first checking upwards
* Pathfinder: Return nil if source or dest are solid
* Pathfinder: Use priority queue for open list
2020-03-05 12:09:44 +01:00
sfan5
6d8e2d2483
Fix core.get_player_by_name() returning unusable ObjectRef
...
Followup to the previous commit.
2020-03-03 21:21:41 +01:00
sfan5
1761d7d0f8
Fix core.get_connected_players() returning unusable ObjectRefs
...
This bug is only exposed by 91eef646a59575bd9ae792e257bb6ad12fafc0b1
independent of the move of get_connected_players from Lua to C++.
Previously, there would be a small time window where the SAO had
its peer ID set to PEER_ID_INEXISTENT but the RemotePlayer was
still linked to the SAO, resulting in an ObjectRef that crashed
on certain function calls (#9387 ).
2020-03-03 21:21:41 +01:00
v-rob
7dffd08c1a
Add multiple element selection to style
and style_type
( #9380 )
2020-03-01 14:39:57 +00:00
DS
0c08f948d7
GUIInventoryList: fix dropping items when clicking outside of formspec window ( #9422 )
2020-02-26 12:18:05 +01:00
Warr1024
244121b964
Allow texture modifiers in hotbar textures. ( #9271 )
2020-02-26 10:26:24 +01:00
sfan5
e2fc93022b
Fix potential problem with core.get_connected_players()
2020-02-25 16:08:47 +01:00
sfan5
0b8d3f99a5
Move core.get_connected_players() implementation to C++
...
Keeping the ObjectRefs around in a table isn't ideal and this allows
removing the somewhat nonsensical is_player_connected() added in 86ef7147.
2020-02-23 22:24:12 +01:00
sfan5
c657fb343f
Refactor Script API's log_deprecated
2020-02-23 22:24:12 +01:00
sfan5
4da057cc49
Script API: Document ObjectRef handling in a comment
2020-02-23 22:24:12 +01:00
SmallJoker
e8a8185d24
Settings: Fix game minetest.conf flags overriding defaults ( #9404 )
...
The game minetest.conf flags directly overwrote the global minetest.conf default values, resulting in unwanted erased mapgen flags.
* Fix set_mapgen_setting
2020-02-17 19:26:32 +01:00
Danila Shutov
6958071f49
Basic model shading ( #9374 )
2020-02-16 20:37:28 +01:00
Hugues Ross
7ce21788f8
Add animated_image[] formspec element ( #9258 )
2020-02-15 15:33:18 +00:00
SmallJoker
ee7d357602
Key settings: Clear with escape ( #8282 )
...
Key ESCAPE -> Cancel change
Key DELETE -> Remove entry
2020-02-14 20:36:58 +01:00
Wuzzy
ac5f53e364
Fix param2 set to 240 if liquid source was renewed
2020-02-13 20:38:13 +01:00
TheTermos
df74d369a3
Collision detection tweak #2 ( #9365 )
2020-02-13 20:13:07 +01:00
Paramat
c2f48eab4d
Display an error when a noise parameter has too many octaves ( #9394 )
...
Display an error and throw exception when one or more octaves of
a noise has spread < 1, causing random looking broken noise.
2020-02-12 23:15:07 +00:00
sfan5
91eef646a5
Script API: Check that SAOs are still usable before attempting to use them
2020-02-11 19:21:12 +01:00
SmallJoker
4eb3baa51e
StaticText: Reset background on EnrichedString change ( #9340 )
...
This also fixes the F6 profiler background color -> now controlled by EnrichedString
2020-02-01 20:41:32 +01:00
sfan5
ace3c76112
Improve core.sound_play with ephemeral sounds and player exclusion
2020-02-01 20:31:41 +01:00
Ben Deutsch
2b3490db1f
Add limit parameter to decompressZlib
...
This can prevent untrusted data, such as sent over the network,
from consuming all memory with a specially crafted payload.
2020-02-01 14:05:26 +01:00
DS
1116918dbb
Formspec: Create a new class for inventorylists ( #9287 )
2020-02-01 13:55:13 +01:00
TheTermos
908e762479
Collision temporary fix for issue #6886
2020-01-27 19:30:11 +01:00
Hugues Ross
60544ac56f
Add 9-slice background support to button formspec elements ( #9290 )
2020-01-26 19:35:26 +00:00
SmallJoker
cde2a7f6f2
Settings: Add get_flags API for mapgen flags (mg_flags, mgv6_spflags, ...) ( #9284 )
...
Unified flags handling in C++ and Lua Settings API
-> Reading only, for now. Writing can be implemented later, if needed.
API function to read the currently active flags
-> was impossible from Lua
Co-authored-by: Wuzzy <wuzzy2@mail.ru>
2020-01-25 16:56:54 +01:00
SmallJoker
9cb3219f34
EnrichedString: Fix substr segfault caused by non-formatted text
2020-01-24 21:06:30 +01:00
rubenwardy
987b2c5f37
Update translation sources
2020-01-24 18:34:11 +00:00
sfan5
273cdb38a9
CMakeLists: Remove some redundant declarations and flags
2020-01-23 21:29:40 +01:00
sfan5
c8583f9a5e
Organize and sort out some library dependency issues
2020-01-23 21:29:40 +01:00
SmallJoker
a1da9caecf
EnrichedString: Fix uninitialized variable m_default_length
2020-01-23 20:14:46 +01:00
SmallJoker
1892ff3c0d
StaticText/EnrichedString: Styling support ( #9187 )
...
* StaticText/EnrichedString: Styling support
* Fix tooltip fg/bgcolor
* Fix default color for substr(), add unittests
2020-01-22 19:09:11 +01:00
Zaoqi
fab3f5f7c8
Remove zh_* from GETTEXT_BLACKLISTED_LOCALES ( #9229 )
2020-01-22 19:08:07 +01:00
Wuzzy
e05b7dbb3c
Remove unused weight property from objects ( #9320 )
2020-01-22 10:19:27 +01:00
Hugues Ross
3dfb6ecbb2
Formspec: Don't start a button click when the pointer isn't on top ( #9332 )
2020-01-22 10:18:09 +01:00
Wuzzy
0877587cce
Resized torchlike sprite now attaches to surface ( #9303 )
2020-01-20 19:17:54 +00:00
ANAND
e8fd1ce623
Replace stray tab with whitespace in guiFormSpecMenu.cpp ( #9317 )
2020-01-18 16:50:57 +00:00
Hugues Ross
680aaa1bd5
Make clipping of formspec elements more consistent ( #9262 )
2020-01-16 18:41:07 +00:00
lhofhansl
cea4fd2b27
Increase star count to 1000 and decrease radius slightly ( #9307 )
...
* Increase star count to 1000 and decrease radius slightly.
* Adjust star width.
2020-01-16 17:12:34 +01:00
Maksim
c396800629
Android: fix cyrillic characters, update iconv lib ( #9117 )
2020-01-13 07:10:15 +01:00
Montandalar
8d75c118d9
Map download: Escape ':' to '_' ( #9235 )
...
This is necessary under Windows systems, and direct IPv6 connections.
Windows universally disallows ':' from occuring in filenames.
Other disallowed characters on Windows:
\ / * ? " < > |
are not relevant to hostnames, IPv4 or IPv6 addresses.
Anyone who has got an existing server map saved on Linux with ':' in
the world save will want to keep that save.
2020-01-11 20:47:34 +01:00
DS
4c8af5492b
Formspec: change the appeareance of the cursor on fields and co. ( #8665 )
2020-01-11 20:17:11 +01:00
DS
7c0e0c34ec
Formspec: Fix clicking on tooltip-obstructed elements ( #9266 )
2020-01-04 15:45:22 +01:00
Paramat
c162340973
Remove Mapgen V7 floatlands in preparation for new implementation ( #9238 )
...
Preserve the floatland flag of existing worlds, to be used again
when the new implementation is added.
2020-01-04 01:23:57 +00:00
Montandalar
44458896d9
Use appropriate LC_ locale macro for Windows ( #9230 )
...
* Wrap LC_ macro in ifdef
Windows does not have LC_MESSAGES in locale.h, so use LC_ALL on that platform
2019-12-24 19:13:22 +01:00
Lejo
37f771a95b
Fix the player information version_string return value ( #8616 )
...
* Give more player information
* Correct lua_api.txt
* Correct keys in lua_api.txt
* Improve Code
* Only Bugfix+ser_vers
* Correct doc
* Fix double
2019-12-20 19:16:29 +01:00
Hugues Ross
b50dc43f67
Don't override the FGIMG style property if the image parameter is null
2019-12-16 19:26:57 +01:00
Hugues Ross
e42faae8d9
Remove the dependency on FGIMG/BGIMG from the hovered/pressed variants
...
- Make guiButtonImage support null images properly
2019-12-16 19:26:57 +01:00
Hugues Ross
bd4b8d40b3
StyleSpec: 0-initialize the property_set array
2019-12-16 19:26:57 +01:00
SmallJoker
c3d0aab0bc
GUIFormSpecMenu: Fix legacy sorting using std::stable_sort
2019-12-14 21:28:07 +01:00
rubenwardy
8e63d22d64
Fix spaces breaking formspec_version[] tag
2019-12-09 21:05:07 +00:00
Hugues Ross
9284313d17
Refactor to centralize GUIButton styling/rendering code ( #9090 )
2019-12-09 20:06:51 +00:00
SmallJoker
a462181e5f
guiConfirmRegistration: Fix hidden error message
2019-12-09 20:01:16 +01:00
DS
8f73ec6c6c
Formspec: make bgcolor element less confusing and allow setting fullscreen color ( #8996 )
2019-12-08 18:59:30 +01:00
Paul Ouellette
27ce6d0ecc
Clean up craft replacements docs
2019-12-07 23:46:24 +01:00
SmallJoker
103d9c5c53
Renaming the function wasn't enough
2019-12-07 15:55:49 +01:00
SmallJoker
aa8df112ff
Attachments: Fix interpolation from (0,0,0) after detach
...
GenericCAO::getPosition() did not take the camera offset into account
LocalPlayer attachment cleanup: Use sane getParent() function
Make that getPosition() (GenericCAO and LocalPlayer) always return the absolute position
2019-12-07 15:12:26 +01:00
rubenwardy
51f230895c
Fix failing build due to code style error
2019-12-06 23:00:54 +00:00
v-rob
4f45bfd08b
Add scrollbaroptions FormSpec element ( #8530 )
2019-12-06 20:51:10 +00:00
Pierre-Yves Rollo
cf7fda0083
Add z-index management to HUD
2019-12-06 20:31:26 +00:00
SmallJoker
f6de86ce4b
Fix LocalPlayer-bound sound playback broken by 81c2370
2019-12-05 20:52:30 +01:00
sfan5
0b2f0914cc
Improve client-side packet receiving
2019-11-25 20:00:24 +01:00
paramat
154080c883
Caves: Fix shadowing of 'large_cave_depth' to avoid confusion
2019-11-23 01:41:27 +00:00
paramat
ec5f591014
Dungeons: Move duplicated y limit checks to generation function
2019-11-23 01:41:27 +00:00
SmallJoker
b50a166bb0
Formspec: Fix priorities for version < 3 ( #9121 )
...
* Formspec: Fix priorities for version < 3
1) Introduce 'priority' to 'FieldSpec'
2) Sort elements based on 'priority'
3) Assign 'name' to the Item Image Button's image to show tooltips again
2019-11-20 19:39:10 +01:00
Lars Hofhansl
60bff1e6cb
Waves generated with Perlin-type noise #8994
2019-11-19 19:42:52 -08:00
Paramat
b3c245bb46
Move duplicated mapgen parameters to class MapgenBasic ( #9134 )
...
'large_cave_depth', 'dungeon_ymin' and 'dungeon_ymax' are duplicated across many mapgens so should have been in class MapgenBasic from the start.
2019-11-19 19:59:17 +00:00
sfan5
c10952b574
Rework packet receiving in ServerThread
...
Notably it tries to receive all queued packets
between server steps, not just one.
2019-11-19 20:27:20 +01:00
Paramat
97764600e2
Randomwalk cave liquids: Remove deprecated 'lava depth' parameter ( #9105 )
...
Low-disruption first step towards removing the hardcoded cave liquid
code. Since MT 5.0.0 cave liquids can be defined and located by
biome definitions instead.
In games that do not yet use biome definitions to define and locate
cave liquids (MTGame does), lava will now appear below
y = water_level - 256 instead of below 'lava depth' (usually y = -256).
Therefore no change in most mapgens if using the default 'lava depth'.
2019-11-18 23:40:01 +00:00
sfan5
49365b25d9
Optimize semaphore wait with zero timeout on POSIX
2019-11-14 20:20:14 +01:00
sfan5
02111e4961
Fix clang-tidy and lint travis checks
2019-11-11 14:06:48 +01:00
sfan5
c44318a253
[CSM] Fix and improve minetest.get_language()
...
Previously this method would accidentally reset the locale
and break everything.
2019-11-11 14:06:48 +01:00
sfan5
2c4cf508a9
[CSM] Implement minetest.get_csm_restrictions()
...
fixes #8068
2019-11-11 14:06:48 +01:00
sfan5
3f271564e0
Run on_item_use CSM callback even if item is not marked usable
...
Mods may want to to handle item interaction even if the item
is not marked usable (= server-side callback exists).
2019-11-11 14:06:48 +01:00
sfan5
682b9de824
Fix camera:get_offset() in CSM
2019-11-11 14:06:48 +01:00
sfan5
b57dc70769
[CSM] Expose more env functions
2019-11-11 14:06:48 +01:00
sfan5
b0260b5ec8
Refactor CSM restriction code a bit
...
This also fixes find_node_near restrictions being ineffective.
2019-11-11 14:06:48 +01:00
sfan5
4d668f32a6
Call on_secondary_use when object is right-clicked
2019-11-10 13:12:31 +01:00
Paramat
3b0df9760b
Randomwalk caves: Extend beyond mapchunk vertically also ( #9094 )
...
Previously, randomwalk caves only extended beyond the mapchunk
borders horizontally, preventing vertical overlap and
interconnection.
2019-11-10 01:41:20 +00:00
sfan5
d961ece144
Be lenient with extra slashes for CSM paths
2019-11-09 16:08:38 +01:00
sfan5
485b669840
[CSM] Remove non-functional minetest.get_day_count()
2019-11-09 16:08:38 +01:00
sfan5
7e649f985c
Corrections to client_lua_api.txt
2019-11-09 16:08:38 +01:00
sfan5
b1f2a69382
Introduce get_modpath() for CSM
2019-11-09 16:08:38 +01:00
sfan5
82a2e02323
Load client mods into memory before execution.
...
Preperation for server-sent CSM which will eventually need this.
2019-11-09 16:08:38 +01:00