summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* No functional changes. Credit gcuZeno-2016-11-23
| | | This merge doesn't make any functional changes. It's a trivial style fix so that @gregorycu can be dual credited along with shadowninja for PR #4800
* Fix superflous shader setting updates (#4800)ShadowNinja2016-11-23
| | | This improves rendering performance by ~40%
* Particles: Make attached particle spawners respect the parent's yaworwell962016-11-18
| | | | | | Position, velocity and acceleration vectors of particles are rotated by the yaw of the parent object so that they are truly relative to it. Clarify new attached particle spawner behavior in lua_api.txt.
* Mgv7: Add optional floatlands, disabled by defaultparamat2016-11-15
|
* Revert "Adding particle blend, glow and animation (#4705)"sfan52016-11-14
| | | | This reverts commit 93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.
* Adding particle blend, glow and animation (#4705)Foghrye42016-11-15
|
* Fix crash when attached object no longer existsRogier2016-11-13
| | | | | | | | | | Active objects that are attached to other objects are not safe from deletion. As a result, the parent object may have a reference to an id of a child's that no longer exists. If at some point an attempt is made to manipulate the child, enviromment->getActiveObject(child-id) returns NULL. Using the NULL pointer causes the crash...
* Add control information to player interacts (#4685)raymoo2016-11-12
|
* Halo: Highlight selected faceRealBadAngel2016-11-12
| | | | | This is a slightly modified and cleaned up version of #3774 by RealBadAngel. By sofar: Remove color change (just make it lighter) and some minor cleanups.
* Fixed tooltips not resizing with \n (#4766)lisacvuk2016-11-11
| | | | | | | | | | * Fixed tooltips not resizing with \n * Fixed it for 1.8.4 too. * Fixed not working with Freetype disabled. * Modified it to use Zeno-'s solution.
* Fix incorrect distance computation for visible blocks (#4765)Rogier-52016-11-11
| | | | | | | | The client would not compute the distance from the camera to to a mapblock correctly. The result was that blocks that were in view (i.e. not beyond the fog limit) would not be rendered. With the improved distance computation, a range adjustment that existed in clientiface.cpp is no longer required.
* Fix mob deserialization errors in the client (#4743)Rogier-52016-11-10
| | | | | | | | | The problem was seen while using the mobf mod package. The problem happens when the server serializes entity attachments. Sometimes, such attachments no longer exist. The serialization code skips those. However, the total number of attachments was serialized earlier. Therefore the client expects more than it gets, and logs a serialization error.
* Occlusion culling: Add comments, minor code improvementsparamat2016-11-09
| | | | | Remove unnecessary code. Use '/ 2.0f' because endoff is a float.
* Sky: Draw bottom of the sky box in 'cloudy fog color'Lars Hofhansl2016-11-08
| | | | | | To be identical to the lower half of the skybox sides. Now needed as the skybox base is often seen due to increasingly vertical mapgens.
* Retrieve mapblocks from the server in a sphere, not a cubeLars Hofhansl2016-11-08
| | | | | Use unused range argument in 'isBlockInSight()' to limit mapblock sends to a sphere of radius 'max block send distance'.
* Occlusion culling: Fix 'end offset' distance, half this for centre pointLars Hofhansl2016-11-08
| | | | | 'endoff', the maximum diagonal of a mapblock, was incorrectly calculated. Half this value for the centre point of the mapblock.
* Don't use reduced vertical limits for mapblock send and generationLars Hofhansl2016-11-07
|
* Windows: Add manifest file and set "High DPI Aware" trueadrido2016-11-07
| | | | | This resolves washy font and incorrect mouse handling on Windows if a screen with high DPI is used.
* MSVC: Generate debug information for release builds (#4674)SmallJoker2016-11-06
| | | Replace parameters with the equivalent /Ox
* PlayerSAO saving fix (#4734)Ner'zhul2016-11-05
| | | | | PlayerSAO::disconnected() function was historical and remove the link between SAO and RemotePlayer session. With previous attributes linked to RemotePlayer saving was working. But now attributes are read from SAO not RemotePlayer and the current serialize function verify SAO exists to save the player attributes. Because PlayerSAO::disconnected marks playersao for removal, only mark playerSAO for removal and let PlayerSAO::removingFromEnvironment do the correct saving behaviour and all the disconnection process instead of doing a partial removal and let the server loop doing the RemotePlayer cleanup and remove some saved attributes...
* Fix memory leak in ::safeLoadFile (#4730)Zeno-2016-11-05
|
* Remove unused shader matrices. (#4723)lhofhansl2016-11-04
|
* Cycle directly to nothing shown instead of showing the profiler graph againlhofhansl2016-11-04
| | | | Fix for previous commit.
* Add debug priv, and allow player to display the scene as wire-frame. (#4709)lhofhansl2016-11-04
|
* Add minetest.get_server_uptime() function to Lua API (#4702)Brandon2016-11-02
| | | Add minetest.get_server_uptime() function to Lua API
* Add version APIShadowNinja2016-10-31
|
* Lua voxelmanip: Add optional buffer param for 'get param2 data'paramat2016-10-31
| | | | Update lua_api.txt.
* Optionally disable optimization that causes underwater and cave rendering ↵lhofhansl2016-10-30
| | | | glitches. (#4686)
* Fix overloading problems mentioned by clangLoic Blot2016-10-30
|
* PlayerSAO/LocalPlayer refactor: (#4612)Ner'zhul2016-10-30
| | | | | | | | | | | | | | | | | * Create UnitSAO, a common part between PlayerSAO & LuaEntitySAO * Move breath to PlayerSAO & LocalPlayer * Migrate m_yaw from (Remote)Player & LuaEntitySAO to UnitSAO * Migrate m_yaw from Player to LocalPlayer for client * Move some functions outside of player class to PlayerSAO/RemotePlayer or LocalPlayer depending on which class needs it * Move pitch to LocalPlayer & PlayerSAO * Move m_position from Player to LocalPlayer * Move camera_barely_in_ceiling to LocalPlayer as it's used only there * use PlayerSAO::m_base_position for Server side positions * remove a unused variable * ServerActiveObject::setPos now uses const ref * use ServerEnv::loadPlayer unconditionnaly as it creates RemotePlayer only if it's not already loaded * Move hp from Player to LocalPlayer * Move m_hp from LuaEntitySAO to UnitSAO * Use m_hp from PlayerSAO/UnitSAO instead of RemotePlayer
* Rename testsounds/ directory to sounds/ (#1984)Hugo Locurcio2016-10-30
|
* Add missing keyname_to_keycode function (needed on Android)sfan52016-10-28
| | | | When rewriting keycode.cpp I overlooked this function, fixes #4683 completely
* Add unittests to test player saving/loading (#4679)Ner'zhul2016-10-27
|
* CleanupDániel Juhász2016-10-27
|
* Use node lighting for liquid spreadingDániel Juhász2016-10-27
| | | | This commit modifies the liquid transforming procedure to light and unlight nodes instead of whole map blocks.
* Improved lightingDániel Juhász2016-10-27
| | | | | | | | | | | | | | 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
* Adding LuaError on attempt to assign vectors with values out of rangeFoghrye42016-10-25
|
* ParticleSpawner: fix offset being added twiceGael-de-Sailly2016-10-25
|
* Windows: dont link to libraries that are already linked by cmakeadrido2016-10-25
| | | | This solves the problem whith building where build fails if the libaries have different names.
* Damage flash: Reduce maximum alpha. Avoid fade overloadparamat2016-10-21
| | | | | | | | | | | 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.
* Changes to static object storage limit and error messageparamat2016-10-20
| | | | | | | 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.
* Fix crash on attaching player to entityFoghrye42016-10-19
| | | | Rename "refresh" to "processInitData"
* Revert changes to toggleNoClip and toggleFreeMoveLars Hofhansl2016-10-17
|
* Don't use day light sky unless noclip and free_move are enabledLars Hofhansl2016-10-17
|
* Enable mod security by defaultShadowNinja2016-10-16
|
* Emergeblocks: Fix occasional crashRogier2016-10-16
| | | | | | | 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).
* Use range-based fog instead of z-plane based.Lars Hofhansl2016-10-13
|
* Attached particle spawnersraymoo2016-10-13
|
* Don't use unordered maps for ProfilerGraph (fixes flickering)sfan52016-10-12
|
* Disable cmake message concerning WIN32 on non-windows systemsRogier2016-10-11
|