aboutsummaryrefslogtreecommitdiff
path: root/src/clientiface.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-10-30Rename testsounds/ directory to sounds/ (#1984)Hugo Locurcio1-1/+1
2016-10-28Add missing keyname_to_keycode function (needed on Android)sfan51-0/+5
When rewriting keycode.cpp I overlooked this function, fixes #4683 completely
2016-10-28Add missing remoteplayer.cpp to Android buildNer'zhul1-0/+1
this should fix #4683
2016-10-27Add unittests to test player saving/loading (#4679)Ner'zhul2-0/+82
2016-10-27CleanupDániel Juhász2-27/+23
2016-10-27Use node lighting for liquid spreadingDániel Juhász3-121/+144
This commit modifies the liquid transforming procedure to light and unlight nodes instead of whole map blocks.
2016-10-27Improved lightingDániel Juhász6-443/+643
This commit rewrites the procedure that is responsible for light updating. this commit -provides iterative solutions for unlighting and light spreading -introduces a new priority queue-like container for the iteration -creates per-node MapBlock caching to reduce retrieving MapBlocks from the map -calculates with map block positions and in-block relative node coordinates -skips light updating if it is not necessary since the node's new light will be the same as its old light was
2016-10-27Document item use callbacks (#4668)raymoo1-0/+5
2016-10-26Shaders: Remove special handling for liquids. (#4670)lhofhansl2-18/+0
2016-10-25Adding LuaError on attempt to assign vectors with values out of rangeFoghrye42-2/+14
2016-10-25ParticleSpawner: fix offset being added twiceGael-de-Sailly1-2/+1
2016-10-25Windows: dont link to libraries that are already linked by cmakeadrido1-9/+2
This solves the problem whith building where build fails if the libaries have different names.
2016-10-25Shaders: Apply tone mapping before fog calculation.Lars Hofhansl2-8/+8
2016-10-24Shaders: Harmonize Irrlicht and shader fog calculationsLars Hofhansl3-10/+10
2016-10-21Lua_api.txt: Clarify 'override_meta' bool in 'set mapgen setting'paramat1-5/+6
2016-10-21Damage flash: Reduce maximum alpha. Avoid fade overloadparamat1-8/+5
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 messageparamat4-10/+10
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-20Chat commands: Trim whitespaces from input of `/privs` commandred-0011-4/+5
2016-10-19Fix crash on attaching player to entityFoghrye42-22/+23
Rename "refresh" to "processInitData"
2016-10-17Builtin: Add vector.floor helper functionrubenwardy2-2/+10
2016-10-17Revert changes to toggleNoClip and toggleFreeMoveLars Hofhansl1-8/+8
2016-10-17Don't use day light sky unless noclip and free_move are enabledLars Hofhansl1-5/+18
2016-10-16Enable mod security by defaultShadowNinja3-3/+3
2016-10-16Builtin/../chatcommands: Add /grantme commandred-0011-38/+56
2016-10-16Emergeblocks: Fix occasional crashRogier2-1/+7
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-15Travis: Only trigger a compile, when C/C++ related files were touched (#4284)Tim3-0/+15
2016-10-15Make documentation about ItemStack:set_{name,count,wear} clearersfan51-5/+3
These methods do not actually fail but instead clear the item stack and return false if a value like e.g. "" is passed.
2016-10-14Builtin/../falling.lua: Code optimisationtenplus11-15/+15
2016-10-13Use range-based fog instead of z-plane based.Lars Hofhansl4-6/+6
2016-10-13Attached particle spawnersraymoo13-37/+132
2016-10-12Don't use unordered maps for ProfilerGraph (fixes flickering)sfan51-4/+6
2016-10-12Add a button for disabling all mods to world config. (#3900)red-0011-9/+28
2016-10-11Add missing languages to the settingsSmallJoker2-2/+2
2016-10-11Disable cmake message concerning WIN32 on non-windows systemsRogier1-1/+1
2016-10-09A little cleanup since previous commitLoic Blot1-4/+1
2016-10-09Environment cleanupLoic Blot8-162/+97
* 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 GUIVolumeChangeRui3-50/+37
2016-10-08Move RemotePlayer code to its own cpp/headerLoic Blot15-370/+423
2016-10-08RemotePlayer/LocalPlayer Player base class proper separation (code cleanup) ↵Loic Blot9-292/+255
(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 Blot3-10/+4
all names
2016-10-08More code cleanup (UNORDERED + RemotePlayer/LocalPlayer)Loic Blot10-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
2016-10-08Fix backwards compatibility issue introduced by close_on_enterrubenwardy3-18/+48
2016-10-09Ensure std::unordered_ be used on MSVC 2010 too (#4600)SmallJoker1-1/+1
2016-10-08Player/LocalPlayer/RemotePlayer inheritance cleanup (part 2 on X)Loic Blot12-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())
2016-10-08Speed up emerge thread by using unordered map in a few places. Looking at ↵gregorycu1-6/+6
25% speedup in Emerge thread on Just Test.
2016-10-08Ensure std::unordered_ will be used on supported MSVC compilersgregorycu1-0/+8
2016-10-08Prevent attached models from disappearing during parent reload (#4128)Foghrye47-32/+62
2016-10-08VoxelArea: faster iter function (#4490)HybridDog1-13/+36
2016-10-08Remove some unused attributes/class functions in server.cpp/hLoic Blot2-36/+0
2016-10-08Player/LocalPlayer/RemotePlayer inheritance cleanup (part 1 on X)Loic Blot12-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