aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Optimize ClientIface::getPlayerNames(): return const ref instead a copy of ↵Loic Blot2016-10-083-10/+4
| | | | all names
* More code cleanup (UNORDERED + RemotePlayer/LocalPlayer)Loic Blot2016-10-0810-152/+124
| | | | | | | * ClientEnvironment now uses UNORDERED MAP for active objects * Use RemotePlayer and LocalPlayer everywhere it's possible * Minor code style fixes * Drop Client::getBreath() unused function
* Fix backwards compatibility issue introduced by close_on_enterrubenwardy2016-10-083-18/+48
|
* Ensure std::unordered_ be used on MSVC 2010 too (#4600)SmallJoker2016-10-091-1/+1
|
* Player/LocalPlayer/RemotePlayer inheritance cleanup (part 2 on X)Loic Blot2016-10-0812-156/+97
| | | | | | | * Server/Client Environments now have an helper to cast Player object in the right type to use it * Server: use RemotePlayer everywhere and remove previous added casts * Client: use LocalPlayer where needed * Environment: remove unused functions (getPlayers(), getRandomConnectedPlayer(), getNearestConnectedPlayer())
* Speed up emerge thread by using unordered map in a few places. Looking at ↵gregorycu2016-10-081-6/+6
| | | | 25% speedup in Emerge thread on Just Test.
* Ensure std::unordered_ will be used on supported MSVC compilersgregorycu2016-10-081-0/+8
|
* Prevent attached models from disappearing during parent reload (#4128)Foghrye42016-10-087-32/+62
|
* VoxelArea: faster iter function (#4490)HybridDog2016-10-081-13/+36
|
* Remove some unused attributes/class functions in server.cpp/hLoic Blot2016-10-082-36/+0
|
* Player/LocalPlayer/RemotePlayer inheritance cleanup (part 1 on X)Loic Blot2016-10-0812-109/+103
| | | | | | | | | | | * LocalPlayer take ownership of maxHudId as it's the only caller * RemotePlayer take ownership of day night ratio as it's the only user * Pass getPlayerControl as const reference to prevent object copy on each call (perf improvement in ObjectRef::l_get_player_control call) * getPlayerSAO is now only RemotePlayer call * get/setHotbarItemCount is now RemotePlayer owned * Server: Use RemotePlayer instead of Player object on concerned call to properly fix the object type * PlayerSAO now uses RemotePlayer instead of Player because it's only server side * ObjectRef::getplayer also returns RemotePlayer as it's linked with PlayerSAO
* Lua_api.txt: Add biome and nodeupdate documentationparamat2016-10-081-1/+7
| | | | | | | Add missing documentation for 'register_biome' and 'clear_registered_biomes'. Add documentation for 'nodeupdate_single'. 'nodeupdate' is not yet documented due to a bug it causes.
* Textures: Ignore unknown node in override.txtSmallJoker2016-10-081-7/+2
|
* Fix C++11 Windows build of threading codesfan52016-10-068-57/+65
| | | | | | | The initial problem was that mutex_auto_lock.h tries to use std::unique_lock<std::mutex> despite mutex.h not using C++11's std::mutex on Windows. The problem here is the mismatch between C++11 usage conditions of the two headers. This commit moves the decision logic to threads.h and makes sure mutex.h, mutex_auto_lock.h and event.h all use the same features.
* use unordered containers where possible (patch 4 on X)Loic Blot2016-10-0613-99/+63
| | | | Also remove some unused parameters/functions
* Fix narrow string compiling issue on MSVC2010SmallJoker2016-10-061-2/+2
|
* Use more unordered_maps to improve performance in c++11 buildsLoic Blot2016-10-069-27/+22
|
* Use relative position for nametagsSmallJoker2016-10-061-1/+1
|
* Fix macosx build by disabling postgresql upgradeLoic Blot2016-10-061-1/+1
|
* Fix crash regression when chatting in the ncurses consoleest312016-10-061-12/+14
| | | | | | Fixes #4579, a regression introduced by commit d4c76258e37337ea585cf24d8e05b50a30fa307d "Chat: new settings to prevent spam"
* Travis: build matrix improvements + CPP11 buildLoic Blot2016-10-065-28/+30
|
* Compilation fixLoic Blot2016-10-051-1/+1
|
* Replace various std::map with UNORDERED_MAP + various cleanupsLoic Blot2016-10-0523-167/+110
| | | | | | | | | | | | This is part 2 for 5f084cd98d7b3326b51320455364337539710efd Other improvements: * Use the defined ItemGroupList when used * make Client::checkPrivilege const * inline some trivial functions * Add ActiveObjectMap typedef * Add SettingsEntries typedef
* Make some maps unordered to improve performanceLoic Blot2016-10-055-48/+38
| | | | | | * This permit to improve performance on C++11 builds * use some existing typedefs in tools maps * minor code style changes
* Chat: new settings to prevent spamLoic Blot2016-10-058-11/+125
| | | | | | | | | | | Added the following chat coreside features * Chat messages length limit * Message rate limiting * Message rate kicking Note: * handleChat now takes RemotePlayer pointer instead of u16 to remove useless lookups
* Mapblock_mesh_generate_special: Improve performanceparamat2016-10-041-15/+36
| | | | | | Remove uses of std::map. Make sure we use ContentFeatures reference not value. Original commit by gregorycu.
* Textures: New 'smoke puff' texture from TNT modparamat2016-10-042-0/+3
|
* Fix build/warning on non X11 platformsest312016-10-031-0/+1
|
* Builtin/falling: Add fallback vector in case of nil 'wallmounted to dir'paramat2016-10-031-1/+5
| | | | | | | The fallback vector is in case 'wallmounted to dir' is nil due to voxelmanip placing a wallmounted node without resetting a pre-existing param2 value that is out-of-range for wallmounted. The fallback vector corresponds to param2 = 0.
* Forceloading: Transient forceloadsraymoo2016-10-032-12/+37
| | | | | Adds a flag to forceload_block which lets you turn off persistence for that forceload.
* Formspec: Add container[] and container_end[] elementsrubenwardy2016-10-033-45/+99
|
* Allow nothing to be selected from formspec parameterssfan52016-10-021-3/+1
|
* Fix typo in core.after (#4560)Rui2016-10-011-1/+1
|
* Update default controls in README.txtWuzzy2016-09-301-28/+36
|
* Mgv7: Avoid mid-air spawn on disabled mountain terrain, optimise functionparamat2016-09-301-8/+18
| | | | | | | | 'getSpawnLevelAtPoint()' did not account for disabled mountains, it was possible to be spawned in mid-air where a mountain surface would have been. Avoid check for river area if rivers are disabled.
* Fix android buildest312016-09-301-2/+5
| | | | Fixes #4493.
* Only include keycode unittests in client build (fixes #4559)sfan52016-09-292-1/+5
|
* Add keycode.cpp unittestssfan52016-09-252-0/+130
|
* Rewrite keycode.cpp (Keycode handling & names)sfan52016-09-252-271/+286
|
* Conf.example: Re-add deleted noise parameter documentationparamat2016-09-232-1/+41
| | | | | | | | Re-add documentation of noise parameter formats. Re-add 'mgv5_np_ground' noise parameters in group format. Both these were deleted through auto-generation of conf.example. Add note to builtin/mainmenu/dlg_settings_advanced.lua that this documentation must be preserved.
* Update library versions in buildbotsfan52016-09-212-61/+54
| | | | | | | | The libraries updated in this commit were built with a set of scripts: https://gist.github.com/sfan5/780c24313c164d34634e18677683b9a3 Building new library versions or just using a different MinGW version is now way easier. This means Windows builds no longer need to use ancient library versions just because nobody knows how to build them.
* Don't use ZLIB_WINAPI if the required DLL is not provided to CMakesfan52016-09-212-4/+11
| | | | | This allows you to use an stdcall zlib (zlib1.dll instead of zlibwapi.dll) when building Minetest for win32.
* Do not serialize empty NodeMetadatasfan52016-09-212-3/+23
| | | | | This commit fixes #4516, though note that this will gradually fix MapBlocks as they are used/modified and thus re-serialized.
* Builtin: Change error to warning for light_source > 14paramat2016-09-211-1/+3
|
* Increase default font size by 1James Stevenson2016-09-214-6/+6
|
* Fix a typo and use proper deprecation notification systemest312016-09-191-1/+1
| | | | | | | Fix a typo pointed out by @thecow275. Also, use the deprecated notification system which respects the deprecated_lua_api_handling setting.
* Register.lua: Throw error if node 'light_source' > core.LIGHT_MAXparamat2016-09-174-3/+16
| | | | | | | | Add 'core.LIGHT_MAX = 14' to builtin/game/constants.lua with the intention to replace misplaced 'default.LIGHT_MAX = 14' in Minetest Game. Add comment in light.h requiring the constant be changed in both places. Add lighting bug warning to note in lua_api.txt. There are hundreds of mod uses of 15 which causes a lighting bug.
* Lua_api.txt: Add note of maximum value for node 'light_source'paramat2016-09-151-1/+1
| | | | | Maximum is 14. A value of 15 (reserved for direct sunlight) causes a lighting bug.
* Add an [invert:<mode> texture modifierThomas--S2016-09-152-2/+50
| | | | | | Inverts the given channels of the base image. Mode may contain the characters "r", "g", "b", "a". Only the channels that are mentioned in the mode string will be inverted.
* Collision: Improve performance by combining 6 vectors into 1 using a structShadowNinja2016-09-151-64/+58
|