aboutsummaryrefslogtreecommitdiff
path: root/src/client (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-04-01LINT: add clang-tidy step (#6295)Loïc Blot8-8/+319
* 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
2018-03-31ObjectRef: Add add_velocity() (#3208)you5-1/+27
Allow changing the velocity of objects relatively to their current velocity
2018-03-31event.h: Fix import GCC warning caused by ce87310SmallJoker1-1/+1
2018-03-30Client eventmanager refactor (#7179)Loïc Blot15-185/+249
* 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
2018-03-29Mgcarpathian: Mapgen loop optimisations. fabs() -> std::fabs()Paramat1-72/+80
* Mgcarpathian: ZYX -> ZXY mapgen loop optimisation. * 'pow(n, 3)' to 'n * n * n' type optimisations. * fabs() -> std::fabs().
2018-03-29core.rotate_node: Do not trigger after_place_node (#6900)SmallJoker3-14/+20
2018-03-29Sound: fix static initialization order dependency by not having one (#7168)nOOb31671-0/+4
Ensure singleton is reset
2018-03-29Optional alpha channel support for entitiesstujones117-9/+32
2018-03-29Fix a warning introduced by c5b4e541749c50805519ce040d98a0a8e5e0ec03Loic Blot2-4/+6
2018-03-29Fix a warning reported by clangLoic Blot1-2/+2
minetest/src/script/cpp_api/s_player.h:27:1: warning: struct 'PlayerHPChangeReason' was previously declared as a class [-Wmismatched-tags] struct PlayerHPChangeReason;
2018-03-29Fix various Client class functions not marked as override (virtual)Loic Blot1-18/+19
Also switch some of them which are reported by clang-tidy
2018-03-28Load dependencies and description from mod.confAndrew Ward20-140/+237
2018-03-28Add reasons to on_dieplayer and on_hpchangeAndrew Ward14-52/+219
2018-03-28Add formspec theming using prepended stringsAndrew Ward16-18/+150
2018-03-26Update jsoncpp to 1.8.4 (#7172)Loïc Blot3-164/+187
2018-03-26Guard sound manager initialization with "enable_sound" (#7167)nOOb31671-1/+2
2018-03-26macOS: don't require X11 libraries during compilation (#7149)D Tim Cummings1-2/+2
The xxf86vm needs to be removed from Apple builds to avoid CMake Error XXF86VM_LIBRARY is NOTFOUND
2018-03-26Mapgen: Remove unused mgv7 code and some unused biometypesParamat3-178/+0
2018-03-24Make sounds stop playing when entering game or mainmenunOOb31671-1/+1
2018-03-24Cleanup sound manager class (#7158)Loïc Blot19-140/+151
* 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
2018-03-24Print the mod loading time (#7137)you1-1/+8
* Print the mod loading time
2018-03-23Fix some gcc 7.3 reported warningsLoic Blot1-1/+5
``` 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(); } ```
2018-03-23Global initialization of sound using SoundManagerGlobal (#7063)nOOb31675-84/+116
* Global initialization of sound using SoundManagerGlobal
2018-03-22Update mesh collector and move it to a separate file (#6904)Vitaliy8-291/+222
* Update MeshCollector * Simplify MeshCollector
2018-03-22Gitlab CI: Disable currently broken ubuntu 16.10 & 17.04 buildsLoïc Blot1-44/+44
I will try to repair them later
2018-03-22Lua_api.txt: Improve noise documentationParamat1-33/+103
2018-03-21Minetest ASCII art: Move from actionstream to rawstreamparamat1-1/+1
2018-03-20Mgfractal / chunksize: Improve documentationparamat1-9/+35
2018-03-20Lua_api.txt: Fix hardware colouring documentationparamat1-3/+3
More 'draw type' -> 'paramtype2' changes, missing from a previous commit.
2018-03-18Add src/unittest/test_world/world.mt to gitignoreLoïc Blot1-0/+1
Fixes #7146
2018-03-17Add missing file to android buildLoic Blot1-0/+1
2018-03-17Fix node-nodebox lighting difference in direct sunlight (#7061)Vitaliy3-29/+71
2018-03-17.gitignore: ignore more files (android, unittests)Loic Blot1-0/+4
2018-03-17Lua_api.txt: Split long lines part 6paramat1-167/+258
2018-03-16Fix a crash or random memory leak when reseting saved environment variable ↵Loic Blot1-2/+6
in test_servermodmanager.cpp
2018-03-16Drop Server::m_enable_rollback_recording it's only used in server constructorLoic Blot2-3/+1
2018-03-16ServerEnvironment::loadDefaultMeta: Loading default meta is only possible ↵Loic Blot3-10/+19
for ServerEnv itself
2018-03-16Forgot to remove obsolete Server::m_modsLoic Blot2-3/+0
2018-03-16Server: delegate mod management & config to ServerModConfiguration (#7131)Loïc Blot13-74/+359
* Server: delegate mod management & config to ServerModConfiguration (rename it to ServerModManager) * Use c++11 range based loops * Add unittests + experimental/default mod as a test case to permit testing mod loading in future tests
2018-03-16Fix an alone if to be with a missing elseLoic Blot1-1/+1
2018-03-16Lua_api.txt: Split long lines part 5, fix hardware colouring docsparamat1-150/+209
2018-03-16Biomes: Fix vertical biome blendparamat1-2/+2
2018-03-15README: Fix Fedora dependencies (#7133)pauloue1-1/+1
2018-03-14Lua_api.txt: Split long lines part 4paramat1-185/+277
2018-03-13Rename 'subgame' to 'game'paramat6-9/+9
2018-03-13Lua_api.txt: Improve and complete drawtype documentationparamat1-27/+67
Move documentation of mesh and plantlike_rooted drawtypes into main section.
2018-03-11Lua_api.txt: Split long lines part 3paramat1-86/+128
2018-03-11Biome API: Add 'get_biome_name(biome_id)' APIparamat4-3/+29
Change name of default biome to a more suitable lowercase 'default'.
2018-03-11Add Voxelarea unittests (#7121)Loïc Blot2-0/+375
* Add voxelarea unittests
2018-03-11Android: typo fix since recent gradle update, as output path changedLoic Blot1-4/+4