summaryrefslogtreecommitdiff
path: root/src/util
Commit message (Collapse)AuthorAge
* Drop wide/narrow conversion functionssfan52021-02-02
| | | | | | | | | 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.
* Refactor utf8_to_wide/wide_to_utf8 functionssfan52021-02-02
|
* Fix some minor code issues all over the placesfan52020-12-24
|
* (se)SerializeString: Include max length in the nameSmallJoker2020-10-01
| | | | | | | 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
* Clean up serializationSmallJoker2020-10-01
| | | | | | | | 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.
* Fix build for Visual Studio (explicitly cast pointers) (#10256)Seeker2020-08-03
|
* decode_base64: Allow '=' padding characterSmallJoker2020-07-29
| | | | '=' is a valid character, but minetest.decode_base64 returned nil when it was used for padding.
* Sanitize world directory names on create. Keep original name separate (#9432)Hugues Ross2020-07-28
| | | 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).
* Value copy / allocation optimizations mostly in server, SAO and serialize codesfan52020-05-27
|
* Modernize include guards and add missing ones (#9898)Awkor2020-05-23
|
* Add MetricsBackend with prometheus counter supportLoic Blot2020-04-29
|
* Fix truncation warning for F1000_MIN, F1000_MAXsfan52020-04-27
|
* Add server side translations capability (#9733)EvidenceB Kidscode2020-04-25
| | | | * Add server side translations capability
* Android: fix handling non-latin characters on older Android devices (#9309)Maksim2020-04-17
|
* Formspecs: Add state-selection to style elements (#9378)Hugues Ross2020-04-11
|
* GUIHyperText: Fix bug with UTF8 chars in action name + simplify UTF8 stringw ↵Jean-Patrick Guerrero2020-03-07
| | | | | conversion (#9437) Co-authored-by: Pierre-Yves Rollo <dev@pyrollo.com>
* EnrichedString: Fix substr segfault caused by non-formatted textSmallJoker2020-01-24
|
* EnrichedString: Fix uninitialized variable m_default_lengthSmallJoker2020-01-23
|
* StaticText/EnrichedString: Styling support (#9187)SmallJoker2020-01-22
| | | | | | | | * StaticText/EnrichedString: Styling support * Fix tooltip fg/bgcolor * Fix default color for substr(), add unittests
* Android: fix cyrillic characters, update iconv lib (#9117)Maksim2020-01-13
|
* Formspec: add hypertext elementPierre-Yves Rollo2019-11-03
|
* Move Quicktune code to util/ (#8871)ANAND2019-09-29
|
* Fix AreaStore's IDs persistence (#8888)SmallJoker2019-09-21
| | | | | Improve documentation Read old formats Fix free ID function. Return first gap in map
* util/hex.h: Remove whitespace-only line (#8460)ANAND2019-04-08
|
* util/hex.h: Reserve result space in hex_encode()starling132019-04-07
| | | Reserve enough space for the result of hex_encode() to eliminate reallocations
* numeric: Fix clang, broken since d5456daSmallJoker2019-02-09
|
* Use true pitch/yaw/roll rotations without loss of precision by pgimeno (#8019)Paul Ouellette2019-02-07
| | | | | 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.
* DragonFly BSD is somewhat identical to FreeBSD (#8159)Leonid Bobrov2019-02-03
|
* Drop libgmp on Android and use mini-gmp (#8047)Loïc Blot2019-01-04
|
* Proselytize the network. Use IEEE F32 (#8030)SmallJoker2019-01-03
| | | | | * Proselytize the network. Use IEEE F32 * Remove unused V2F1000 functions
* ieee_float: Silence compiler warningSmallJoker2018-12-18
| | | | Trivial issue reported by @pgimeno
* Network: Send IEEE floats (#7768)SmallJoker2018-12-13
|
* Add Lua methods 'set_rotation()' and 'get_rotation()' (#7395)CoderForTheBetter2018-11-28
| | | | * 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).
* Light curve: Simplify and improve code, fix darkened daytime sky (#7693)Vitaliy2018-09-16
|
* Raycast: export exact pointing location (#6304)Dániel Juhász2018-08-16
| | | | | * Return intersection point in node coordinates. * Clarify 'intersection_point' documentation
* Replace auth.txt with SQLite auth database (#7279)Ben Deutsch2018-08-05
| | | | * Replace auth.txt with SQLite auth database
* Smoothed yaw rotation for objects (#6825)SmallJoker2018-08-02
|
* Fix build on gcc 5.0 (#7586)zeuner2018-07-26
|
* Fix memory leak in guiConfirmRegistrationHybridDog2018-07-06
|
* Fix buffer overrun in SRP (#7484)red-0012018-06-26
| | | The old code got a pointer to the array instead of the first element, this resulted in a buffer overflow when the function was used more than once.
* Fix MurmurHash implementation to really be unaligned (#7482)sfan52018-06-26
|
* Use server's zoom fov for distant world loading.Lars Hofhansl2018-05-15
|
* Formspecs: Allow setting alpha value for the box[] elementThomas--S2018-04-23
|
* Zoom adjustDist(): Improve variable name (#7208)Paramat2018-04-05
|
* Fix last performance-type-promotion-in-math-fn problemsLoic Blot2018-04-04
|
* Optimize a little bit isBlockInSight, adjustDist & collisions (#7193)Loïc Blot2018-04-04
| | | | * Use constexpr + unroll some calculations to cache definitively some calculations * Unroll some calls in collision code & use a constref instead of a copy in one occurence
* Fix last clang-tidy reported problems for performance-type-promotion-in-math-fnLoic Blot2018-04-03
| | | | | | Based on https://travis-ci.org/minetest/minetest/jobs/361810382 output Also fix 2 missing copyright notices
* Fix various clang-tidy reported performance-type-promotion-in-math-fnLoïc Blot2018-04-03
|
* Revert "Add an active object step time budget #6721"Lars Hofhansl2018-01-12
| | | | | This reverts commit 9c669016d1578a5c62f932c6ccb7a2b4b1e21f0a. See #6907
* Fix Wstringop-overflow warning from util/srp.cpp (#6855)you2018-01-04
| | | | * Fix Wstringop-overflow warning from util/srp.cpp