nOOb3167
b0fef16a27
Guard sound manager initialization with "enable_sound" ( #7167 )
2018-03-26 17:44:40 +02:00
D Tim Cummings
9802e59724
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
2018-03-26 17:43:59 +02:00
Paramat
2f280cc672
Mapgen: Remove unused mgv7 code and some unused biometypes
2018-03-26 04:59:49 +01:00
nOOb3167
43f98eb47c
Make sounds stop playing when entering game or mainmenu
2018-03-24 16:05:26 +01:00
Loïc Blot
4fd9715876
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
2018-03-24 15:45:25 +01:00
you
bcd22fc34c
Print the mod loading time ( #7137 )
...
* Print the mod loading time
2018-03-24 00:31:33 +01:00
Loic Blot
eab652fd52
Fix some gcc 7.3 reported warnings
...
```
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-23 22:12:48 +01:00
nOOb3167
9293d8e271
Global initialization of sound using SoundManagerGlobal ( #7063 )
...
* Global initialization of sound using SoundManagerGlobal
2018-03-23 15:31:43 +01:00
Vitaliy
9fcc0c1217
Update mesh collector and move it to a separate file ( #6904 )
...
* Update MeshCollector
* Simplify MeshCollector
2018-03-22 20:59:49 +01:00
paramat
cd6bcef6d9
Minetest ASCII art: Move from actionstream to rawstream
2018-03-21 04:31:46 +00:00
Vitaliy
0358ae789a
Fix node-nodebox lighting difference in direct sunlight ( #7061 )
2018-03-17 10:10:16 +01:00
Loic Blot
e800684ead
Fix a crash or random memory leak when reseting saved environment variable in test_servermodmanager.cpp
2018-03-16 19:34:41 +01:00
Loic Blot
478b785bc8
Drop Server::m_enable_rollback_recording it's only used in server constructor
2018-03-16 09:12:39 +01:00
Loic Blot
95ce5583a9
ServerEnvironment::loadDefaultMeta: Loading default meta is only possible for ServerEnv itself
2018-03-16 08:52:42 +01:00
Loic Blot
858c95630f
Forgot to remove obsolete Server::m_mods
2018-03-16 08:44:57 +01:00
Loïc Blot
6c184947c3
Server: delegate mod management & config to ServerModConfiguration ( #7131 )
...
* 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-16 08:41:33 +01:00
Loic Blot
5e61f64ce2
Fix an alone if to be with a missing else
2018-03-16 08:40:21 +01:00
paramat
19c993bc39
Biomes: Fix vertical biome blend
2018-03-16 02:59:38 +00:00
paramat
7ad6cdd09b
Biome API: Add 'get_biome_name(biome_id)' API
...
Change name of default biome to a more suitable lowercase 'default'.
2018-03-11 23:06:17 +00:00
Loïc Blot
a09a994417
Add Voxelarea unittests ( #7121 )
...
* Add voxelarea unittests
2018-03-11 21:16:19 +01:00
Loic Blot
f7938fab9f
Finally fix android build
2018-03-11 17:52:46 +01:00
Loic Blot
a1c5a01142
Fix Android build, but there is a remaining linking issue in guiConfirmRegistration
...
* Also fix variable name overloading in guiConfirmRegistration
2018-03-11 17:45:58 +01:00
stujones11
22a891a925
Android build fixes for c++11
2018-03-11 16:56:27 +01:00
Vitaliy
cf8d579abc
Drop texture file list cache ( #6660 )
2018-03-10 19:33:37 +01:00
SmallJoker
ee20433425
Fix typo in lighting code since bcdb3d5
2018-03-10 09:37:43 +01:00
paramat
644d0ab2bb
Spawn level: Add 'get_spawn_level(x, z)' API
...
Returns a suitable player spawn y co-ordinate for unmodified terrain.
2018-03-10 03:38:27 +00:00
SmallJoker
473d81f2e2
Formspecs: Unify textarea and field parsing functions, fix wrong fallback text
...
* textarea[], field[]: Unify function, fix wrong fallback text
* Remove apparently superflous mainmenumanager.h incldue
* intlGUIEditBox.cpp: make read-only boxes really read-only
* Use elseif (trivial)
2018-03-09 23:24:57 +00:00
Loic Blot
12d1e4ff04
VoxelArea: add_{x,y,z,p} must be static
...
Fix some documentations issues
Use getNodeNoCheck(v3s16, ...) in some cases instead of getNodeNoCheck(x, y, z, ...)
2018-03-09 23:27:26 +01:00
Loic Blot
3b27cf30d9
Drop unused struct ModLicenseInfo & ModAuthorInfo + default constructor in ModMetadata
2018-03-09 23:27:26 +01:00
Loic Blot
2c860a6a42
ServerEnvironment & StaticObject cleanups
...
* isFreeServerActiveObjectId is now part of ServerEnvironment
* getFreeServerActiveObjectId is now part of ServerEnvironment
* StaticObject constructor now take ServerActiveObject instead of type + string. This permits to remove a big string copy in some code parts
2018-03-09 23:27:26 +01:00
Loic Blot
def46c6cdb
Drop unused Server::m_ignore_map_edit_events_peer_id
2018-03-09 23:27:26 +01:00
Loic Blot
bcdb3d56c0
Variable name fix + structure creation unrolling in lighting code
2018-03-09 23:27:26 +01:00
Loic Blot
6036f865cb
Drop less performant Server::setBlockNotSent for ClientInterface::markBlockposAsNotSent
2018-03-09 23:27:26 +01:00
paramat
1a88c4b7a5
Getv3intfield: Fix logic of return bool
2018-03-09 03:16:25 +00:00
paramat
cbb9301bea
Biomes: Add 'min_pos'/'max_pos' xyz biome limits
...
'y_min' and 'y_max' are still accepted for compatibility.
2018-03-09 03:16:25 +00:00
Loic Blot
c7c03ad7a6
Cleanup & bugfix
...
* ObjectRef::set_local_animation: fix wrong lua return (should push a boolean, currently returns nil)
* ObjectRef::set_eye_offset: fix wrong lua return (should push a boolean, currently returns nil)
* Fix various Server functions which depends on RemotePlayer objet and return true/false when player object is nil whereas it's a caller implementation error. Change those bool functions to void and add sanitize_check call instead. Current callers are always checking player object validity
* Optimize Server::setClouds : use CloudParams object ref instead of attribute deserialization from structure & perform RemotePlayer::setCloudParams directly in server class like many other calls
* Optimize Server::SendCloudParams: use CloudParams object ref instead of deserialized attributes
2018-03-08 23:00:17 +01:00
Loic Blot
c7656edaa5
Cleanup: drop Server::hudGetHotbarSelectedImage()
...
Call directly accessible RemotePlayer::getHotbarSelectedImage() from server api
2018-03-08 23:00:17 +01:00
Loic Blot
4be46aeeb1
Cleanup: drop Server::hudGetHotbarImage()
...
Call directly accessible RemotePlayer::getHotbarImage() from server api & make it const ref
2018-03-08 23:00:17 +01:00
Loic Blot
373f1bfb4a
Cleanup: drop Server::hudGetHotbarItemcount()
...
Call directly accessible RemotePlayer::getHotbarItemcount() from server api
2018-03-08 23:00:17 +01:00
Loïc Blot
f35236afea
mods.cpp/h: little performance improvement in getModsInPath (+ codestyle) ( #7108 )
...
* mods.cpp/h: little performance improvement in getModsInPath
2018-03-08 20:03:43 +01:00
you
540e07e3ef
Fix missing warningstream (or similar problem) ( #7034 )
...
Use the --color command line parameter instead of a setting for coloured logs
This fixes the missing warningstream bug, g_settings->get mustn't be used there.
Also, the decision about en- or disabling log colours fits better to the command line parameters than minetest settings.
2018-03-04 17:34:36 +01:00
Brian
929792e15e
Allow for getting world name and path separately on the command line ( #6555 )
...
Change to --worldlist instead of --world list.
Gets rid of --worldpath parameter added as part of this pull request,
instead moving the listing function to a command --worldlist that
accepts either name, path, or both and prints out the corresponding
information.
2018-03-04 17:34:09 +01:00
paramat
48493a979b
Gennotify: Add 'minetest.get_decoration_id' API
...
Returns the decoration ID for the provided decoration name string.
For use with gennotify, to know the decoration IDs for use in
'minetest.set_gen_notify'.
2018-03-03 23:00:08 +00:00
paramat
07622bf9b4
Generate Notifier: Clear events once after all 'on generated' functions
2018-03-03 22:59:49 +00:00
Gael-de-Sailly
b952d42000
MapgenValleys: Fixed submarine valleys shape
2018-03-03 22:59:26 +00:00
SmallJoker
ebbd158774
c_converter: Function template for numeric fields, add v3s16 default ( #7090 )
2018-03-03 10:59:43 +01:00
SmallJoker
a1cf8a127c
Slippery: Simplify, make more efficient ( #7086 )
...
Use already existing collision results for the nearest colliding node
Fix slippery effect in free_move mode
2018-03-03 10:59:14 +01:00
Vitaliy
f5fd4a0af1
Cleanup in flat lighting ( #7051 )
2018-03-03 10:58:45 +01:00
red-001
e7f1611991
Fix liquid post effect colour behaviour in third person view
2018-02-27 19:40:10 +00:00
paramat
c610643c4c
Place schematic (on vmanip): Enable use of 'place center' flags
...
For 'place schematic' and 'place schematic on vmanip' APIs.
Fix 'place center' code to properly centre schematics.
Fix some comments.
2018-02-27 19:39:05 +00:00
paramat
6c9df2ffa7
CollisionMoveSimple: Collide with 'ignore' nodes
2018-02-26 17:21:45 +00:00
paramat
359a940dde
SAO limits: Allow SAOs to exist outside the set 'mapgen limit'
2018-02-26 17:21:45 +00:00
nOOb3167
88a7160ad8
Fix CMake error ( #7074 ) by bumping the required CMake version past 3.8.1 ( #7075 )
2018-02-25 12:26:41 +01:00
nOOb3167
4118e150f8
CMakeLists use the source_group command to improve look and feel when generating Visual Studio projects.
...
The TREE argument of source_group appears in CMake 3.8 therefore check for version.
2018-02-23 17:02:02 +01:00
nOOb3167
cbf891ef1d
CMakeLists pass windows sources (manifest and resource file) to executable targets separately from common_SRCS
2018-02-23 17:02:02 +01:00
SmallJoker
57418111a8
Registration dialog: Larger text field with scrollbars ( #7047 )
...
Center text, text area doubled now
2018-02-23 17:01:05 +01:00
paramat
673f7196a2
Find nodes in area (under air): Raise volume limit and document it
2018-02-21 15:54:06 +00:00
paramat
f9ad061910
Vertical biome blend: Tune blend patterns
2018-02-20 15:28:52 +00:00
paramat
2bc7c5ff93
Dungeons: Add Y limits in all mapgens
...
Preserve the upper limit used in mgvalleys.
2018-02-20 15:25:37 +00:00
red-001
4bb41a19dc
Mitigate formspec exploits by verifying that the formspec was shown to the user by the server. ( #6878 )
...
This doesn't check the fields in anyway whatsoever so it should only be seen as a way to mitigate exploits, a last line of defense to make it harder to exploit bugs in mods, not as a reason to not do all the usually checks.
2018-02-18 22:33:42 +01:00
sfan5
3f2e0c1206
Check argument types inside MetaDataRef Lua API ( #7045 )
2018-02-18 10:40:45 +01:00
red-001
ae6aed15cf
Remove legacy chat network code. ( #6954 )
2018-02-17 19:23:21 +01:00
Vitaliy
11928b7af1
Render copyright notice: Fix name spelling ( #7042 )
2018-02-15 21:19:34 +01:00
red-001
338d645fcf
Add on_auth_fail
callback ( #7039 )
...
Called when a client fails to supply the correct password for the account it's attempting to login as.
2018-02-15 21:18:54 +01:00
paramat
861cfd8484
Dungeons: Avoid generation in multiple liquid nodes and 'airlike'
...
Previously only 'mapgen water source' and 'mapgen river water source'
were checked for. Games can use multiple liquid nodes defined for biomes,
many of which will not be aliased to those 2 mapgen aliases, causing
floating dungeons to generate in some liquids.
Now we check for liquid drawtype instead, so can remove liquid nodes
from dungeonparams.
Also check for 'airlike' drawtype instead of 'CONTENT_AIR' to avoid
generation in 'airlike' nodes in some rare situations. This will also be
needed for when we add definable biome air nodes.
2018-02-13 03:48:39 +00:00
Loic Blot
359c8f82ce
map.cpp: Initialize NodeNeighbor, set NeighborType to u8 & cleanup
...
Cleanup:
* Drop unused Map::transforming_liquid_size()
* NodeNeighbor must use const ref for v3s16
* Add a missing default in a switch case
2018-02-11 09:23:25 +01:00
Dániel Juhász
3face01a20
Node definition manager refactor ( #7016 )
...
* Rename IWritableNodeDefManager to NodeDefManager
* Make INodeDefManager functions const
* Use "const *NodeDefManager" instead of "*INodeDefManager"
* Remove unused INodeDefManager class
* Merge NodeDefManager and CNodeDefManager
* Document NodeDefManager
2018-02-10 21:04:16 +01:00
stujones11
617d94c803
Position entity nametags relative to selection-box ( #7031 )
2018-02-10 10:42:33 +01:00
SmallJoker
af89a25ff3
Fix 'Change Keys' menu crash caused by 501f936
2018-02-09 09:39:34 +01:00
ThomasMonroe314
501f936b37
Switch F3 to use 'enable_fog' setting
2018-02-08 15:40:16 +01:00
stujones11
e87b410a33
Include alpha channel reference in MaterialTypeParam
2018-02-08 15:38:49 +01:00
red-001
1e94a7feaf
Move setlocale
from Lua to C++.
2018-02-08 15:38:34 +01:00
PorygonZRocks
0e4c467a82
Add main_menu_style setting
2018-02-08 15:38:24 +01:00
lisacvuk
4f5090ff68
Make hud_get return aligment, offset and size. ( #7006 )
...
* Make hud_get return aligment and offset.
* Return size aswell.
2018-02-04 10:17:46 +01:00
Dániel Juhász
735fc2a1f2
Remove unused light updating code
...
Also remove the unit test that tests the removed algorithms.
2018-02-04 03:16:45 +00:00
sfan5
cf0bcebc76
Refine movement anticheat again ( #7004 )
...
* Account for walking speed in vertical dir
* Avoid undefined behaviour due to division-by-zero
2018-02-02 23:34:09 +01:00
number Zero
49b65a5593
Fix liquid bottoms not being rendered
2018-01-30 21:13:24 +01:00
Loïc Blot
584d00a01c
Add minetest.bulk_set_node call + optimize Environment::set_node call ( #6958 )
...
* Add minetest.bulk_set_node call + experimental mod unittest
* Optimize set_node function to prevent triple lookup on contentfeatures
Do only one lookup for old, and try to merge old and new lookup if node is same than previous node
* Add benchmark function + optimize vector population to have real results
2018-01-30 00:30:02 +01:00
sfan5
de2c40c8fc
Apply physics overrides correctly during anticheat calculations ( #6970 )
2018-01-28 10:21:21 +01:00
SmallJoker
7d3295e21f
[CSM] HUD Fix not updating server HUDs caused by 4f688d5
2018-01-26 21:27:30 +01:00
red-001
4f688d5616
Fix issues with earlier CSM HUD commit ( #6940 )
...
The CSM HUD PR caused some strange behavior including aborts due to parts of it using some slightly hacky code, the event refactor changing how events are processed and a minor oversight.
2018-01-26 16:05:47 +01:00
lisacvuk
62c10e3d08
Disable fall damage when "immortal" group set ( #6946 )
2018-01-23 19:28:21 +01:00
red-001
0425c6b8c8
CSM: Remove screenshot API
...
Reverted from commit 19960e26c672c6337f8c6ffbe27f2c6bca49750c
(* [CSM] add screenshot api lua)
2018-01-23 05:27:38 +00:00
red-001
d6050bee51
[CSM] Don't Load the package library ( #6944 )
...
Already removed by a latter step in CSM init so this just saves on pointless work.
2018-01-22 08:34:49 +01:00
Wayward One
684e70477d
Change include from "cmake_config.h" to "config.h"
...
Fixes #6894
2018-01-21 23:25:04 +01:00
red-001
49ff1d2ea8
[CSM] Remove on_connect
callback ( #6941 )
...
Fixes #6939
2018-01-21 18:27:27 +01:00
red-001
5dab742645
[CSM] Add functions to create particles and particlespawners. ( #6072 )
2018-01-20 23:31:53 +01:00
Loic Blot
99c9e7a986
Game refactor [4/X]: keycache is now owned by InputHandler
...
* Make InputHandler own the key cache
* Add a helper function InputHandler::cancelPressed to avoid multiple similar calls in game.cpp
* Move RandomInputHandler::step definition into cpp file
2018-01-20 16:38:38 +01:00
Loic Blot
f5a006dce7
Game refactor [3/X]: Move keycache to inputhandler
2018-01-20 16:38:38 +01:00
Loic Blot
64fe79b53b
Game refactor [2/X]: Various moves (profilergraph, nodePlacementPrediction, create_formspec_menu)
...
* Move profilergraph to dedicated files
* Move nodePlacementPrediction to Game class
* Rename create_formspec_menu to GUIFormSpecMenu::create
2018-01-20 16:38:38 +01:00
Loic Blot
362323cdc2
Game/Input refactor [1/X]: make RealInputHandler handle joystick inputs with standard input
...
Joystick input is a RealInputHandler only usage, make it intelligent and handle the joystick with keyboard direct.
This permits to remove many getters in game which should be owned by RealInputHandler
2018-01-20 16:38:38 +01:00
red-001
9649e47214
[CSM] Add basic HUD manipulation. ( #6067 )
...
* [CSM] Add basic HUD manipulation.
Workaround for on_connect not working right now.
2018-01-20 14:09:58 +01:00
paramat
d45e5da8ca
Biomes: Add 'get heat', 'get humidity', 'get biome data' APIs
...
'get biome data' returns biome id, heat and humidity.
Clean up nearby lines in lua_api.txt.
2018-01-16 08:47:07 +00:00
red-001
4c0d4e4105
Load a texturepack from the 'textures' subfolder of a game
2018-01-16 08:45:17 +00:00
paramat
142474196a
Mapgen folder: Update and improve copyright information of files
2018-01-15 04:42:08 +00:00
Muhammad Rifqi Priyo Susanto
670f8afd18
Registration confirmation dialog: Fix grammar
...
Fixes commit 792752997c5ae2aaa4f54d0a2e2af2a96d7d1e9f.
2018-01-13 19:30:34 +00:00
Muhammad Rifqi Priyo Susanto
792752997c
Add confirmation on new player registration ( #6849 )
...
* Attempt to add registration confirmation
Using SRP auth mechanism, if server sent AUTH_MECHANISM_FIRST_SRP that means the player isn't exist.
Also tell player about the server and chosen username.
Local game has localhost as IP address of the server.
Add RenderingEngine::draw_menu_scene() to draw GUI and clouds background.
aborted -> connection_aborted
* Rewrite information message text
Client::promptConfirmRegister() -> Client::promptConfirmRegistration()
2018-01-13 12:07:16 +01:00
Lars Hofhansl
fad263dec9
Revert "Add an active object step time budget #6721 "
...
This reverts commit 9c669016d1578a5c62f932c6ccb7a2b4b1e21f0a.
See #6907
2018-01-12 23:47:39 -08:00
Loic Blot
6f2fe8a554
Forget to fix non freetype build in StaticText
2018-01-12 08:36:38 +01:00
number Zero
b4df0d67dd
Fix ambient occlusion and dark lines at mapblock borders
2018-01-12 05:44:11 +00:00
Pedro Gimeno
f77f19a941
Fix off-by-one in log output line length ( #6896 )
2018-01-09 19:07:14 +01:00
Pedro Gimeno
63f4ee21b0
Fix buffer parameter not working in LuaPerlinNoiseMap::l_getMapSlice()
2018-01-08 20:32:15 +00:00
rubenwardy
0a83c42dfd
Fix naming conventions of noise userdata
2018-01-07 01:06:18 +00:00
Loic Blot
9146c6a50f
Don't recalculate statustext initial color everytime & review fixes
2018-01-05 20:59:30 +01:00
Loic Blot
f40f4143df
GameUI refactor (part 7/7): Finish to include profiler things to GameUI
...
Other changes:
* Add GameUI clarification comment
* Move force_fog_off & disable_camera_update flags from GameUI to Game, it's not UI related
* Properly init GameUI::Flags
* Move toggleChat toggleHud & toggleProfiler to GameUI
* Add gameui.cpp to LINT whitelist
2018-01-05 20:59:30 +01:00
Loic Blot
02f82eca0b
GameUI refactor (part 6/X): Move Game::guitext_profiler & showStatusTextSimple to GameUI class
...
Other enhancements:
* Move showStatusTextSimple to GameUI class & rename to showTranslatedStatusText
2018-01-05 20:59:30 +01:00
Loic Blot
326b0faa5e
GameUI refactor (part 5/X): Move Game::guitext_chat to GameUI class
...
Other enhancements:
* Move update_profiler_gui to Game class
* Move updateChat to Game class
2018-01-05 20:59:30 +01:00
Loic Blot
fe510d90c1
GameUI refactor (part 4/X): Move Game::guitext_status, Game::m_statustext, GameRunData::statustext_time to GameUI class
...
Other enhancements:
* Simplify setStatusText to showStatusText, as it shows the label too (preventing almost every setStatusText to call setStatusTextTime(0)
* Add unittests
2018-01-05 20:59:30 +01:00
Loic Blot
aab3b18e4b
GameUI refactor (part 3/X): Move Game::guitext2, Game::guitext_info, Game::infotext to GameUI class
...
Other enhancements:
* Drop unused GameRunData::time_of_day
* Little GameUI::update code path optimizations
2018-01-05 20:59:30 +01:00
Loic Blot
3a772e7ed6
GameUI refactor (part 2/X): Move Game::guitext to GameUI + enhancements on StaticText
...
Other enhancements:
* C++ friendlyness for addStaticText() -> move to static StaticText::add()
2018-01-05 20:59:30 +01:00
Loic Blot
0ebaed430a
GameUI refactor (part 1/X): GameUI object creation + GameUIFlags move to GameUI
...
Game class is too huge and has too specialization on various subjects, like UI, formspecs, client, renderer. Start to move UI related things to GameUI object and cleanup them
Other improvements:
* updateChat: more performance on error messages by remove string copies
* Initialize all game class members in definition instead of constructor (with nullptr instead of NULL)
* Drop unused Client::show{GameChat,GameHud,Profiler,GameFog}
* Add GameUI unittests
2018-01-05 20:59:30 +01:00
Paramat
549cfd9db8
Biomes: Add vertical biome blend ( #6853 )
...
Add 'vertical blend' parameter to biome registration that defines how
many nodes above the biome's 'y max' limit the blend will extend.
2018-01-05 00:10:55 +01:00
you
e7b44c3295
Fix Wstringop-overflow warning from util/srp.cpp ( #6855 )
...
* Fix Wstringop-overflow warning from util/srp.cpp
2018-01-04 14:25:20 +01:00
red-001
30821ad8de
[CSM] Don't load the IO library. ( #6087 )
...
* [CSM] Don't load the IO library.
* Rename the function to match the Lua API function name and add a missing `const`
* Add a comment to explain some strange code and fix the other issues pointed out by shadowninja.
2018-01-04 08:21:12 +01:00
rubenwardy
2af47e6f5f
Fix crash on can_bypass_userlimit returning non-boolean
2018-01-03 14:18:13 +00:00
paramat
2aad3be2cb
Mgv7 floatlands: Add exponent parameter
...
Allows more control over shape of floatland mountain terrain.
Terrain shape is unchanged.
2018-01-03 04:05:55 +00:00
Thomas--S
f3b9d87076
Connected Nodeboxes: Add disconnected
boxes
...
The `disconnected_*` boxes are the opposites of the `connect_*` ones,
i.e. when a node has no suitable neighbours on the respective side, the
according disconnected box is drawn.
* disconnected_top
* disconnected_bottom
* disconnected_front
* disconnected_left
* disconnected_back
* disconnected_right
* disconnected (when there is *no* neighbour)
* disconnected_sides (when there are *no* neighbours to the sides)
2018-01-03 04:05:21 +00:00
Hybrid Dog
345e1041a2
Tool.cpp/.h, lua_api/l_util.cpp: Tidy up code and remove dead code
2018-01-03 04:01:15 +00:00
Hybrid Dog
d7c1f6c92e
Tool getDigParams: Fix selecting the best fitting time
...
Previously, time was compared with result_time before dividing it by
the level difference.
2018-01-03 03:58:11 +00:00
Loïc Blot
0d6b58a772
Add unittests on ActiveObject and BanManager class ( #6866 )
...
* Add unittests on ActiveObject and BanManager class
This also permit to fix a bug in ban manager setting bans modified when no modification occurs
2018-01-01 18:48:52 +01:00
rubenwardy
026ad912af
Fix rounding error in g/set_node caused by truncation to float
2017-12-26 21:55:08 +00:00
rubenwardy
0bcc2f33eb
Add check to pause game on lost window focus
2017-12-26 21:53:45 +00:00
Dániel Juhász
2153965cf9
Line_of_sight: Improve using VoxelLineIterator
...
This commit rewrites line_of_sight with VoxelLineIterator.
Stepsize is no longer needed, the results will be always accurate.
2017-12-26 21:51:32 +00:00
number Zero
189daf87a0
Fix dancing text
2017-12-25 15:00:50 +01:00
Rob Blanckaert
787cd15c14
- Clear colors when reading property info.
...
- Set vertex colors on upright_sprites.
2017-12-25 15:00:25 +01:00
nOOb3167
7354d0f3d8
Fix undefined behaviour on getting pointer to data in empty vector
...
`&vector[0]` is undefined if vector.empty(), causing build failure on MSVC
2017-12-22 10:39:25 +00:00
Vitaliy
257626ceed
Fix wrong scrolling ( #6809 )
2017-12-21 20:58:06 +01:00
Jordan Irwin
18b921015a
Allow 'default' parameter in 'settings:get_bool' function
...
Default value is used when the setting key is not found in the config
file. If default value is not set, 'nil' is returned.
#6188
2017-12-17 15:27:37 +00:00
Ezhh
26c7e98e3d
Adjust default console height
...
#6797
2017-12-17 04:38:54 +00:00
Vitaliy
770eb09adc
Fix items turning black ( #6780 )
2017-12-16 17:01:37 +01:00
paramat
f1d2bc0965
Zoom: Add 'disabled by game or mod' message
2017-12-14 20:59:54 +00:00
paramat
8a99c8c94a
Minimap messages: Improve 'disabled by server' message
2017-12-14 20:59:54 +00:00
SmallJoker
6e5109fd46
Chat: Remove prompt history duplicates ( #6762 )
2017-12-14 19:47:29 +01:00
adrido
551c12391a
directiontables: Fix MSVC compiler error ( #6785 )
2017-12-14 19:46:42 +01:00
Vitaliy
2d9f0d344e
Update light decoding table size ( #6696 )
...
Fix old undiminish_light bug
2017-12-12 19:29:55 +01:00
Loïc Blot
308bb69eef
CSM fixes: load mods after flavours & add flavour to block mod loading ( #6738 )
...
* CSM fixes: load mods after flavours & add flavour to block mod loading
* Don't permit to load mods twice
* Prepare builtin integrity global algorithm
* Add missing doc & use a nicer byteflag for LOAD_CLIENT_MODS flavour
* flag typo fix
* Invert CSM_FL_LOOKUP_NODES & CSM_FL_LOAD_CLIENT_MODS ids
2017-12-11 17:33:44 +01:00
ThomasMonroe314
419799b831
F5 debug info: Add colons, use lowercase except for FPS and RTT
2017-12-10 14:24:28 +00:00
SmallJoker
03caa1e319
Damage: Remove damage ignore timer
2017-12-10 14:23:45 +00:00
adrido
d677f292cc
Use std::vector instead of dynamic C-Array ( #6744 )
2017-12-10 09:07:24 +01:00
Lars Hofhansl
9c669016d1
Add an active object step time budget #6721
...
This can be set via the active_object_interval option.
2017-12-06 12:21:54 -08:00
you
e049405fdc
Add coloured logs ( #4549 )
...
The setting log_colour can be used to en-/disable or autodetect it.
2017-12-06 18:50:39 +01:00
Luis Cáceres
2b5341c518
Ensure no item stack is being held before crafting ( #4779 )
2017-12-06 17:32:05 +01:00
Lars Hofhansl
fd9f195fcc
Use Irrlicht's mesh cache for animated meshes.
...
Fixes #6676 .
Allow animated meshes to be cached in Irrlicht's builtin mesh cache.
Use Material.EmmissiveColor instead of manipulating the mesh' vertex colors.
2017-12-04 22:29:11 -08:00
paramat
f470cb7270
Zoom: Set zoom FOV per-player using a player object property
...
Remove player object property 'can zoom'.
Add player object property 'zoom fov'.
Remove clientside setting for 'zoom fov'.
Object property default is 15 degrees in creative mode, zoom disabled
in survival mode.
Needed due to zoom now loading and/or generating distant world
according to zoom FOV.
Update object properties serialisation version to 3.
2017-12-04 02:25:10 +00:00
Lars Hofhansl
5a03b1f5f9
Optionally extend the active object in a players camera direction.
...
See #6667
By setting active_object_send_range_blocks > active_block_range a server admin
can allow clients to retrieve active objects futher out from the player at
relatively low cost to the server
(only objects in the players' view cone are considered).
2017-12-03 17:52:05 -08:00
raymoo
83b12ed481
Shut down mapgen threads before other shutdown tasks ( #6689 )
...
Solves some issues with ModStorage functionality in mapgen threads
that occurred when mapgen threads continued to run after the main
server thread had stopped. Also shuts down mapgen threads before
shutdown callbacks are called.
2017-12-03 10:28:35 +01:00
SmallJoker
089f594582
CAO/SAO: Nicer velocity-controlled, interpolated rotation property:
...
'automatic_face_movement_max_rotation_per_sec'.
Rotate towards the smaller angle.
2017-12-01 05:36:49 +00:00
Lars Hofhansl
f4fedfed07
Turn off verbose info message introduced accidentally with ae9b1aa
2017-11-29 22:55:37 -08:00
paramat
ea1ae07beb
F5 Debug info: More compact, return to 2 lines
...
All data fits on width 960, most useful data still visible on width 800.
2017-11-27 01:28:47 +00:00
sfan5
813d819d15
Hint at problematic code when logging deprecated calls
2017-11-27 01:28:39 +00:00