aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Android: Replace movement buttons with joystick (#7126)Muhammad Rifqi Priyo Susanto2018-04-10
| | | | | | | | | | | | | | | | | * 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
* Fix segfault caused by wrong wgettext()sfan52018-04-09
|
* Fix for translating empty stringsminduser002018-04-09
| | | | | | | 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
* upright_sprite: Fix texture position for playersSmallJoker2018-04-09
| | | | Fixes #6471
* Sun colour: Undo colour change. Remove double assignment (#7227)Paramat2018-04-09
| | | | | | | 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.
* Biome API / dungeons: Add biome-defined dungeon nodesParamat2018-04-07
| | | | | | | | | | 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.
* Fix SAOM (#7200)Vitaliy2018-04-06
| | | | * Bugfix
* Add player:get_meta(), deprecate player attributes (#7202)rubenwardy2018-04-06
| | | | * Add player:get_meta(), deprecate player attributes
* Mgcarpathian: Fix spawn level calculation (#7212)Paramat2018-04-06
|
* Mgcarpathian: Remove insignificant 'base' noise variation (#7209)Paramat2018-04-05
| | | | Was only +-1 node over a scale of thousands of nodes. Replace with 'base_level' parameter value.
* Zoom adjustDist(): Improve variable name (#7208)Paramat2018-04-05
|
* Biome API / cavegen: Add definable cave liquid for a biome (#7192)Paramat2018-04-05
| | | | Add 'node_cave_liquid' as a new field in biome registration. If field is absent cave liquids fall back to classic behaviour.
* [clang-tidy] Promote some performance-* as a coding error (#7194)Loïc Blot2018-04-04
| | | | | | | * 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
* Huge LBM lookup performance improvement on mapblock loading (#7195)Loïc Blot2018-04-04
| | | | * Huge LBM lookup performance improvement on mapblock loading
* Fix 5 issues reported by PVS studioLoic Blot2018-04-04
| | | | | | | | * 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.
* 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 more clang-tidy reported problems for performance-type-promotion-in-math-fnLoic Blot2018-04-03
| | | | Based on https://travis-ci.org/minetest/minetest/jobs/361714253 output
* Fix various clang-tidy reported performance-type-promotion-in-math-fnLoïc Blot2018-04-03
|
* Selected ItemStack: Reduce black magic (#6520)SmallJoker2018-04-03
| | | | * Selected ItemStack: Reduce black magic Better button variable value naming
* Optimize entity-entity collision (#6587)Vitaliy2018-04-03
| | | | | | * Add IrrLicht type aliases * Add hash for IrrLicht vector * Add object map
* Fix many issues reported by clang-tidy (#7189)Loïc Blot2018-04-02
| | | | | | | | | | | * 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
* 'fix' LINT, use InventoryLocation==SmallJoker2018-04-02
|
* Run callback in IDropAction, refactor function argumentsSmallJoker2018-04-02
|
* Add player inventory callbacksSmallJoker2018-04-02
|
* Formspecs: Use mouse wheel to pick up and deposit single itemsyou2018-04-02
|
* LINT: add clang-tidy step (#6295)Loïc Blot2018-04-01
| | | | | | | | | * 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
* ObjectRef: Add add_velocity() (#3208)you2018-03-31
| | | | Allow changing the velocity of objects relatively to their current velocity
* event.h: Fix import GCC warning caused by ce87310SmallJoker2018-03-31
|
* Client eventmanager refactor (#7179)Loïc Blot2018-03-30
| | | | | | | | | | | | | | | | | | | | | * Drop EventManager from GameDef & do some client cleanups * EventManager is only used by Client. Don't expose it on Server & GameDef for nothing * Drop Client::event() in favor of direct calls to getEventManager * Cleanup some event put from new + put to put(new) * MtEvent: add Type(u8) enum * This will enhance event performance & ensure stricter type * Drop MtEvent::checkIs (unused) * clang-tidy reported fixes * Code style * Move event_manager.h to the client directory as it's only used by client Add EventManager unittests + switch to unordered_map as order is not important here Drop a unused function
* Mgcarpathian: Mapgen loop optimisations. fabs() -> std::fabs()Paramat2018-03-29
| | | | | | | * Mgcarpathian: ZYX -> ZXY mapgen loop optimisation. * 'pow(n, 3)' to 'n * n * n' type optimisations. * fabs() -> std::fabs().
* core.rotate_node: Do not trigger after_place_node (#6900)SmallJoker2018-03-29
|
* Sound: fix static initialization order dependency by not having one (#7168)nOOb31672018-03-29
| | | | Ensure singleton is reset
* Optional alpha channel support for entitiesstujones112018-03-29
|
* Fix a warning introduced by c5b4e541749c50805519ce040d98a0a8e5e0ec03Loic Blot2018-03-29
|
* Fix a warning reported by clangLoic Blot2018-03-29
| | | | | minetest/src/script/cpp_api/s_player.h:27:1: warning: struct 'PlayerHPChangeReason' was previously declared as a class [-Wmismatched-tags] struct PlayerHPChangeReason;
* Fix various Client class functions not marked as override (virtual)Loic Blot2018-03-29
| | | | Also switch some of them which are reported by clang-tidy
* Load dependencies and description from mod.confAndrew Ward2018-03-28
|
* Add reasons to on_dieplayer and on_hpchangeAndrew Ward2018-03-28
|
* Add formspec theming using prepended stringsAndrew Ward2018-03-28
|
* Update jsoncpp to 1.8.4 (#7172)Loïc Blot2018-03-26
|
* Guard sound manager initialization with "enable_sound" (#7167)nOOb31672018-03-26
|
* macOS: don't require X11 libraries during compilation (#7149)D Tim Cummings2018-03-26
| | | The xxf86vm needs to be removed from Apple builds to avoid CMake Error XXF86VM_LIBRARY is NOTFOUND
* Mapgen: Remove unused mgv7 code and some unused biometypesParamat2018-03-26
|
* Make sounds stop playing when entering game or mainmenunOOb31672018-03-24
|
* Cleanup sound manager class (#7158)Loïc Blot2018-03-24
| | | | | | | | | | * Cleanup sound manager client * Use some const refs * Use auto on iterators * Drop unused parameters * Move sound_openal.* to client folder * Move sound.cpp + OnDemandSoundFetcher to client/ folder + reorganize includes properly
* Print the mod loading time (#7137)you2018-03-24
| | | | * Print the mod loading time
* Fix some gcc 7.3 reported warningsLoic Blot2018-03-23
| | | | | | | | | | | ``` src/client/joystick_controller.h:85:2: warning: duplicate 'virtual' declaration specifier [-Wduplicate-decl-specifier] virtual bool isTriggered(const irr::SEvent::SJoystickEvent &ev) const; /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.3.1/../../../../include/c++/7.3.1/ext/new_allocator.h:140:22: warning: destructor called on non-final 'JoystickAxisCmb' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] destroy(_Up* __p) { __p->~_Up(); } /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.3.1/../../../../include/c++/7.3.1/ext/new_allocator.h:140:22: warning: destructor called on non-final 'JoystickButtonCmb' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] destroy(_Up* __p) { __p->~_Up(); } ```
* Global initialization of sound using SoundManagerGlobal (#7063)nOOb31672018-03-23
| | | | * Global initialization of sound using SoundManagerGlobal