aboutsummaryrefslogtreecommitdiff
path: root/src/debug.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-04-13World start time: Move to first full light (day night ratio = 1000) (#8410)Paramat2-2/+2
6125 is the time of first full light according to 'get_node_light()', and the time of first full light visually when basic shaders are on. This is the optimum default new world start time, taking all possible games into account. The previous time assumed a game similar to Minetest Game. Games should set this setting themselves according to their needs.
2019-04-12Add Irrlicht-specific smart pointer (#6814)Vitaliy3-0/+269
2019-04-12Add Mkdocs API site (#8133)Paul Ouellette9-5/+192
* Add MkDocs API site
2019-04-11Add node field to PlayerHPChangeReason table (#8368)Paul Ouellette5-14/+39
2019-04-09Nodedef 'drop' documentation: Improve, add tool filtering (#8458)Paramat1-7/+34
2019-04-08util/hex.h: Remove whitespace-only line (#8460)ANAND1-1/+1
2019-04-08daynightratio.h: Improve codestyle, minor optimisations (#8453)Paramat1-30/+34
2019-04-07Android settings: Use 'simple' leaves instead of 'fancy' (#8440)Paramat1-1/+1
'Fancy' leaves are intensive to render. Also remove the unnecessary duplicated setting of 'chunksize'.
2019-04-07Optimize random turns in dungeongen (#8129)Jozef Behran2-12/+11
It turns out there is no need to return the new value and preserve the old one in random_turn, the procedure can be made to modify the value in-place. This saves quite a bunch of parameter and return value copying.
2019-04-07Find PostgreSQL correctly (#8435)adrido2-19/+6
2019-04-07util/hex.h: Reserve result space in hex_encode()starling131-0/+2
Reserve enough space for the result of hex_encode() to eliminate reallocations
2019-04-07Add deprecation warnings for ObjectRef:get/set_attribute (#8443)ANAND1-0/+6
2019-04-04Stabilise 'day night ratio' to fix object brightness flicker (#8417)Paramat1-3/+5
Previously, when basic shaders were enabled, the function time_to_daynight_ratio() returned values jumping between 149 and 150 between times 4375 and 4625, and values jumping between 999 and 1000 between times 6125 and 6375, (and the corresponding times at sunset) due to tiny float errors in the interpolation code. This caused the light level returned by blend_light() to jump between 14 and 15, which became noticeable recently as those light levels were given different visual brightnesses. Add early returns to avoid the problematic interpolation, and to avoid unnecessary running of the loop.
2019-04-04Change sign of pitch angle in debug menu (#8438)ANAND1-1/+1
Co-Authored-By: ClobberXD <ClobberXD@gmail.com>
2019-04-03Change pitch fly binding to 'P', add to change keys menu (#8314)rubenwardy4-32/+30
2019-03-31Fix commentsLoic Blot3-6/+6
2019-03-31Create ServerThread earlier in the startup processLoïc Blot1-3/+1
2019-03-31mapgen: drop mapgen id from child mapgens.Loïc Blot18-40/+36
This id must be owned by the child mapgen and never be set to a misc value by a developer Also use nullptr in some places
2019-03-31EmergeManager::initMapgens use FATAL_ERROR if and drop boolean returnLoïc Blot2-13/+8
We never handle the boolean return, also init twice is a coding error, not a runtime error
2019-03-31Use unordered_map instead of map for craft definitions (#8432)HybridDog1-4/+5
2019-03-27Optimize core.after in a simple way (#8351)DS1-5/+13
2019-03-27Require 'waving = 3' in a nodedef to apply the liquid waving shader (#8418)Paramat6-13/+36
Makes the liquid waving shader per-nodedef like waving leaves/plants, instead of being applied to all liquids. Like the waving leaves/plants shaders, the liquid waving shader can also be applied to meshes and nodeboxes. Derived from a PR by t0ny2.
2019-03-26Dungeons: Do not remove nodes that have 'is_ground_content = false' (#8423)Paramat2-4/+12
Like randomwalk caves, preserve nodes that have 'is_ground_content = false', to avoid dungeons that generate out beyond the edge of a mapchunk destroying nodes added by mods in 'register_on_generated()'. Issue discovered by, and original PR by, argyle77.
2019-03-26Prevent multi-line chat messages server-side (#8420)rubenwardy1-1/+6
2019-03-20Document 'highly unstable' mapgens instead of 'stable' mapgens (#8404)Paramat1-4/+2
2019-03-19Fix texture rotation for wallmounted nodeboxessfan51-1/+1
fixes #8358
2019-03-18httpfetch: Disable IPv6 here too if requested by settings (#8399)sfan51-0/+4
2019-03-18num_emerge_threads: Initialise value to cope with setting syntax error (#8396)Paramat1-3/+3
2019-03-17num_emerge_threads: Fix documentation of automatic selectionparamat2-2/+2
2019-03-17Add newline before itemstring in item tooltip (#8213)Wuzzy1-1/+1
2019-03-17core.after: Improve assertion message (#8388)ANAND1-1/+1
2019-03-17Builtin: Add vector.angle(). Returns the angle between 2 vectors (#7738)ANAND2-0/+11
2019-03-16Lua_api.txt: Document blockpos, coordinate conversion, map terminology (#8376)Paramat1-4/+60
Also fix and improve LVM 'calc_lighting()' warning.
2019-03-14num_emerge_threads: Warn of crashes when > 1 (#8357)Paramat2-6/+10
2019-03-14LINT fixes since recent tooling updateLoïc Blot4-7/+11
2019-03-14Update our tooling (Clang 5 -> 7, GCC 7 -> 8)Loïc Blot8-35/+38
This change permits to use up-to-date compilers, clang-tidy and clang-format It also refactor the tidy/format step to drop the binary selection from scripts and perform it directly in travis
2019-03-14Valleys mapgen code rewrite (#8101)Paramat2-265/+130
Shorter, simpler, clearer and more consistent with other mapgens, while preserving functionality. Base terrain shape is unchanged. With the 'vary river depth' option disabled, river surface level is unchanged. Behaviour of the 4 heat/humidity/river depth options is very slightly changed due to bugfixes and code cleanup (the mapgen is 'unstable'). Apply heat and humidity gradients above water_level instead of above y = 0.
2019-03-12Drop GUIConfirmRegistration::m_address unused fieldLoïc Blot3-5/+4
2019-03-12Fix cast from const by accessing string data directly (#8354)rubenwardy1-2/+2
Fixes #8327
2019-03-12HPChange Reason: Fix push after free, and type being overwritten (#8359)rubenwardy3-5/+17
* HPChange Reason: Fix push after free, and type being overwritten Fixes #8227 and #8344
2019-03-10Fix serialization of std::time_t by casting to u64 first (#8353)rubenwardy4-22/+4
Fixes #8332
2019-03-10Document the `float` special group (#8306)DS1-0/+1
2019-03-10Display pitch angle in debug menu (#8321)Ragulan R1-0/+1
2019-03-10Confirm registration GUI: Remove positional strings to fix Windows bug (#8258)Paramat1-12/+7
Positional strings don't work on some Windows builds. Remove server address string, leave player name string present.
2019-03-07Abort when trying to set a not registered node (#7011)HybridDog4-21/+13
I removed the MapNode constructor which takes a nodename and gives the node's id or CONTENT_IGNORE The code which used this constructor (two places) now handles the situation of not registered nodes correctly: * minetest.set_node and similar functions make minetest crash when a not registered node is passed * reverting a node with rollback aborts if the node is not registered
2019-03-07World config: Make depends easier to read (#7396)HybridDog2-11/+40
* Do not always show every depends textfieds When there are no dependencies, it does not longer show an empty list. * Adjust the list height to avoid a scrollbar when possible * change minimum height and no dependencies message * Do not get depends for modpacks
2019-03-07Optimize string handling in path search (#8098)Jozef Behran1-8/+12
Use "append" method to construct the various game paths instead of wasteful string concatenation. Additionally, use a temporary to extract and reuse a result of a few common subexpressions to further reduce the overhead.
2019-03-07Optimize interaction distance checker (#8193)Jozef Behran2-2/+2
The "what" parameter is being passed by value, most likely by accident as the type is "const std::string". Convert it to a reference by adding the missing "&".
2019-03-07Update a few dependency versions for buildbot (#8319)sfan52-8/+8
2019-03-07Fix detach inventory serialisation (#8331)rubenwardy2-3/+8