summaryrefslogtreecommitdiff
path: root/src/util
AgeCommit message (Collapse)Author
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
2018-08-02Smoothed yaw rotation for objects (#6825)SmallJoker
2018-07-26Fix build on gcc 5.0 (#7586)zeuner
2018-07-06Fix memory leak in guiConfirmRegistrationHybridDog
2018-06-26Fix buffer overrun in SRP (#7484)red-001
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.
2018-06-26Fix MurmurHash implementation to really be unaligned (#7482)sfan5
2018-05-15Use server's zoom fov for distant world loading.Lars Hofhansl
2018-04-23Formspecs: Allow setting alpha value for the box[] elementThomas--S
2018-04-05Zoom adjustDist(): Improve variable name (#7208)Paramat
2018-04-04Fix last performance-type-promotion-in-math-fn problemsLoic Blot
2018-04-04Optimize a little bit isBlockInSight, adjustDist & collisions (#7193)Loïc Blot
* 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
2018-04-03Fix last clang-tidy reported problems for performance-type-promotion-in-math-fnLoic Blot
Based on https://travis-ci.org/minetest/minetest/jobs/361810382 output Also fix 2 missing copyright notices
2018-04-03Fix various clang-tidy reported performance-type-promotion-in-math-fnLoïc Blot
2018-01-12Revert "Add an active object step time budget #6721"Lars Hofhansl
This reverts commit 9c669016d1578a5c62f932c6ccb7a2b4b1e21f0a. See #6907
2018-01-04Fix Wstringop-overflow warning from util/srp.cpp (#6855)you
* Fix Wstringop-overflow warning from util/srp.cpp
2017-12-26Fix rounding error in g/set_node caused by truncation to floatrubenwardy
2017-12-14directiontables: Fix MSVC compiler error (#6785)adrido
2017-12-06Add an active object step time budget #6721Lars Hofhansl
This can be set via the active_object_interval option.
2017-11-15Allow zoom to actually show more data.Lars Hofhansl
This allows the client to retrieve blocks at a greater distance from the server, thus allowing for a real zoom.
2017-11-08Move files to subdirectories (#6599)Vitaliy
* Move files around
2017-10-17directiontables.cpp: fix a warning reported by VS2017Loic Blot
2017-10-15Real global textures (#6105)Vitaliy
* Real global textures * Add world-aligned textures * Update minimal to support world-aligned tiles * Update minimal
2017-09-05Use a Buffer instead of SharedBuffer in ConnectionCommandLoic Blot
This fixes #6373
2017-08-30Remove DSTACK support (#6346)Loïc Blot
Debugstacks is not useful, we don't really use it, the DebugStack is not pertinent, gdb and lldb are better if we really want to debug.
2017-08-25Network cleanup (#6310)Loïc Blot
* Move Connection threads to dedicated files + various cleanups * ConnectionReceiveThread::processPacket now uses function pointer table to route MT packet types * Various code style fixes * Code style with clang-format * Various SharedBuffer copy removal * SharedBuffer cannot be copied anymore using Buffer * Fix many SharedBuffer copy (thanks to delete operator)
2017-08-25Translations: prevent remote crash with invalid translationsEkdohibs
2017-08-24Add clientside translations.Ekdohibs
2017-08-21serialize: use a temporary for SerializeExceptionLoïc Blot
Exception must always use temporary instead of global copied exception instances, it's not recommended and should have undefined issues
2017-08-20Change BS constant from implicit double to float (#6286)Jens Rottmann
the BS constant implicitly promotes all position calculations it is used in to double even though positions (= v3f) are only meant to be floats. There are many, many similar occurrences everywhere, but I'm not willing to hunt down all; I only fixed the little part I'm already familiar with.
2017-08-20Modernize source code: last part (#6285)Loïc Blot
* Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes
2017-08-19Code modernization: subfolders (#6283)Loïc Blot
* Code modernization: subfolders Modernize various code on subfolders client, network, script, threading, unittests, util * empty function * default constructor/destructor * for range-based loops * use emplace_back instead of push_back * C++ STL header style * Make connection.cpp readable in a pointed place + typo
2017-08-19Code modernization: src/m* (part 2)Loic Blot
* empty function * default constructor/destructor * remove unused Map::emergeSector(a,b) * for range-based loops * migrate a dirs[7] table to direction tables * remove various old unused function
2017-08-17C++ modernize: Pragma once (#6264)Loïc Blot
* Migrate cpp headers to pragma once
2017-07-07Expose getPointedThing to LuaDániel Juhász
This commit introduces Raycast, a Lua user object, which can be used to perform a raycast on the map. The ray is continuable, so one can also get hidden nodes (for example to see trough glass).
2017-06-19C++11 cleanup on constructors (#6000)Vincent Glize
* C++11 cleanup on constructors dir script
2017-06-10Remove superfluous pointer null checksQrchackOfficial
2017-06-10C++11 patchset 6: forbid object copy using assigment/copy function deleters ↵Loïc Blot
(#5945) C++11 implement function deleting, it's generally used to prevent some object copy In script API use this function removal on ScriptApiBase instead of ScriptApiClient/Server/MainMenu, this affect all ScriptApis Move DISABLE_CLASS_COPY with constructor, the deleted function permit to replace function in its original place
2017-06-06Use C++11 mutexes only (remove compat code) (#5922)Loïc Blot
* Fix event LINT & remove default constructor/destructors * remove compat code & modernize autolock header
2017-06-05Remove SharedPtr, it's not used and will be never used, we use C++11Loic Blot
2017-06-04C++11 patchset 2: remove util/cpp11.h and util/cpp11_container.h (#5821)Loïc Blot