commit cca925377b7929276de3bb04553ca6ee2012d35d
Author: Paramat
Date: Tue Apr 17 22:25:59 2018 +0100
Cavegen: Fix variable typo that broke mgvalleys large cave distribution (#7249)
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'.
commit 574dab5c1195f7ce30cf9b59950a229a953fd59f
Author: rubenwardy
Date: Tue Apr 17 01:45:32 2018 +0100
Add CMakeDoxy* to .gitignore
commit 28813702d67f5d56a7e29cb9473278dcc2ea750e
Author: Paramat
Date: Sun Apr 15 21:56:05 2018 +0100
FOV: Raise lower limit to avoid zoom-loading of distant world (#7234)
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.
commit 326eeca306f7bfb53ae3685eef18978dd81e587e
Author: Muhammad Rifqi Priyo Susanto
Date: Wed Apr 11 03:55:17 2018 +0700
Android: Replace movement buttons with joystick (#7126)
* 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
commit 22ebbe136a8a90bc23d7f910a3dee5bf41632115
Author: sfan5
Date: Mon Apr 9 16:25:57 2018 +0200
Fix segfault caused by wrong wgettext()
commit 9a06d6aa9fa2676a3fb4fa494f9318d0c5d7becb
Author: minduser00
Date: Tue Mar 27 11:49:47 2018 +0000
Fix for translating empty strings
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
commit d58801ab3204757e6c49892a05633281144f4f44
Author: SmallJoker
Date: Mon Apr 9 14:58:35 2018 +0200
upright_sprite: Fix texture position for players
Fixes #6471
commit af868421da766d11d444c8ead30d5b422507800b
Author: Paramat
Date: Mon Apr 9 02:23:47 2018 +0100
Sun colour: Undo colour change. Remove double assignment (#7227)
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.
commit 746ca41f58e356b0fbeeca1b43b7061ad1e1c02d
Author: Paramat
Date: Sat Apr 7 22:09:54 2018 +0100
Biome API / dungeons: Add biome-defined dungeon nodes
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.
commit 460b375cad05cd1c32a061aeef2fd1dfb3fb95b4
Author: Vitaliy
Date: Fri Apr 6 17:33:43 2018 +0300
Fix SAOM (#7200)
* Bugfix
commit 91615f9588420fd716978552fdacf1323b8df11c
Author: rubenwardy
Date: Fri Apr 6 09:52:29 2018 +0100
Add player:get_meta(), deprecate player attributes (#7202)
* Add player:get_meta(), deprecate player attributes
commit 7e3f88f539109955b21a129e4203a1cadb913483
Author: Paramat
Date: Fri Apr 6 00:10:16 2018 +0100
Mgcarpathian: Fix spawn level calculation (#7212)
commit 5701f9e3898e5729e1602bb711af35603c67a964
Author: Paramat
Date: Thu Apr 5 21:52:10 2018 +0100
Mgcarpathian: Remove insignificant 'base' noise variation (#7209)
Was only +-1 node over a scale of thousands of nodes.
Replace with 'base_level' parameter value.
commit c6975febbab02db306329a93d4ccc3249df209e3
Author: Paramat
Date: Thu Apr 5 20:15:38 2018 +0100
Zoom adjustDist(): Improve variable name (#7208)
commit 32d456bd2d4dda50f77c01c702d1b5a5ff26134b
Author: Paramat
Date: Thu Apr 5 17:21:41 2018 +0100
Biome API / cavegen: Add definable cave liquid for a biome (#7192)
Add 'node_cave_liquid' as a new field in biome registration.
If field is absent cave liquids fall back to classic behaviour.
commit 077f231111082272359a916c3e41049aaf699151
Author: Loïc Blot
Date: Wed Apr 4 20:49:42 2018 +0200
[clang-tidy] Promote some performance-* as a coding error (#7194)
* 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
commit 392e80e3f13c977b5499eb424fa7d65085fb08f5
Author: Loïc Blot
Date: Wed Apr 4 10:56:46 2018 +0200
Huge LBM lookup performance improvement on mapblock loading (#7195)
* Huge LBM lookup performance improvement on mapblock loading
commit 5070ca2111dd5b3f333a942059ef2c592de8dc24
Author: Loic Blot
Date: Wed Apr 4 08:40:21 2018 +0200
Fix 5 issues reported by PVS studio
* 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.
commit 8e0b80aa369df7d1142053f077df928106c6ce8c
Author: Loic Blot
Date: Wed Apr 4 07:42:40 2018 +0200
Fix last performance-type-promotion-in-math-fn problems
commit a90d27e1e23fa1c369c05a4d9c6083aa86ef7f52
Author: Loïc Blot
Date: Wed Apr 4 00:43:08 2018 +0200
Optimize a little bit isBlockInSight, adjustDist & collisions (#7193)
* 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
commit 05fe3b06c80fc7fa438ed5faf5805c79a92789e9
Author: Loic Blot
Date: Tue Apr 3 23:05:22 2018 +0200
Fix last clang-tidy reported problems for performance-type-promotion-in-math-fn
Based on
https://travis-ci.org/minetest/minetest/jobs/361810382 output
Also fix 2 missing copyright notices
commit 4827f754ec9efc1e1fa8e519eaa211ed768e25c0
Author: Loic Blot
Date: Tue Apr 3 21:58:29 2018 +0200
Fix more clang-tidy reported problems for performance-type-promotion-in-math-fn
Based on
https://travis-ci.org/minetest/minetest/jobs/361714253 output
commit 67a4cb7d8a4461fe7d5206189fd4e9539beb20b7
Author: Loïc Blot
Date: Tue Apr 3 18:16:17 2018 +0200
Fix various clang-tidy reported performance-type-promotion-in-math-fn
commit baca933b6bcf8c321748defa19769a54b27a89ba
Author: SmallJoker
Date: Tue Apr 3 11:15:58 2018 +0200
Selected ItemStack: Reduce black magic (#6520)
* Selected ItemStack: Reduce black magic
Better button variable value naming
commit 528908a4c3dd190cb7a6007df1e3fcd8e4604bfa
Author: Vitaliy
Date: Tue Apr 3 09:23:46 2018 +0300
Optimize entity-entity collision (#6587)
* Add IrrLicht type aliases
* Add hash for IrrLicht vector
* Add object map
commit 2481ea27ce0f423f3e6f3522539d20e1500cf572
Author: Loïc Blot
Date: Mon Apr 2 23:51:08 2018 +0200
Fix many issues reported by clang-tidy (#7189)
* 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
commit e98fd934ce17a7af0b4629fc88158373303c88a0
Author: SmallJoker
Date: Sun Apr 1 22:50:26 2018 +0200
'fix' LINT, use InventoryLocation==
commit 9fa547bb8013e78991c362b73111a134216307a0
Author: SmallJoker
Date: Sat Mar 31 13:47:19 2018 +0200
Run callback in IDropAction, refactor function arguments
commit f6eff57f7cf504c715f9b58147667f2ae77732c0
Author: SmallJoker
Date: Sat Mar 31 12:30:43 2018 +0200
Add player inventory callbacks
commit 12edb200eb0b61972418a95c704fc1c3dd6357cf
Author: you
Date: Mon Apr 2 16:52:07 2018 +0200
Formspecs: Use mouse wheel to pick up and deposit single items
commit d88c4e18221c7857a7bfe2fbb0f5f6bef1da8d29
Author: Loïc Blot
Date: Sun Apr 1 23:57:55 2018 +0200
LINT: add clang-tidy step (#6295)
* 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
commit 93eb0794d6f7366df5fb375855b2e5e5888304c6
Author: you
Date: Sat Mar 31 14:48:38 2018 +0200
ObjectRef: Add add_velocity() (#3208)
Allow changing the velocity of objects relatively to their current velocity
commit 0a8ca598915a906e665141dc79fc0c1bbab8cc91
Author: SmallJoker
Date: Sat Mar 31 14:33:54 2018 +0200
event.h: Fix import GCC warning caused by ce87310
commit ce873108aa91d19104f46c5acd3350385e7a4541
Author: Loïc Blot
Date: Fri Mar 30 18:32:52 2018 +0200
Client eventmanager refactor (#7179)
* 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
commit 2c490dddc037d7d1cf211bbf28309e31b0abdadd
Author: Paramat
Date: Thu Mar 29 21:08:42 2018 +0100
Mgcarpathian: Mapgen loop optimisations. fabs() -> std::fabs()
* Mgcarpathian: ZYX -> ZXY mapgen loop optimisation.
* 'pow(n, 3)' to 'n * n * n' type optimisations.
* fabs() -> std::fabs().
commit 8f827ee6800974ee451f0e82ac5eafdff63b835e
Author: SmallJoker
Date: Thu Mar 29 21:44:13 2018 +0200
core.rotate_node: Do not trigger after_place_node (#6900)
commit 376ed5cd3c0c61135230a2a14b873436d551d266
Author: nOOb3167
Date: Thu Mar 29 21:43:57 2018 +0200
Sound: fix static initialization order dependency by not having one (#7168)
Ensure singleton is reset
commit 821e3f7072b040f57e33785536a4f00a064a0069
Author: stujones11
Date: Sun Mar 18 17:25:05 2018 +0000
Optional alpha channel support for entities
commit 0396717256bb15ecb76469b7f148cfd6d952b34e
Author: Loic Blot
Date: Thu Mar 29 13:41:48 2018 +0200
Fix a warning introduced by c5b4e541749c50805519ce040d98a0a8e5e0ec03
commit ef979ee2e9b3109e2b5348014e7ae4b3efdd666c
Author: Loic Blot
Date: Thu Mar 29 13:36:01 2018 +0200
Fix a warning reported by clang
minetest/src/script/cpp_api/s_player.h:27:1: warning: struct 'PlayerHPChangeReason' was previously declared as a class [-Wmismatched-tags]
struct PlayerHPChangeReason;
commit 83fc0fd2f1e1a1594ddc31dede65615fbf673365
Author: Loic Blot
Date: Thu Mar 29 13:30:18 2018 +0200
Fix various Client class functions not marked as override (virtual)
Also switch some of them which are reported by clang-tidy
commit 71b2570f0919d3bb5575c9ec694ecd004222fcea
commit 0396717256bb15ecb76469b7f148cfd6d952b34e
Author: Loic Blot
Date: Thu Mar 29 13:41:48 2018 +0200
Fix a warning introduced by c5b4e541749c50805519ce040d98a0a8e5e0ec03
commit ef979ee2e9b3109e2b5348014e7ae4b3efdd666c
Author: Loic Blot
Date: Thu Mar 29 13:36:01 2018 +0200
Fix a warning reported by clang
minetest/src/script/cpp_api/s_player.h:27:1: warning: struct 'PlayerHPChangeReason' was
previously declared as a class [-Wmismatched-tags]
struct PlayerHPChangeReason;
commit 83fc0fd2f1e1a1594ddc31dede65615fbf673365
Author: Loic Blot
Date: Thu Mar 29 13:30:18 2018 +0200
Fix various Client class functions not marked as override (virtual)
Also switch some of them which are reported by clang-tidy
commit 71b2570f0919d3bb5575c9ec694ecd004222fcea
Author: Andrew Ward
Date: Wed Mar 28 22:14:16 2018 +0100
Load dependencies and description from mod.conf
commit dfc81983491417c5cd1c99d7db05e421c409379d
Author: Andrew Ward
Date: Wed Mar 28 16:05:18 2018 +0100
Add reasons to on_dieplayer and on_hpchange
commit 2323842dd3dd336b087ca3cf9756e0680b3a1244
Author: Andrew Ward
Date: Wed Mar 28 16:04:41 2018 +0100
Add formspec theming using prepended strings
commit 040b878cd5f77f6b44622b7c00255b4981500dc8
Author: Loïc Blot
Date: Mon Mar 26 17:44:54 2018 +0200
Update jsoncpp to 1.8.4 (#7172)
commit b0fef16a27b0ec28b6d3a9e9e617da173dc795af
Author: nOOb3167
Date: Mon Mar 26 17:44:40 2018 +0200
Guard sound manager initialization with "enable_sound" (#7167)
commit 9802e59724ac05e7304f9fbd4c93204f7bd00a3d
Author: D Tim Cummings
Date: Tue Mar 27 01:43:59 2018 +1000
macOS: don't require X11 libraries during compilation (#7149)
The xxf86vm needs to be removed from Apple builds to avoid CMake Error XXF86VM_LIBRARY is NOTFOUND
commit 2f280cc6724cd9dd0bf0bbe7a0d07bf888efce27
Author: Paramat
Date: Mon Mar 26 04:59:49 2018 +0100
Mapgen: Remove unused mgv7 code and some unused biometypes
commit 43f98eb47cabd3b8a2f5d2f9e7ae3bb6cf52fd6c
Author: nOOb3167
Date: Sat Mar 24 16:05:26 2018 +0100
Make sounds stop playing when entering game or mainmenu
commit 4fd97158762b4cdd4c73a6e29960e371d9de56e7
Author: Loïc Blot
Date: Sat Mar 24 15:45:25 2018 +0100
Cleanup sound manager class (#7158)
* 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
commit bcd22fc34cf70c3fe246f500633aa42e388fabc4
Author: you
Date: Sat Mar 24 00:31:33 2018 +0100
Print the mod loading time (#7137)
* Print the mod loading time