1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-01 23:50:22 +02:00
Commit Graph

237 Commits

Author SHA1 Message Date
0e439b2fa3 Check hp_max > 0 for entities (#12667) 2022-08-13 15:35:41 +01:00
a871115889 Fix some warnings (#12615) 2022-07-30 12:51:23 +01:00
9f41b4f72d Add check_mod_configuration to main menu 2022-07-14 22:12:54 +01:00
1d512ef7f4 Reduce code duplication between c_converter.cpp and helper.cpp 2022-07-14 20:55:45 +02:00
8ff3fadba0 Remove unnecessary float limits from script API
Leaves a check for NaN and inf.
2022-07-14 20:55:45 +02:00
20bd6bdb68 Animated particlespawners and more (#11545)
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: Dmitry Kostenko <codeforsmile@gmail.com>
2022-07-13 11:57:12 +02:00
e51f474613 Sounds: Various little improvements (#12486)
Use SimpleSoundSpec where reasonable (OpenAL)
Ensure the sound IDs do not underflow or get overwritten -> loop in u16
Proper use of an enum.
2022-07-09 22:32:24 +02:00
18fbc0394b Remove tile_images and special_materials obsolete code (#12455)
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2022-06-28 00:55:01 +01:00
a463620edb Re-order sound-related code (#12382)
Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated
'fade' and 'pitch' values on server-side where only one was used anyway.
SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included.

Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the
future. Per-type version numbers are kept for now as a safety rope in a special case.
2022-06-20 21:56:12 +02:00
f4a53f7ee6 No damage effects on hp_max change (#11846) 2022-06-11 20:00:40 +02:00
8b74257bf3 Reduce size of ContentFeatures structure
On my system this is a reduction from 4664 to 3704 bytes.
This is not for the sake of saving RAM but ensuring
commonly used structures fit into caches better.
2022-05-26 15:49:12 +02:00
ec9f157512 Use native packer to transfer globals into async env(s) 2022-05-10 22:37:42 +02:00
7f58887ae3 Support packing arbitrary graphs (#12289) 2022-05-10 22:37:33 +02:00
89c82035d8 hud_get: Return precision field for waypoints (#12215) 2022-05-04 20:55:20 +02:00
e7659883cc Async environment for mods to do concurrent tasks (#11131) 2022-05-02 20:56:06 +02:00
56a558baf8 Refactor some Lua API functions in preparation for async env 2022-05-02 20:54:55 +02:00
06d197cdd0 Store vector metatable in registry 2022-03-29 18:07:00 +02:00
DS
8d387433b1 Fix the documentation of InvRef:get_lists() and clean up code (#12150) 2022-03-29 18:06:16 +02:00
ba6fbc417e Remove awful Mingw32 workarounds
Instead a warning is triggered if an affected compiler is detected.
closes #12022
2022-02-08 19:31:24 +01:00
1ee37148a8 Fix types of get_mapgen_setting_noiseparams (#12025) 2022-02-04 20:28:43 +01:00
8c99f2232b Don't let HTTP API pass through untrusted function
This has been a problem since the first day, oops.
2021-12-18 20:37:13 +01:00
21113ad410 Split liquid_viscosity to liquid_viscosity and move_resistance (#10810) 2021-10-01 16:21:24 +02:00
75bf9b75ca Make sure relevant std::stringstreams are set to binary 2021-09-11 21:06:57 +02:00
766e885a1b Clean up/improve some scriptapi error handling code 2021-09-10 23:16:46 +02:00
3f1adb49ae Remove redundant on_dieplayer calls 2021-08-28 12:14:16 +02:00
0c1e9603db HUD: Reject and warn on invalid stat types (#11548)
This comes into play on older servers which do not know the "stat" type.
Warnings are only logged once to avoid spam within globalstep callbacks
2021-08-21 20:04:04 +02:00
6e8aebf432 Add bold, italic and monospace font styling for HUD text elements (#11478)
Co-authored-by: Elias Fleckenstein <eliasfleckenstein@web.de>
2021-07-27 19:11:46 +02:00
f2fd443262 Inventory: Make addList() consistent (#11382)
Fixes list clearing for inv:set_list() using same size, since 2db6b07.
addList() now clears the list in all cases. Use setSize() to resize without clearing.
2021-06-30 20:39:38 +02:00
2db6b07de1 Inventory: show error on invalid list names (#11368) 2021-06-20 17:21:50 +02:00
DS
8f085e02a1 Add metatables to lua vectors (#11039)
Add backwards-compatible metatable functions for vectors.
2021-06-04 21:22:33 +02:00
de85bc9227 fix: some code tidy about includes & irr namespaces 2021-05-03 19:49:19 +02:00
ccdd886e27 refacto: Hud: make driver, client, player, inventory, tsrc private & drop unused guienv
also fix c_content.h, on client it includes the src/client/hud.h instead of src/hud.h, which leads to wrong file dependency on the lua stack
2021-05-03 19:49:19 +02:00
3b78a22371 Degrotate support for mesh nodes (#7840) 2021-03-30 00:25:11 +02:00
bf8fb2672e Use place_param2 client-side for item appearance & prediction (#11024) 2021-03-09 00:56:53 +01:00
f85e9ab925 Add nametag background setting and object property (#10937) 2021-02-17 19:51:28 +00:00
a8f6befd39 Fix short_description fallback order (#10943) 2021-02-17 18:53:44 +00:00
83229921e5 Rework use_texture_alpha to provide three opaque/clip/blend modes
The change that turns nodeboxes and meshes opaque when possible is kept,
as is the compatibility code that warns modders to adjust their nodedefs.
2021-01-29 17:34:41 +01:00
edd8c3c664 Drop never documented 'alpha' property from nodedef
Includes minimal support code for practical reasons.
We'll need it for a slightly different purpose next commit.
2021-01-29 17:34:41 +01:00
45ccfe26fb Removed some obsolete code (#10562)
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2021-01-21 18:17:09 +00:00
72b93ec0d7 Fix ObjectRef errors due to lua_isnil() (#10564)
Treat 'none' values as 'nil'
2020-11-04 21:43:18 +01:00
89dd05fdf3 Fix segfault in deprecation logging due to tail call, log by default (#10174) 2020-10-31 18:19:23 +00:00
660115c1ab Decouple entity minimap markers from nametags replacing with show_on_minimap property (#10443) 2020-10-19 20:38:15 +02:00
11f3deb9c4 Pass ContentFeatures as reference to read_content_features (#10464) 2020-10-13 16:36:01 +01:00
DS
f3ae45b2b2 Add a short_description to be used by mods (#8980) 2020-10-09 19:11:21 +01:00
f46509d5e2 Remove unused functions reported by cppcheck (#10463)
Run unused functions reported by cppcheck

This change removes a few (but not all) unused functions.
Some unused helper functions were not removed due to their complexity and potential of future use.
2020-10-05 09:07:33 +02:00
1c38027c3a Fix precision not working in hud_change (#10186) 2020-08-12 11:51:50 +02:00
70df3d54f3 Quick workaround for crashing destructor on Mingw32
closes #10137
2020-07-09 22:01:46 +02:00
3a6dfda358 Make shading of CAOs optional (#10033) 2020-06-16 20:48:31 +01:00
42a9b45c21 Lua API: Log incorrect parameter types as error (#9954)
Incorrect parameter types are logged as errors, taking coercion into account.
This is a workaround to ensure mod compatibility.
Duplicate warnings are ignored per server instance.
2020-06-01 19:02:15 +02:00
732c8008f4 CSM: Fix crashing minetest.get_item_def()
fixes #9884
2020-05-20 20:15:09 +02:00