]> git.lizzy.rs Git - dragonfireclient.git/log
dragonfireclient.git
6 years agoIrrlicht cleanup: cleanup various object to use RenderingEngine (#6088)
Loïc Blot [Sun, 2 Jul 2017 18:29:58 +0000 (20:29 +0200)]
Irrlicht cleanup: cleanup various object to use RenderingEngine (#6088)

* Irrlicht cleanup: cleanup various object to use RenderingEngine

* CAO doesn't need scenemanager in addToScene
* Camera doesn't need VideoDriver pointer or SceneManager in constructor
* Hud doesn't need driver & scene manager in constructor
* Hud doesn't need scenemanager pointer
* Tile.h doesn't need IrrlichtDevice header (just SMaterial)
* WieldMeshSceneNode: only take scene, we always use scene root node as parent

6 years agoCamera: Improve arm inertia
Jean-Patrick Guerrero [Wed, 28 Jun 2017 07:45:59 +0000 (09:45 +0200)]
Camera: Improve arm inertia

6 years agoDungeons: Add setting to prevent projecting dungeons
paramat [Mon, 26 Jun 2017 05:24:30 +0000 (06:24 +0100)]
Dungeons: Add setting to prevent projecting dungeons

Prevents dungeons generating into ignore nodes in ungenerated mapchunks,
which can occasionally result in a dungeon projecting from the terrain.

6 years agoInclude TILE_MATERIAL_OPAQUE in shaders header (#6086)
stujones11 [Sat, 1 Jul 2017 16:01:07 +0000 (17:01 +0100)]
Include TILE_MATERIAL_OPAQUE in shaders header (#6086)

7 years agoC++11 cleanup inventorymanager (#6077)
Vincent Glize [Sat, 1 Jul 2017 12:07:40 +0000 (14:07 +0200)]
C++11 cleanup inventorymanager (#6077)

* C++11 cleanup inventorymanager

7 years agoTile material: Add 'TILE_MATERIAL_OPAQUE', use for drawtype 'NDT_NORMAL'
stujones11 [Wed, 7 Jun 2017 17:52:38 +0000 (18:52 +0100)]
Tile material: Add 'TILE_MATERIAL_OPAQUE', use for drawtype 'NDT_NORMAL'

Prevents normal drawtype nodes having transparency.
Avoids clients cheating by using 'x-ray' texture packs with transparent textures.

7 years agoCreate a filesystem abstraction layer for CSM and only allow accessing files that...
red-001 [Fri, 30 Jun 2017 18:14:39 +0000 (19:14 +0100)]
Create a filesystem abstraction layer for CSM and only allow accessing files that are scanned into it. (#5965)

* Load client-side mods into memory before executing them.

This removes the remaining filesystem access that client-sided mods had and it will hopefully make then more secure.

* Lua Virtual filesystem: don't load the files into memory just scan the filenames into memory.

* Fix the issues with backtrace

* fix most of the issues

* fix code style.

* add a comment

7 years agoMapgen: Remove unnecessary 'this->' from constructors (#6069)
Paramat [Fri, 30 Jun 2017 13:32:35 +0000 (14:32 +0100)]
Mapgen: Remove unnecessary 'this->' from constructors (#6069)

7 years agoChange the server description after a search (#6074)
Vincent Glize [Thu, 29 Jun 2017 05:53:44 +0000 (07:53 +0200)]
Change the server description after a search (#6074)

7 years agoMgv7: Fix undefined 'float_mount_height'
paramat [Wed, 28 Jun 2017 08:35:46 +0000 (09:35 +0100)]
Mgv7: Fix undefined 'float_mount_height'

Commit cad10ce3b747b721fd63784915e05f12bc488128 altered the parameter
'float_mount_height' but was missing the necessary line in the constructor
to get the altered value from 'params'.

Fixes 3D floatland terrain generating everywhere.

7 years agoFix for empty key/value when reading item string with wear but no metadata (#6058)
Jesse McDonald [Tue, 27 Jun 2017 10:34:11 +0000 (05:34 -0500)]
Fix for empty key/value when reading item string with wear but no metadata (#6058)

7 years agoFix msvc annoyances (#5963)
adrido [Tue, 27 Jun 2017 09:54:40 +0000 (11:54 +0200)]
Fix msvc annoyances (#5963)

* MSVC: Fix '/std:c++11' is not a valid compiler option

* MSVC/MINGW: Define 'WIN32_LEAN_AND_MEAN' for the whole project

In some obscure cases 'Windows.h" got includet before that definition, which leaded to compilation warnings+errors

* MSVC: '/arch:SSE' is only available for x86

* MSVC: Fix float conversation

* MSVC/MINGW: use winthreads on Windows

* MSVC: 'USE_CMAKE_CONFIG' might be already definied by CMake build system

* MSVC: Use all available cpu cores for compiling

* Add missing include ctime and use std::time_t

7 years agoFix arm inertia limit case
kilbith [Tue, 27 Jun 2017 09:26:13 +0000 (11:26 +0200)]
Fix arm inertia limit case

7 years agoFix undefined behaviour in arm movement when dividing by zero
Loic Blot [Mon, 26 Jun 2017 21:19:47 +0000 (23:19 +0200)]
Fix undefined behaviour in arm movement when dividing by zero

7 years agoIsolate irrlicht references and use a singleton (#6041)
Loïc Blot [Mon, 26 Jun 2017 18:11:17 +0000 (20:11 +0200)]
Isolate irrlicht references and use a singleton (#6041)

* Add Device3D class which will contain IrrlichtDevice interface

move getSupportedVideoDrivers to Device3D

Add Device3D singleton & use it in various places

Rename Device3D to Rendering engine & add helper functions to various device pointers

More singleton work

RenderingEngine owns draw_load_screen

move draw functions to RenderingEngine

Reduce IrrlichtDevice exposure and guienvironment

RenderingEngine: Expose get_timer_time() to remove device from guiEngine

Make irrlichtdevice & scene manager less exposed

* Code style fixes

* Move porting::getVideoDriverName, getVideoDriverFriendlyName, getDisplayDensity, getDisplaySize to RenderingEngine

Fix XORG_USED macro -> RenderingEngine + create_engine_device from RenderingEngine constructor directly

* enum paralax => enum parallax

7 years agoFix Camera::add_arm_inertia -> addArmInertia
Loic Blot [Mon, 26 Jun 2017 18:10:11 +0000 (20:10 +0200)]
Fix Camera::add_arm_inertia -> addArmInertia

7 years agoAdd Arm Inertia (#6050)
kilbith [Mon, 26 Jun 2017 18:03:48 +0000 (20:03 +0200)]
Add Arm Inertia (#6050)

7 years agoOres: Make 'absheight' flag non-functional
paramat [Thu, 22 Jun 2017 05:50:22 +0000 (06:50 +0100)]
Ores: Make 'absheight' flag non-functional

The 'absheight' flag was added years ago for the floatlands of 'indev'
mapgen (now deleted). The feature mirrored all ore placement around y = 0
to place ores in floatlands.

In MTG we now use dedicated ore registrations for floatlands.

The feature is crude, inflexible, problematic and very rarely used, it
also makes ore vertical range code more complex.
Minetest 0.5 is a good chance to remove the feature.

The flag itself remains to not break flag values.

7 years agoRevert "Ores: Make 'absheight' flag non-functional"
Loic Blot [Sun, 25 Jun 2017 21:08:31 +0000 (23:08 +0200)]
Revert "Ores: Make 'absheight' flag non-functional"

This reverts commit 90ed6fc732ca667ca970b7c38d39c809e5c3553e.

7 years agoInventory: Fix wrong stack size behaviour and item loss (#6039)
SmallJoker [Sun, 25 Jun 2017 09:39:39 +0000 (11:39 +0200)]
Inventory: Fix wrong stack size behaviour and item loss (#6039)

Also fix itemFits and remove constness-nonsense

7 years agoMgv7: Clean up divide-by-zero fix
paramat [Sun, 25 Jun 2017 03:45:40 +0000 (04:45 +0100)]
Mgv7: Clean up divide-by-zero fix

7 years agoOres: Make 'absheight' flag non-functional
paramat [Thu, 22 Jun 2017 05:50:22 +0000 (06:50 +0100)]
Ores: Make 'absheight' flag non-functional

The 'absheight' flag was added years ago for the floatlands of 'indev'
mapgen (now deleted). The feature mirrored all ore placement around y = 0
to place ores in floatlands.

In MTG we now use dedicated ore registrations for floatlands.

The feature is crude, inflexible, problematic and very rarely used, it
also makes ore vertical range code more complex.
Minetest 0.5 is a good chance to remove the feature.

The flag itself remains to not break flag values.

7 years agoHelper methods for hardware colorization (#5870)
Dániel Juhász [Sat, 24 Jun 2017 18:15:09 +0000 (18:15 +0000)]
Helper methods for hardware colorization (#5870)

7 years agoEmit liquid sound if the player walks in liquid (#6040)
Dániel Juhász [Sat, 24 Jun 2017 18:15:00 +0000 (18:15 +0000)]
Emit liquid sound if the player walks in liquid (#6040)

7 years agoC++11 cleanup on constructors guiEngine (#6036)
Vincent Glize [Sat, 24 Jun 2017 11:41:30 +0000 (13:41 +0200)]
C++11 cleanup on constructors guiEngine (#6036)

* C++11 cleanup on constructors guiEngine

7 years agoGame::showOverlayMessage: securise function
Loic Blot [Sat, 24 Jun 2017 09:43:17 +0000 (11:43 +0200)]
Game::showOverlayMessage: securise function

Do wgettext call directly in the function instead of caller, as we destroy wstd inside it

7 years agoMgv7: Avoid divide-by-zero errors
paramat [Fri, 23 Jun 2017 20:49:26 +0000 (21:49 +0100)]
Mgv7: Avoid divide-by-zero errors

Some settings of paramters can cause mgv7 variables to be -inf, nan or -nan.
This can cause massive vertical columns of water to appear above sea level.

7 years agoMgvalleys: Use existing 'lava_max_height' value in CavesRandomWalk
paramat [Thu, 22 Jun 2017 02:48:22 +0000 (03:48 +0100)]
Mgvalleys: Use existing 'lava_max_height' value in CavesRandomWalk

Now that lava depth in large caves is variable we can use the already
present 'lava_max_height' value to set the lava depth in them.

7 years agoShow param1 and param2 in debug screen (#6031)
Wuzzy [Fri, 23 Jun 2017 11:31:01 +0000 (13:31 +0200)]
Show param1 and param2 in debug screen (#6031)

* Show param1 and param2 in debug screen

* Add units and some formatting to debug screen

* Minor refactor of param1/param2 debug display

7 years agoLINT fix
Loïc Blot [Thu, 22 Jun 2017 11:20:20 +0000 (13:20 +0200)]
LINT fix

7 years agoFix CSM crash caused by move to C++11. (#6027)
red-001 [Thu, 22 Jun 2017 11:18:58 +0000 (12:18 +0100)]
Fix CSM crash caused by move to C++11. (#6027)

7 years agoCavesRandomWalk: Make 'lava_depth' a mapgen parameter
paramat [Wed, 21 Jun 2017 03:20:18 +0000 (04:20 +0100)]
CavesRandomWalk: Make 'lava_depth' a mapgen parameter

As with 'large_cave_depth', lava depth was previously a fixed y value and
therefore incompatible with the ability to shift terrain vertically.

Add 'lava_depth' mapgen parameter to mgflat, mgfractal, mgv5, mgv7.

7 years agoAdd minetest.rgba function that returns ColorString from RGBA or RGB values
Gael-de-Sailly [Fri, 27 Feb 2015 19:51:55 +0000 (20:51 +0100)]
Add minetest.rgba function that returns ColorString from RGBA or RGB values

7 years agoCpp11 initializers: last src root changeset (#6022)
Loïc Blot [Wed, 21 Jun 2017 09:51:29 +0000 (11:51 +0200)]
Cpp11 initializers: last src root changeset (#6022)

* Cpp11 initializers: last src root changeset

Finish to migrate all src root folder files to C++11 constructor initializers

7 years agoFix render order of overlays (#6008)
Dániel Juhász [Wed, 21 Jun 2017 08:47:31 +0000 (08:47 +0000)]
Fix render order of overlays (#6008)

* Fix render order of overlays

* Use C++11 loops

* Fix time_t

7 years agoC++11 cleanup on constructors dir network (#6021)
Vincent Glize [Wed, 21 Jun 2017 06:28:57 +0000 (08:28 +0200)]
C++11 cleanup on constructors dir network (#6021)

* C++11 cleanup on constructors dir network

7 years agoC++11 cleanup on constructors dir client (#6012)
Vincent Glize [Wed, 21 Jun 2017 06:04:45 +0000 (08:04 +0200)]
C++11 cleanup on constructors dir client (#6012)

* C++11 cleanup on constructors dir client

7 years agoFix console resize issue when maximising game window (#6023)
Ezhh [Wed, 21 Jun 2017 05:50:57 +0000 (06:50 +0100)]
Fix console resize issue when maximising game window (#6023)

7 years agoMgv5/v7/fractal: Add 'large_cave_depth' parameter to replace fixed value
paramat [Tue, 20 Jun 2017 03:55:32 +0000 (04:55 +0100)]
Mgv5/v7/fractal: Add 'large_cave_depth' parameter to replace fixed value

The value cannot be fixed because we can shift terrain vertically.
This also makes these mapgens consistent with mgflat and mgvalleys which
have 'large_cave_depth' parameters.

7 years agoInventory: Make addItem for empty ItemStacks respect max stack size
Jesse McDonald [Fri, 19 May 2017 03:56:49 +0000 (22:56 -0500)]
Inventory: Make addItem for empty ItemStacks respect max stack size

When adding items to an empty ItemStack, limit the number of items taken
based on the maximum stack size in the item description.
Likewise, when checking whether items will fit into an empty ItemStack,
only absorb as many items as are allowed in a single stack and return the rest.

7 years agoMerge cguittfont lib in irrlicht change folder. (#6016)
Loïc Blot [Tue, 20 Jun 2017 15:18:34 +0000 (17:18 +0200)]
Merge cguittfont lib in irrlicht change folder. (#6016)

* Merge cguittfont lib in irrlicht change folder.

This remove hack and static lib for FreeType

7 years agoFix console not being properly resized after window size changed (#6020)
Zeno- [Tue, 20 Jun 2017 10:36:58 +0000 (20:36 +1000)]
Fix console not being properly resized after window size changed (#6020)

7 years agoAutomatic item and node colorization (#5640)
Dániel Juhász [Tue, 20 Jun 2017 09:19:56 +0000 (09:19 +0000)]
Automatic item and node colorization (#5640)

* Automatic item and node colorization

Now nodes with a palette yield colored item stacks, and colored items
place colored nodes by default. The client predicts the colorization.

* Backwards compatibility

* Use nil

* Style fixes

* Fix code style

* Document changes

7 years agoAdd new travis required configuration for trusty
Loïc Blot [Tue, 20 Jun 2017 07:39:20 +0000 (09:39 +0200)]
Add new travis required configuration for trusty

7 years agoFix 1 more warning reported by GCC
Loic Blot [Mon, 19 Jun 2017 22:19:29 +0000 (00:19 +0200)]
Fix 1 more warning reported by GCC

We don't write in correct buffer size in analyze_block

7 years agoFix 2 warnings reported by GCC
Loic Blot [Mon, 19 Jun 2017 22:04:18 +0000 (00:04 +0200)]
Fix 2 warnings reported by GCC

* ClientEnvironment::m_irr is not used anymore since a recent cleanup
* l_vmanip constructor ordering

7 years agoC++11 cleanup on constructors (#6000)
Vincent Glize [Mon, 19 Jun 2017 21:54:58 +0000 (23:54 +0200)]
C++11 cleanup on constructors (#6000)

* C++11 cleanup on constructors dir script

7 years agoRemove IrrlichtDevice unused pointer from ClientActiveObject class & childs (#6010)
Loïc Blot [Mon, 19 Jun 2017 14:49:34 +0000 (16:49 +0200)]
Remove IrrlichtDevice unused pointer from ClientActiveObject class & childs (#6010)

7 years agofind_nodes_in_area: Extend maximal count to U32_MAX (#5277)
SmallJoker [Mon, 19 Jun 2017 14:30:26 +0000 (16:30 +0200)]
find_nodes_in_area: Extend maximal count to U32_MAX (#5277)

Extend documentation, limit area volume
Remove u16 count limitation

* Prevent integer overflow, replace minp/maxp with pos1/pos2

7 years agohud.h: add missing false default state on use_hotbar_selected_image
Loïc Blot [Mon, 19 Jun 2017 13:41:33 +0000 (15:41 +0200)]
hud.h: add missing false default state on use_hotbar_selected_image

7 years agohud.cpp: fix wrong indent in drawItem
Loïc Blot [Mon, 19 Jun 2017 13:20:30 +0000 (15:20 +0200)]
hud.cpp: fix wrong indent in drawItem

7 years agoVerify HudSetParams input when hotbar textures are set (#6013)
Loïc Blot [Mon, 19 Jun 2017 12:10:30 +0000 (14:10 +0200)]
Verify HudSetParams input when hotbar textures are set (#6013)

* Verify HudSetParams input when hotbar textures are set

This fix #6011

7 years agoMgv7: Do not limit river generation if no floatlands
paramat [Sun, 18 Jun 2017 01:11:05 +0000 (02:11 +0100)]
Mgv7: Do not limit river generation if no floatlands

Previously, the carving of rivers was disabled above 'shadow_limit' even if
floatlands were disabled. This caused rivers to be unnecessarily disabled if
mapgen was customised to have surface level above y = 1024.

7 years agoMgv7 spawn search: Cope with extreme custom terrain and biome 'dust'
paramat [Sun, 11 Jun 2017 05:02:20 +0000 (06:02 +0100)]
Mgv7 spawn search: Cope with extreme custom terrain and biome 'dust'

Previously, maximum spawn level was set to 'water_level + 16'. This would result
in spawn search failing if terrain had been customised to be much higher than
'water_level' at all points.

Also raise spawn level by 1 node to avoid spawning half-buried in a biome 'dust'
node such as 'default:snowblock'.

7 years agoClient::makeScreenshot: remove device param
Loic Blot [Sun, 18 Jun 2017 22:00:55 +0000 (00:00 +0200)]
Client::makeScreenshot: remove device param

    We already have the device param as class member

7 years agoCpp11 patchset 11: continue working on constructor style migration (#6004)
Loïc Blot [Sun, 18 Jun 2017 17:55:15 +0000 (19:55 +0200)]
Cpp11 patchset 11: continue working on constructor style migration (#6004)

7 years agoCpp11 initializers 2 (#5999)
Loïc Blot [Sat, 17 Jun 2017 17:11:28 +0000 (19:11 +0200)]
Cpp11 initializers 2 (#5999)

* C++11 patchset 10: continue cleanup on constructors

* Drop obsolete bool MainMenuData::enable_public (setting is called with cURL in server loop)

* More classes cleanup

* More classes cleanup + change NULL tests to boolean tests

7 years agoC++11 patchset 9: move hardcoded init parameters to class definitions (part 1) (...
Loïc Blot [Fri, 16 Jun 2017 09:25:52 +0000 (11:25 +0200)]
C++11 patchset 9: move hardcoded init parameters to class definitions (part 1) (#5984)

* C++11 patchset 9: move hardcoded init parameters to class definitions

C++11 introduced the possibility to define the default values directly in class definitions, do it on current code

Also remove some unused attributes

* CollisionInfo::bouncy
* collisionMoveResult::collides_xy
* collisionMoveResult::standing_on_unloaded
* Clouds::speed

* More constructor cleanups + some variables removal

* remove only write guiFormSpecMenu::m_old_tooltip
* move header included inside defintions in genericobject.h
* remove some unused since years exception classes
* remove unused & empty debug_stacks_init
* remove unused & empty content_nodemeta_serialize_legacy
* remove forgotten useless bool (bouncy) in collision.cpp code

7 years agoFix deserialization of ItemDefinition (#5995)
Rui [Fri, 16 Jun 2017 05:17:30 +0000 (14:17 +0900)]
Fix deserialization of ItemDefinition (#5995)

7 years agoMgv6 mudflow: Also check for 'ignore' nodes
paramat [Thu, 15 Jun 2017 21:48:26 +0000 (22:48 +0100)]
Mgv6 mudflow: Also check for 'ignore' nodes

Previously, when removing decorations we searched upwards and removed until we
found air or water. However, the node above the decoration can be 'ignore' if
a stacked decoration extends into the volume above the mapchunk. The result
could be a problematic column of air placed in the volume of 'ignore'. The
unnecessary placing of air also slows the function.

Add a check for 'ignore' nodes when removing decorations.

7 years agoImprove chatcommand params consistency (#5985)
Ezhh [Thu, 15 Jun 2017 20:38:41 +0000 (21:38 +0100)]
Improve chatcommand params consistency (#5985)

* Fix and improve params consistency

* Move parenthesis requirement to descriptions

7 years agoMgv6 mudflow: Avoid partially removed stacked decorations
paramat [Mon, 12 Jun 2017 16:53:17 +0000 (17:53 +0100)]
Mgv6 mudflow: Avoid partially removed stacked decorations

Recently we started to remove decorations if the dirt below was flowed away,
but this did not check for stacked decorations, causing them to have only
their lowest node removed.
Also, placed mud could partially bury stacked decorations.

Remove 'old_is_water' bool which on testing is never true.
Add new function 'moveMud()' to reduce indentation.
Remove stacked decoration nodes above a removed decoration.
Remove stacked decorations partially buried in placed mud.

7 years agoFix no sound bug (#5968)
Rui [Wed, 14 Jun 2017 15:21:08 +0000 (00:21 +0900)]
Fix no sound bug (#5968)

7 years agoRemove legacy content_abm.{cpp,h}
Loïc Blot [Wed, 14 Jun 2017 14:23:08 +0000 (16:23 +0200)]
Remove legacy content_abm.{cpp,h}

7 years agoUpdate list of installed files concerning server and non-RUN_IN_PLACE builds (#5976)
sfan5 [Wed, 14 Jun 2017 06:04:39 +0000 (08:04 +0200)]
Update list of installed files concerning server and non-RUN_IN_PLACE builds (#5976)

* mods/mods_here.txt should be present on servers
* client/serverlist/ can be omitted for RUN_IN_PLACE=0
* clientmods/ is not used on servers

7 years agoFix the serialization error by ff73c7a (#5964)
Rui [Sun, 11 Jun 2017 19:20:50 +0000 (04:20 +0900)]
Fix the serialization error by ff73c7a (#5964)

7 years agoUse thread_local instead from some static settings (#5955)
Loïc Blot [Sun, 11 Jun 2017 11:58:43 +0000 (13:58 +0200)]
Use thread_local instead from some static settings (#5955)

thread_local permits to limit variable lifetime to thread duration. Use it on each setting place which uses static to cache variable result only for thread lifetime. This permits to keep the same performance level & reconfigure server from MT gui in those various variables places.

Add thread_local to undersampling calculation too.

7 years agoSound: Add pitch option (#5960)
Rui [Sun, 11 Jun 2017 11:58:26 +0000 (20:58 +0900)]
Sound: Add pitch option (#5960)

* Sound: Add pitch option

7 years agoRemove minetestmapper from this repository (#5901)
Loïc Blot [Sun, 11 Jun 2017 10:49:30 +0000 (12:49 +0200)]
Remove minetestmapper from this repository (#5901)

It's now located at https://github.com/minetest/minetestmapper

Remove colors.txt and sectors2sqlite too

7 years agoImprove the path select GUI (#5852)
red-001 [Sun, 11 Jun 2017 07:43:31 +0000 (08:43 +0100)]
Improve the path select GUI (#5852)

- Allow lua to chose whatever directories or files can be selected
- Fix selecting directories
- Rename dialog to `guiPathSelectMenu` from `guiFileSelectMenu`
- Rename lua function for opening the menu from `show_file_open_dialog` to `show_path_select_dialog`
- Remove duplicate code and fix code style.

Related changes
- fix `clang-format` whitelist.
- Regenerate minetest.conf.example

7 years agoRemove threads.h and replace its definitions with their C++11 equivalents (#5957)
ShadowNinja [Sun, 11 Jun 2017 07:43:05 +0000 (03:43 -0400)]
Remove threads.h and replace its definitions with their C++11 equivalents (#5957)

This also changes threadProc's signature, since C++11 supports arbitrary
thread function signatures.

7 years agoRemove superfluous pointer null checks
QrchackOfficial [Sun, 4 Jun 2017 23:52:55 +0000 (01:52 +0200)]
Remove superfluous pointer null checks

7 years agoPlantlike meshoptions: Fix inverted random vertical offset
number Zero [Fri, 9 Jun 2017 17:31:16 +0000 (20:31 +0300)]
Plantlike meshoptions: Fix inverted random vertical offset

7 years ago(Re)spawn players within 'mapgen_limit'
paramat [Sun, 4 Jun 2017 21:28:32 +0000 (22:28 +0100)]
(Re)spawn players within 'mapgen_limit'

Previously, findSpawnPos() did not take the 'mapgen_limit' setting into account,
a small limit often resulted in a spawn out in the void.
Use the recently added 'calcMapgenEdges()' to get max spawn range through a new
mapgenParams function 'getSpawnRangeMax()'.

Previously, when a player respawned into a world, 'objectpos_over_limit()' was
used as a check, which was inaccurate.
Use the recently added 'saoPosOverLimit()' to get exact mapgen edges.

Also fix default value of 'm_sao_limit_min'.

7 years agoMenu: Do not use textlist for shaders in settings tab (#5820)
Elijah Duffy [Sat, 10 Jun 2017 18:14:26 +0000 (11:14 -0700)]
Menu: Do not use textlist for shaders in settings tab (#5820)

Replace the textlist used if the shaders checkbox is unchecked in the settings tab of the main menu with labels. This makes the formspec feel more consistent as the items do not move when shaders is unchecked but only change colour and the checkboxes beside them disappear.

7 years agoAdd a server-sided way to remove color codes from incoming chat messages (#5948)
red-001 [Sat, 10 Jun 2017 11:49:44 +0000 (12:49 +0100)]
Add a server-sided way to remove color codes from incoming chat messages (#5948)

These code be generated by CSM, a modded client or just copy and pasted by the player.

Changes
- Update configuration example and setting translation file.
- Remove colour codes before logging chat.
- Add setting to remove colour codes before processing the chat.

7 years agofix an example in lua_api (#5604)
DS [Sat, 10 Jun 2017 11:49:28 +0000 (13:49 +0200)]
fix an example in lua_api (#5604)

7 years agoC++11 patchset 6: forbid object copy using assigment/copy function deleters (#5945)
Loïc Blot [Sat, 10 Jun 2017 11:49:15 +0000 (13:49 +0200)]
C++11 patchset 6: forbid object copy using assigment/copy function deleters (#5945)

C++11 implement function deleting, it's generally used to prevent some object copy
In script API use this function removal on ScriptApiBase instead of ScriptApiClient/Server/MainMenu, this affect all ScriptApis
Move DISABLE_CLASS_COPY with constructor, the deleted function permit to replace function in its original place

7 years agoOrder es_DrawType exactly like enum NodeDrawType in nodedef.h (#5946)
Thomas--S [Sat, 10 Jun 2017 11:24:05 +0000 (13:24 +0200)]
Order es_DrawType exactly like enum NodeDrawType in nodedef.h (#5946)

This will help to avoid some strange bugs.

7 years agoFix sending color codes to clients that don't support them. (#5950)
red-001 [Fri, 9 Jun 2017 19:39:25 +0000 (20:39 +0100)]
Fix sending color codes to clients that don't support them. (#5950)

Also remove `disable_escape_sequences` since it's not needed anymore.

7 years agoCSM: Fix documentation error for register_on_*_chat_messages (#5917)
DS [Fri, 9 Jun 2017 13:48:04 +0000 (15:48 +0200)]
CSM: Fix documentation error for register_on_*_chat_messages (#5917)

7 years agobuildbot: exit 0 at the end of the script
Loïc Blot [Fri, 9 Jun 2017 07:40:16 +0000 (09:40 +0200)]
buildbot: exit 0 at the end of the script

This permits script to return correct state when skipping packaging

7 years agoImplement GItlab CI daily builds for windows platform (32 & 64) (#5923)
Loïc Blot [Thu, 8 Jun 2017 14:30:30 +0000 (16:30 +0200)]
Implement GItlab CI daily builds for windows platform (32 & 64) (#5923)

* Implement win32 & win64 builds in Gitlab CI + pkg improvements

* windows buildbot: split build & deploy steps
* move deb artifacts to root folder to have a nicer artifact
* add windows build + packaging on xenial

7 years agoHave the server send the player list to the client (#5924)
red-001 [Thu, 8 Jun 2017 13:30:09 +0000 (14:30 +0100)]
Have the server send the player list to the client (#5924)

* Have the server send the player list to the client

Currently the client generates the player list based on the Client active object list, the issue with this is that we can't be sure all player active objects will be sent to the client, so this could result in players showing up when someone run `/status` but auto complete not working with their nick and CSM not being aware of the player

7 years agoC++11 patchset 5: use std::threads and remove old compat layer (#5928)
Loïc Blot [Thu, 8 Jun 2017 08:40:11 +0000 (10:40 +0200)]
C++11 patchset 5: use std::threads and remove old compat layer (#5928)

* C++11 patchset 5: use std::threads and remove old compat layer

* use pragma once in modified headers
* use C++11 function delete for object copy

7 years agoAutorun: Change to 'autoforward' (#5926)
Paramat [Thu, 8 Jun 2017 07:57:00 +0000 (08:57 +0100)]
Autorun: Change to 'autoforward' (#5926)

Minetest does not have 'run'.
Automatic forwards is very often used while flying or swimming, so a general
word is more suitable.

7 years agoUse a settings object when generating world.mt and set player_backend to sqlite....
red-001 [Thu, 8 Jun 2017 07:50:51 +0000 (08:50 +0100)]
Use a settings object when generating world.mt and set player_backend to sqlite. (#5940)

* Use a settings object when generating world.mt and set player_backend to sqlite.

* Update subgame.cpp

7 years agomake ret variable in /builtin/mainmenu/tab_credits.lua local (#5942)
DS [Wed, 7 Jun 2017 17:11:28 +0000 (19:11 +0200)]
make ret variable in /builtin/mainmenu/tab_credits.lua local (#5942)

7 years ago[CSM] Add function to get player privileges (#5933)
red-001 [Wed, 7 Jun 2017 07:09:06 +0000 (08:09 +0100)]
[CSM] Add function to get player privileges (#5933)

* [CSM] Add function to get player privileges + move related help functions to common

* Added @Zeno- const

7 years agoDragonflyBSD & NetBSD build fix
Loic Blot [Tue, 6 Jun 2017 21:02:03 +0000 (23:02 +0200)]
DragonflyBSD & NetBSD build fix

7 years agoFix bump_version.sh & client_lua_api.md
Loic Blot [Tue, 6 Jun 2017 17:54:48 +0000 (19:54 +0200)]
Fix bump_version.sh & client_lua_api.md

This modification was forgotten at release

7 years agoFix typos/mistakes in the documentation for colour related functions. (#5936)
red-001 [Tue, 6 Jun 2017 15:02:44 +0000 (16:02 +0100)]
Fix typos/mistakes in the documentation for colour related functions. (#5936)

7 years agoUse C++11 mutexes only (remove compat code) (#5922)
Loïc Blot [Tue, 6 Jun 2017 14:29:28 +0000 (16:29 +0200)]
Use C++11 mutexes only (remove compat code) (#5922)

* Fix event LINT & remove default constructor/destructors
* remove compat code & modernize autolock header

7 years agoRevert "Remove deprecated code segments (#5891)"
Loïc Blot [Tue, 6 Jun 2017 14:19:04 +0000 (16:19 +0200)]
Revert "Remove deprecated code segments (#5891)"

This reverts commit 599e13e95e81aadb959c9f3715aec9b425ede084.

7 years agoMain Menu: Add get_clientmodpath API (#5912)
Elijah Duffy [Tue, 6 Jun 2017 12:34:31 +0000 (05:34 -0700)]
Main Menu: Add get_clientmodpath API (#5912)

Add `core.get_clientmodpath` to main menu API (also possible in async calls).

7 years agoC++11 patchset 3: remove Atomic/GenericAtomic and use std::atomic (#5906)
Loïc Blot [Tue, 6 Jun 2017 12:34:14 +0000 (14:34 +0200)]
C++11 patchset 3: remove Atomic/GenericAtomic and use std::atomic (#5906)

7 years agoRemove old network code (#5921)
red-001 [Tue, 6 Jun 2017 05:57:35 +0000 (06:57 +0100)]
Remove old network code (#5921)

7 years agoFixed #5907 Documentation for screen_h and screen_w (#5909)
Vincent Glize [Mon, 5 Jun 2017 07:43:21 +0000 (09:43 +0200)]
Fixed #5907 Documentation for screen_h and screen_w (#5909)

7 years agoRemove SharedPtr, it's not used and will be never used, we use C++11
Loic Blot [Mon, 5 Jun 2017 07:36:13 +0000 (09:36 +0200)]
Remove SharedPtr, it's not used and will be never used, we use C++11

7 years agoGitlab CI: Fix Ubuntu 14.04/Debian 8 build by using GCC 6 toolchain
Loic Blot [Sun, 4 Jun 2017 21:07:45 +0000 (23:07 +0200)]
Gitlab CI: Fix Ubuntu 14.04/Debian 8 build by using GCC 6 toolchain

+ indent fix