aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-10-25Adding LuaError on attempt to assign vectors with values out of rangeFoghrye4
2016-10-25ParticleSpawner: fix offset being added twiceGael-de-Sailly
2016-10-25Windows: dont link to libraries that are already linked by cmakeadrido
This solves the problem whith building where build fails if the libaries have different names.
2016-10-21Damage flash: Reduce maximum alpha. Avoid fade overloadparamat
Flash alpha maximum is reduced from 180 to 127 to avoid player blindness in combat. Flash alpha minimum is unchanged. The 'damage_flash' value is now limited to max alpha, to avoid multiple hits creating a huge value that causes flash to stay at maximum alpha for a long period. Now alpha always starts to fade immediately after taking damage. Both problems can be seen in Minetest let's play videos. Simplify and optimise some code.
2016-10-20Changes to static object storage limit and error messageparamat
Move static object storage force-delete message from errorstream to warningstream. Increase 'max objects per block' setting to 64. Add missing spaces in warning code.
2016-10-19Fix crash on attaching player to entityFoghrye4
Rename "refresh" to "processInitData"
2016-10-17Revert changes to toggleNoClip and toggleFreeMoveLars Hofhansl
2016-10-17Don't use day light sky unless noclip and free_move are enabledLars Hofhansl
2016-10-16Enable mod security by defaultShadowNinja
2016-10-16Emergeblocks: Fix occasional crashRogier
Modification of the emergeblocks internal state was not protected by a lock, causing a race condition. This can be reproduced by repeatedly running emergeblocks for an already-generated section of the map (with multiple emerge threads).
2016-10-13Use range-based fog instead of z-plane based.Lars Hofhansl
2016-10-13Attached particle spawnersraymoo
2016-10-12Don't use unordered maps for ProfilerGraph (fixes flickering)sfan5
2016-10-11Disable cmake message concerning WIN32 on non-windows systemsRogier
2016-10-09A little cleanup since previous commitLoic Blot
2016-10-09Environment cleanupLoic Blot
* Move client list to ServerEnvironment and use RemotePlayer members instead of Player * ClientEnvironment only use setLocalPlayer to specify the current player * Remove ClientEnvironment dead code on player list (in fact other players are CAO not Player objects) * Drop LocalPlayer::getPlayer(xxx) functions which aren't used. * Improve a little bit performance by using const ref list for ClientEnvironment::getPlayerNames() & Client::getConnectedPlayerNames() * Drop isLocal() function from (Local)Player which is not needed anymore because of previous changes This change permits to cleanup shared client list which is very old code. ClientEnvironment doesn't use player list anymore, it only contains the local player, as addPlayer is only called from Client constructor client side. Clients are only CAO on client side, this cleanup permit to remove confusion about player list.
2016-10-09Remove unused parameter of GUIVolumeChangeRui
2016-10-08Move RemotePlayer code to its own cpp/headerLoic Blot
2016-10-08RemotePlayer/LocalPlayer Player base class proper separation (code cleanup) ↵Loic Blot
(patch 3 of X) * remove IGameDef from Player class, only LocalPlayer has it now * move many attributes/functions only used by LocalPlayer from Player to LocalPlayer * move many attributes/functions only used by RemotePlayer from Player to RemotePlayer * make some functions const * hudGetHotbarSelectedImage now returns const ref * RemotePlayer getHotbarSelectedImage now returns const ref * various code style fixes
2016-10-08Optimize ClientIface::getPlayerNames(): return const ref instead a copy of ↵Loic Blot
all names
2016-10-08More code cleanup (UNORDERED + RemotePlayer/LocalPlayer)Loic Blot
* 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
2016-10-08Fix backwards compatibility issue introduced by close_on_enterrubenwardy
2016-10-09Ensure std::unordered_ be used on MSVC 2010 too (#4600)SmallJoker
2016-10-08Player/LocalPlayer/RemotePlayer inheritance cleanup (part 2 on X)Loic Blot
* 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())
2016-10-08Speed up emerge thread by using unordered map in a few places. Looking at ↵gregorycu
25% speedup in Emerge thread on Just Test.
2016-10-08Ensure std::unordered_ will be used on supported MSVC compilersgregorycu
2016-10-08Prevent attached models from disappearing during parent reload (#4128)Foghrye4
2016-10-08Remove some unused attributes/class functions in server.cpp/hLoic Blot
2016-10-08Player/LocalPlayer/RemotePlayer inheritance cleanup (part 1 on X)Loic Blot
* 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
2016-10-08Textures: Ignore unknown node in override.txtSmallJoker
2016-10-06Fix C++11 Windows build of threading codesfan5
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.
2016-10-06use unordered containers where possible (patch 4 on X)Loic Blot
Also remove some unused parameters/functions
2016-10-06Fix narrow string compiling issue on MSVC2010SmallJoker
2016-10-06Use more unordered_maps to improve performance in c++11 buildsLoic Blot
2016-10-06Use relative position for nametagsSmallJoker
2016-10-06Fix crash regression when chatting in the ncurses consoleest31
Fixes #4579, a regression introduced by commit d4c76258e37337ea585cf24d8e05b50a30fa307d "Chat: new settings to prevent spam"
2016-10-06Travis: build matrix improvements + CPP11 buildLoic Blot
2016-10-05Compilation fixLoic Blot
2016-10-05Replace various std::map with UNORDERED_MAP + various cleanupsLoic Blot
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
2016-10-05Make some maps unordered to improve performanceLoic Blot
* This permit to improve performance on C++11 builds * use some existing typedefs in tools maps * minor code style changes
2016-10-05Chat: new settings to prevent spamLoic Blot
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
2016-10-04Mapblock_mesh_generate_special: Improve performanceparamat
Remove uses of std::map. Make sure we use ContentFeatures reference not value. Original commit by gregorycu.
2016-10-03Fix build/warning on non X11 platformsest31
2016-10-03Formspec: Add container[] and container_end[] elementsrubenwardy
2016-10-02Allow nothing to be selected from formspec parameterssfan5
2016-09-30Mgv7: Avoid mid-air spawn on disabled mountain terrain, optimise functionparamat
'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.
2016-09-30Fix android buildest31
Fixes #4493.
2016-09-29Only include keycode unittests in client build (fixes #4559)sfan5
2016-09-25Add keycode.cpp unittestssfan5
2016-09-25Rewrite keycode.cpp (Keycode handling & names)sfan5