aboutsummaryrefslogtreecommitdiff
path: root/src/util
AgeCommit message (Collapse)Author
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
2017-05-26Time: Change old `u32` timestamps to 64-bit (#5818)SmallJoker
MacOSX build fix + cleanups
2017-05-11Rework escape/pause menu (#5719)red-001
* Rework escape/pause menu - Remove build information - Use current controls instead of default controls - Add information about the current server in place of the build information - Add text saying the game is paused to if in singleplayer mode. rework pause/escape menu * improve consistency + display server_name
2017-05-06Fix myfloor(0.0)ShadowNinja
2017-05-06Clean up numeric.h and split FacePositionCache from itShadowNinja
I also optiized FacePositionCache a bit: I removed a map lookup and vector copy from both branches of getFacePosition.
2017-04-28Clean up getTime helpersShadowNinja
This increases size of the getTime return values to 64 bits. It also removes the TimeGetter classes since the getTime functions are now very precise.
2017-04-25Fix various points reported by cppcheck (#5656)Loïc Blot
* Fix various performance issues reported by cppcheck + code style (CI) * Make CI happy with code style on master * guiFileSelectMenu: remove useless includes * some performance fixes pointed by cppcheck * remove some useless casts * TextDest: remove unused setFormSpec function * Fix various iterator post-increment reported by cppcheck
2017-04-20Fix various copy instead of const ref reported by cppcheck (part 3) (#5616)Loïc Blot
* Also remove 2 non declared but defined functions * Make some functions around const ref changes const