aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-05-01Fix invisible chat error messages (#7289)Vincent Glize
2018-04-30nodedef: Delete two unused method definitions (#7288)Kuma_jjw
2018-04-30Global new() or grab() to be managed in constuctor only (#7235 partial) (#7236)JDCodeIt
* g_extrusion_mesh_cache new() and grab() to be managed in constuctor only (#7235 partial) This global was getting grab()-ed by each call to getItemMesh, incrementing its reference count. What was to be the final drop() in the destructor ended up with > 0 reference count, so memory not freed by Irrlicht.
2018-04-30Allow damage for attached objects, add attach/detach callbacks (#6786)SmallJoker
* Allow right-clicking on attached LuaEntities
2018-04-30MetaDataRef: Add contains() and get() (#7214)rubenwardy
2018-04-29Mapgen caves: Re-order generation to fix cavern bugParamat
Previously, caverns confused tunnel generation causing biome top and filler nodes to appear in caverns. Split 'generateCaves()' into 2 functions to separate tunnel and large randomwalk cave generation. In each mapgen re-order cave generation to generate tunnels before caverns.
2018-04-26Biome-defined cave liquids: Use faster biome calculationparamat
2018-04-26Biome-defined dungeon nodes: Use faster biome calculationparamat
2018-04-25Dungeons: Mostly fix missing stair nodesParamat
2018-04-24Mgvalleys: Code cleanupParamat
Split some long lines. Edit comments. Remove unnecessary comments and unnecessary commented-out code. Use std::fmax/fmin instead of MYMAX/MYMIN. Remove scope-limiting braces. Consistently define literals as floats, except in noise parameters. Cleanup literals in noise parameters. Remove unnecessary 'near_cavern' line. Reduce max spawn y to be consistent with other mapgens.
2018-04-23Move ASCII art to std::cerr, to remove it from logsrubenwardy
2018-04-23Formspecs: Allow setting alpha value for the box[] elementThomas--S
2018-04-21Mgvalleys: Use shared tunnel / cavern code instead of internalParamat
Caverns first appeared in mgvalleys and were later added to other mapgens as shared code. Now this shared code can replace mgvalley's internal cavern code. Also use shared tunnel code instead of internal code. Changes to mapgen that will affect existing worlds (mgvalleys is not stable): Single lava and water sources not added in tunnels. Previous caverns are unchanged but an equal number of new ones are added at a distance from the previous. From y = -256 to 192 nodes below, where the caverns taper at their upper limit, they will have a slightly different shape as the taper is now linear.
2018-04-21Cave liquids: Use a more precise point for calculating biomeParamat
Use the centre point of the route being carved for a more precise match between cave liquids and biome.
2018-04-21Fix i386 bit build at OpenBSD (#7259)mazocomp
2018-04-20Node resolver: Make error on fallback optional, disable for mapgen aliasesParamat
2018-04-19Add online content repositoryrubenwardy
Replaces mods and texture pack tabs with a single content tab
2018-04-18Fix wrong channel number representation in logs (#7205)SmallJoker
2018-04-18PlayerSettings struct for player movement code (#7243)Ben Deutsch
Instead of calling g_settings->getBool("flag") multiple times during each movement step, the current settings are cached in a new player object member. Updated via registered callbacks.
2018-04-18Android: Modify touch screen GUI's buttons (#7240)Muhammad Rifqi Priyo Susanto
* Android: Add zoom, minimap, and toggle chat button Zoom button is put above jump button. Minimap and toggle chat button are put in settings bar. * Jump button is rotated down button * Move three buttons on the right screen higher
2018-04-17Cavegen: Fix variable typo that broke mgvalleys large cave distribution (#7249)Paramat
Fix elusive 5 year old bug that caused mgvalleys large caves to be flat and limited to mapchunk borders. Error was fixed 2 years ago in 'CavesV6' but not in 'CavesRandomWalk'.
2018-04-15FOV: Raise lower limit to avoid zoom-loading of distant world (#7234)Paramat
In the client, raise lower limit from 30 to 45 degrees, to avoid server seeing this as a zoom and loading world beyond the server-set limit. Add minimum in settingtypes.txt and enforce lower limit when set using minetest.conf. In the server, distrust the client-sent FOV if below the heuristic zoom threshold and use the player object property 'zoom_fov' to check it, to protect against hacked clients.
2018-04-10Android: Replace movement buttons with joystick (#7126)Muhammad Rifqi Priyo Susanto
* Android: Replace movement buttons with joystick Replace movement control buttons (arrows at bottom left screen) with virtual joystick. Joystick has 8 directions (same as keyboard). Basically, just map it to keyboard input. Joystick applies only on left 1/3 of screen. Joystick's position can be fixed by enabling fixed_virtual_joystick setting. Three new images: (1) placeholder joystick, (2) joystick container (background), and (3) joystick cursor. Remove unused images: movement control buttons (*_arrow.png). New data type: touch_gui_joystick_move_id Joystick's fixed position is spaced one button size from bottom and from left of screen. Remove unused variable: m_joystick_downlocation
2018-04-09Fix segfault caused by wrong wgettext()sfan5
2018-04-09Fix for translating empty stringsminduser00
Fix for incorrect translation of empty strings In the key change menu, when a button key not have name an empty string is passed to gettext. The empty string is reserved for gettext to return de header of the .po file an this is shoved in the button
2018-04-09upright_sprite: Fix texture position for playersSmallJoker
Fixes #6471
2018-04-09Sun colour: Undo colour change. Remove double assignment (#7227)Paramat
Commit 5070ca2111dd5b3f333a942059ef2c592de8dc24 changed sun colour by fixing what seemed to be a code mistake. Return to the standard colour but comment-out the first assignment of the double-assignment for performance. Add a comment to explain.
2018-04-07Biome API / dungeons: Add biome-defined dungeon nodesParamat
Add new biome fields 'node_dungeon', 'node_dungeon_alt', 'node_dungeon_stair'. If 'node_dungeon' is not defined dungeons fall back to classic behaviour. Remove messy and imprecise dungeon material code from 'generateBiomes()'. Code deciding dungeon materials is now in 'generateDungeons()' and uses the biome at mapchunk centre for more precision. Remove hardcoded 'MG_STONE' types as long intended.
2018-04-06Fix SAOM (#7200)Vitaliy
* Bugfix
2018-04-06Add player:get_meta(), deprecate player attributes (#7202)rubenwardy
* Add player:get_meta(), deprecate player attributes
2018-04-06Mgcarpathian: Fix spawn level calculation (#7212)Paramat
2018-04-05Mgcarpathian: Remove insignificant 'base' noise variation (#7209)Paramat
Was only +-1 node over a scale of thousands of nodes. Replace with 'base_level' parameter value.
2018-04-05Zoom adjustDist(): Improve variable name (#7208)Paramat
2018-04-05Biome API / cavegen: Add definable cave liquid for a biome (#7192)Paramat
Add 'node_cave_liquid' as a new field in biome registration. If field is absent cave liquids fall back to classic behaviour.
2018-04-04[clang-tidy] Promote some performance-* as a coding error (#7194)Loïc Blot
* Promote performance-type-promotion-in-math-fn as a coding error * Promote performance-faster-string-find too (which is not problematic currently) * Same for performance-implicit-cast-in-loop * Fix remaining tidy points
2018-04-04Huge LBM lookup performance improvement on mapblock loading (#7195)Loïc Blot
* Huge LBM lookup performance improvement on mapblock loading
2018-04-04Fix 5 issues reported by PVS studioLoic Blot
* src/sky.cpp 146 warn V519 The 'suncolor_f.r' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 142, 146. * src/sky.cpp 147 warn V519 The 'suncolor_f.g' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 143, 147. * src/sky.cpp 148 warn V519 The 'suncolor_f.b' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 144, 148. * src/threading/thread.cpp 63 err V730 Not all members of a class are initialized inside the constructor. Consider inspecting: m_thread_obj. * src/server.cpp 3243 err V595 The 'log' pointer was utilized before it was verified against nullptr. Check lines: 3243, 3258.
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 more clang-tidy reported problems for performance-type-promotion-in-math-fnLoic Blot
Based on https://travis-ci.org/minetest/minetest/jobs/361714253 output
2018-04-03Fix various clang-tidy reported performance-type-promotion-in-math-fnLoïc Blot
2018-04-03Selected ItemStack: Reduce black magic (#6520)SmallJoker
* Selected ItemStack: Reduce black magic Better button variable value naming
2018-04-03Optimize entity-entity collision (#6587)Vitaliy
* Add IrrLicht type aliases * Add hash for IrrLicht vector * Add object map
2018-04-02Fix many issues reported by clang-tidy (#7189)Loïc Blot
* Fix many issues reported by clang-tidy We have many issues in code related to some performance to float <-> double. Clang-tidy reported it in performance-type-promotion-in-math-fn I fixed many of them. It's not ready for a promote to blocking Also fix some value which should be const-ref
2018-04-02'fix' LINT, use InventoryLocation==SmallJoker
2018-04-02Run callback in IDropAction, refactor function argumentsSmallJoker
2018-04-02Add player inventory callbacksSmallJoker
2018-04-02Formspecs: Use mouse wheel to pick up and deposit single itemsyou
2018-04-01LINT: add clang-tidy step (#6295)Loïc Blot
* Implement new travis clang-tidy build step * This step enable some rules and enforce one rule as error * This permits to have some C++ quality rules based on clang & clang contributor guidelines * Fix clang-tidy reported problems on push_back -> emplace_back