aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-04-19Tools: Fix tool digging speed limitHybrid Dog
2017-04-19Fix various variables passed by copy instead of const ref (#5610)Loïc Blot
Pointed by cppcheck
2017-04-18Fix broken lint since 04cc9de8f2fbcb11f133c88f02fc11504b3ea6f3Loïc Blot
2017-04-18Reorder TileSpec. (#5591)Auke Kok
Put accessed members that are needed by updateFastFaceRow() all in the same cacheline.
2017-04-18Fix always using the xbox layout (reported by coverity).Ekdohibs
2017-04-17Don't make TAB exit game if bound to inventory.Auke Kok
I play with the TAB key bound to the inventory. However, the code here assumes that TAB means "close formspec" in all contexts, including the main menu. This causes my game to exit when I attempt to TAB in between USERNAME and PASSWORD fields. We know when m_client != NULL that the game is a client game and not in the main menu, and then it's OK to use the INVENTORY bound key to exit the formspec, since it's not the main menu.
2017-04-17Fix MSVC build broken by 34d32ceSmallJoker
`round` -> `myround` Remove superflous `floor` calls
2017-04-17MeshUpdateQueue: Add a MapBlock cache that minimizes the amount of MapBlock ↵Perttu Ahola
copying done in the main thread Cache size is configurable by the meshgen_block_cache_size (default 20 MB). New profiler stats: - MeshUpdateQueue MapBlock cache hit % - MeshUpdateQueue MapBlock cache size kB Removes one type of stutter that was seen on the client when received MapBlocks were being handled. (the "MeshMakeData::fill" stutter) Kind of related to at least #5239 Originally preceded by these commits, now includes them: - Move the mesh generator thread into src/mesh_generator_thread.{cpp,h} - mesh_generator_thread.cpp: Update code style - MeshUpdateThread: Modify interface to house a different implementation: Actual functionality will be changed by next commits. - MeshMakeData: Add fillBlockData() interface (so that caller can fill in stuff from eg. a MapBlock cache)
2017-04-17Include container.h in util/thread.h. util/thread.h doesn't compile without itPerttu Ahola
2017-04-17Sneak: Add option for old move codeparamat
Temporary option for the old move code for specific old sneak behaviour. Enabled by setting the added 'new move' physics override to false. By default 'new move' is true.
2017-04-17Remove an unused variable in Android BuildLoic Blot
2017-04-17Plug two minor Leaks (#5603)Auke Kok
* Resource leak: CHECK_FILE_ERR returns, without freeing chunk_name. Found with static analysis. * Resource leak: leaks `page` on error path. Found with static analysis.
2017-04-16Android progressbar fix (#5601)Loïc Blot
* Fix progressbar for Android Fixes #5599 Fixed #5403 * draw_load_screen: use texturesource this permits to unify texture loading code * scale progress bar * Add gl version check for GL_OES_texture_npot. This fixed the texture on loading screen * Remove two sanity checks pointed by @celeron55 * sfan5 comments + android ratio fixes
2017-04-15Implement delayed server shutdown with cancelation (#4664)Loïc Blot
2017-04-15Minimap: Do a double-typecast to fix compiling with MSVCSmallJoker
2017-04-15Partial damage cheat fix: node damages server side (#4981)Loïc Blot
* Damage cheat fix: server side * Lava/Node damages overtime server side * lava hurt interval is only for old protocol
2017-04-14NetworkPacket: don't copy push std::string and std::wstringLoic Blot
2017-04-14Fix wrong channel type in Client/Server CommandFactoriesLoic Blot
This is a u8 not a u16
2017-04-14ClientIface::sendToAll: honor packet configuration (#5590)Loïc Blot
2017-04-14[CSM] Add function to set minimap shape (#5569)bigfoot547
* [CSM] Add function to set minimap shape Also deprecates `toggle_shape`. * Oh fish, I messed that one up! * Fix Style * Sorry, I missed something I still had the `luamethod` call in there! * Add getters * Remove extra line * Remove useless variable Please review again @nerzhul . Thanks! * Satisfy nerzhul
2017-04-13Only use palette if param_type2 is correctDániel Juhász
2017-04-13Add documentation for map block format 27 (#5576)Dániel Juhász
2017-04-12Fix inability to change metadata using stack:to_table() (#5547)numberZero
2017-04-12Fix fips_cipher_abort warning and other duplicate macrosLoic Blot
2017-04-11Replace occurrence of luaL_reg in l_localplayer (#5566)t0ny2
Related to commit 41c5483. Replace a final occurrence of luaL_reg in src/script/lua_api/l_localplayer.cpp
2017-04-11Sneak glitch: Detect ledge for 2-node climb-upparamat
Re-creates the old sneak-jump behaviour in new code. Enabled by the 'sneak glitch' physics override. When a ledge is detected the jump speed modifier is set to the larger of 'physics override jump' and 1.3 to allow a 2-node climb-up. An unexpected side-effect is the simple sneak ladder working smoothly.
2017-04-10Clang-format fix for AndroidLoïc Blot
2017-04-10Clang-format styles fixes since previous commitLoïc Blot
2017-04-10Clang format: fix LINT on old PR which doesn't have LINT enabledLoic Blot
2017-04-09Hard-coded undersampling.number Zero
Adds uniform undersampling for the 3D rendered scene. GUI elements are not undersampled, resulting in better playability for users with low-performance platforms with readable fonts and formspecs. The undersampling setting can be set to 0 (disabled), 2, 3, 4 pixels which translates into a resolution reduction of x4, x9 or x16, and is significant.
2017-04-08LocalPlayer api luaVincent Glize
2017-04-08Hardware coloring for itemstacksDániel Juhász
Adds the possibility to colorize item stacks based on their metadata. In the item/node definition you can specify palette (an image file) and color (fallback color if the item has no palette or metadata). Then you can add palette_index to the metadata. Dropped itemstacks with different colors do not merge.
2017-04-08Move chat command handling code from C++ to Lua (#5528)red-001
2017-04-08Replace luaL_reg with luaL_Reg as recent LuaJIT dropped the Lua 5.0 compat ↵Loïc Blot
(#5541) We are bundling Lua5.1 which has same macro
2017-04-08code style fix on src/script/cpp_api/s_client.hLoic Blot
2017-04-08[CSM] Add event on_connect player API lua (#5540)Vincent Glize
* Add event on_connect player API lua
2017-04-07Pass clang-format on 14 trivial header files fixesLoic Blot
Also remove them from whitelist
2017-04-07Fix signed/unsigned conversion warningrubenwardy
There was no bug here (as I checked for negativeness), however it's good to get rid of warnings.
2017-04-07Cavegen: Fix non-constant array initializer error for MSVCSmallJoker
2017-04-07Settings: Update documentation (#5534)SmallJoker
Now documented (sorted a-z): enable_console enable_particles creative_mode hud_scaling inventory_image_hack keymap_console keymap_zoom shader_path view_bobbing
2017-04-07Clang-format: fix some header files and remove them from whitelistLoic Blot
2017-04-07Windows: Skip cmd for release builds (#5416)adrido
2017-04-06Fix "error: ‘playerSAO’ was not declared"Auke Kok
Cause: 351cc2e79a7d78f7ec97ff9b33e4f0bad4042b19 A rebase issue missed a rename from playerSAO to playersao. Tested.
2017-04-06Fix spacingEkdohibs
2017-04-06Fix problems when overriding the hand:Ekdohibs
- If the hand can dig a node the item wielded can't, allow to dig it anyway. - Fix the API callbacks from setting the hand instead of the wielded item.
2017-04-06Add Joystick type detection and Xbox controller supportrubenwardy
* Add joystick type detection (with joystick_type setting to override it) * Fix multiple joysticks from interfering with each other by only reading from one (add joystick_id setting) * Add support for Xbox controllers
2017-04-06Fix multiple death messages (#5305)presstabstart
Fix multiple death messages (#3565) and damage server logs after death.
2017-04-07Show media download progress in percent on progress screen (#5498)orwell96
2017-04-06LINT: Switch whitelist check from egrep to awkLoïc Blot
Bonus: make CI happy with the last rules fix
2017-04-06[CSM] Add function to get the server protocol version. (#5529)red-001