aboutsummaryrefslogtreecommitdiff
path: root/src/util
AgeCommit message (Collapse)Author
2021-12-01Network: Delete copy constructor and use std::move instead (#11642)SmallJoker
This is a follow-up change which disables class copies where possible to avoid unnecessary memory movements.
2021-10-25Fix item duplication if player dies during interact callback (alternative) ↵sfan5
(#11662)
2021-10-15Make /status message easier to readWuzzy
2021-09-19Fix src/util/string.cpp on NetBSDnia
- iconv() prototype changed from traditional Unix defintion to POSIX definition in 9.99.x. - wchar_t is not a valid character set for iconv. Share code with Android for using UTF-32.
2021-09-17Shave off buffer copies in networking code (#11607)sfan5
2021-09-11Make sure relevant std::stringstreams are set to binarysfan5
2021-07-29Add a simple PNG image encoder with Lua API (#11485)hecks
* Add a simple PNG image encoder with Lua API Add ColorSpec to RGBA converter Make a safety wrapper for the encoder Create devtest examples Co-authored-by: hecktest <> Co-authored-by: sfan5 <sfan5@live.de>
2021-07-11Improve shadow rendering with non-default camera FOV (#11385)x2048
* Adjust minimum filter radius for perspective * Expand shadow frustum when camera FOV changes, reuse FOV distance adjustment from numeric.cpp * Read shadow_soft_radius setting as float * Use adaptive filter radius to accomodate for PSM distortion * Adjust filter radius for texture resolution
2021-05-30Fix base64 validation and add unittests (#10515)Lars Müller
Implement proper padding character checks
2021-04-23Add `minetest.colorspec_to_colorstring` (#10425)Vincent Robinson
2021-04-05Reserve vectors before pushing and other code quality changes (#11161)sfan5
2021-03-16Tweak duration_to_string formattingWuzzy
2021-02-26Keep mapblocks in memory if they're in range (#10714)hecks
Some other minor parts of clientmap.cpp have been cleaned up along the way
2021-02-17Add nametag background setting and object property (#10937)rubenwardy
2021-02-02Drop wide/narrow conversion functionssfan5
The only valid usecase for these is interfacing with OS APIs that want a locale/OS-specific multibyte encoding. But they weren't used for that anywhere, instead UTF-8 is pretty much assumed when it comes to that. Since these are only a potential source of bugs and do not fulfil their purpose at all, drop them entirely.
2021-02-02Refactor utf8_to_wide/wide_to_utf8 functionssfan5
2020-12-24Fix some minor code issues all over the placesfan5
2020-10-01(se)SerializeString: Include max length in the nameSmallJoker
This commit clarifies the maximal length of the serialized strings. It will avoid accidental use of serializeString() when a larger string can be expected. Removes unused Wide String serialization functions
2020-10-01Clean up serializationSmallJoker
This reverts 1a5b4b3 and further functions in serialize.cpp that are unused The intend for a sane NetworkPacket/stream replacement was good, but a wrapper class around i/ostream might be more versatile than introducing a new vector-based serialization class.
2020-08-03Fix build for Visual Studio (explicitly cast pointers) (#10256)Seeker
2020-07-29decode_base64: Allow '=' padding characterSmallJoker
'=' is a valid character, but minetest.decode_base64 returned nil when it was used for padding.
2020-07-28Sanitize world directory names on create. Keep original name separate (#9432)Hugues Ross
Blacklisted characters are replaced by '_' in the path. The display name is stored in world.mt, and duplicate file names are resolved by adding an incrementing suffix (_1, _2, _3, etc).
2020-05-27Value copy / allocation optimizations mostly in server, SAO and serialize codesfan5
2020-05-23Modernize include guards and add missing ones (#9898)Awkor
2020-04-29Add MetricsBackend with prometheus counter supportLoic Blot
2020-04-27Fix truncation warning for F1000_MIN, F1000_MAXsfan5
2020-04-25Add server side translations capability (#9733)EvidenceB Kidscode
* Add server side translations capability
2020-04-17Android: fix handling non-latin characters on older Android devices (#9309)Maksim
2020-04-11Formspecs: Add state-selection to style elements (#9378)Hugues Ross
2020-03-07GUIHyperText: Fix bug with UTF8 chars in action name + simplify UTF8 stringw ↵Jean-Patrick Guerrero
conversion (#9437) Co-authored-by: Pierre-Yves Rollo <dev@pyrollo.com>
2020-01-24EnrichedString: Fix substr segfault caused by non-formatted textSmallJoker
2020-01-23EnrichedString: Fix uninitialized variable m_default_lengthSmallJoker
2020-01-22StaticText/EnrichedString: Styling support (#9187)SmallJoker
* StaticText/EnrichedString: Styling support * Fix tooltip fg/bgcolor * Fix default color for substr(), add unittests
2020-01-13Android: fix cyrillic characters, update iconv lib (#9117)Maksim
2019-11-03Formspec: add hypertext elementPierre-Yves Rollo
2019-09-29Move Quicktune code to util/ (#8871)ANAND
2019-09-21Fix AreaStore's IDs persistence (#8888)SmallJoker
Improve documentation Read old formats Fix free ID function. Return first gap in map
2019-04-08util/hex.h: Remove whitespace-only line (#8460)ANAND
2019-04-07util/hex.h: Reserve result space in hex_encode()starling13
Reserve enough space for the result of hex_encode() to eliminate reallocations
2019-02-09numeric: Fix clang, broken since d5456daSmallJoker
2019-02-07Use true pitch/yaw/roll rotations without loss of precision by pgimeno (#8019)Paul Ouellette
Store the rotation in the node as a 4x4 transformation matrix internally (through IDummyTransformationSceneNode), which allows more manipulations without losing precision or having gimbal lock issues. Network rotation is still transmitted as Eulers, though, not as matrix. But it will stay this way in 5.0.
2019-02-03DragonFly BSD is somewhat identical to FreeBSD (#8159)Leonid Bobrov
2019-01-04Drop libgmp on Android and use mini-gmp (#8047)Loïc Blot
2019-01-03Proselytize the network. Use IEEE F32 (#8030)SmallJoker
* Proselytize the network. Use IEEE F32 * Remove unused V2F1000 functions
2018-12-18ieee_float: Silence compiler warningSmallJoker
Trivial issue reported by @pgimeno
2018-12-13Network: Send IEEE floats (#7768)SmallJoker
2018-11-28Add Lua methods 'set_rotation()' and 'get_rotation()' (#7395)CoderForTheBetter
* Adds Lua methods 'set_rotation()' and 'get_rotation'. Also changed some method names to be more clear. Instead of an f32 being sent over network for yaw, now a v3f is sent for rotation on xyz axes. Perserved Lua method set_yaw/setyaw so that old mods still work, other wise to set yaw they would need to switch to set_rotation(0, yaw, 0).
2018-09-16Light curve: Simplify and improve code, fix darkened daytime sky (#7693)Vitaliy
2018-08-16Raycast: export exact pointing location (#6304)Dániel Juhász
* Return intersection point in node coordinates. * Clarify 'intersection_point' documentation
2018-08-05Replace auth.txt with SQLite auth database (#7279)Ben Deutsch
* Replace auth.txt with SQLite auth database