aboutsummaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-04-21Fix various performance issues reported by cppcheck (#5628)Loïc Blot8-77/+59
* Also remove 1 non declared but defined functions
2017-04-20Run generate_from_settingtypes.luaEkdohibs1-79/+174
2017-04-20Light update for map blocksDániel Juhász8-3/+209
This is not really different from the light update of a voxel manipulator. This update does not assume that the lighting was correct before, therefore it is useful for correction. Also expose this function to the Lua API for light correction, and allow voxel manipulators not to update the light.
2017-04-20Split light update into two partsDániel Juhász1-58/+92
The common part can be reused.
2017-04-20Fix various copy instead of const ref reported by cppcheck (part 3) (#5616)Loïc Blot25-183/+183
* Also remove 2 non declared but defined functions * Make some functions around const ref changes const
2017-04-19Fix various copy instead of const ref reported by cppcheck (#5615)Loïc Blot13-68/+46
* Also remove InventoryList::peekItem unused function * Fix some post increment to preincrement reported by cppcheck
2017-04-19Conf.example: Move some lines to minetest.conf.example.extraparamat3-42/+64
Some information in conf.example cannot be generated from settingtypes.txt, moving it to a new file makes generating conf.example while preserving that information easier. Regenerate conf.example from settingtypes.txt.
2017-04-19Pointed thing to face pos: Fix crash if opening door with slab or stairMarkuBu1-2/+2
Avoids crash caused when 'pointed thing -under' and '-above' are not face-neighbours, for example in the case of pointing to the top half of a door.
2017-04-19Tools: Fix tool digging speed limitHybrid Dog3-11/+3
2017-04-19Fix various variables passed by copy instead of const ref (#5610)Loïc Blot14-29/+31
Pointed by cppcheck
2017-04-18Fix broken lint since 04cc9de8f2fbcb11f133c88f02fc11504b3ea6f3Loïc Blot2-11/+12
2017-04-18Reorder TileSpec. (#5591)Auke Kok1-24/+27
Put accessed members that are needed by updateFastFaceRow() all in the same cacheline.
2017-04-18Fix always using the xbox layout (reported by coverity).Ekdohibs1-1/+1
2017-04-17Don't make TAB exit game if bound to inventory.Auke Kok1-2/+3
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 34d32ceSmallJoker3-5/+5
`round` -> `myround` Remove superflous `floor` calls
2017-04-17MeshUpdateQueue: Add a MapBlock cache that minimizes the amount of MapBlock ↵Perttu Ahola12-278/+526
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 Ahola1-0/+1
2017-04-17Sneak: Add option for old move codeparamat10-12/+349
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 Blot1-1/+0
2017-04-17Plug two minor Leaks (#5603)Auke Kok2-2/+11
* 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 Blot5-33/+42
* 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-16Disable android leveldb by default (#5596)Nathanaël Courant1-3/+4
1) Now leveldb is brick (thanks google) 2) By default, use SQLite3, this work perfectly and NOBODY not use LevelDB on Android :)
2017-04-15Implement delayed server shutdown with cancelation (#4664)Loïc Blot8-14/+124
2017-04-15Minimap: Do a double-typecast to fix compiling with MSVCSmallJoker1-1/+1
2017-04-15Partial damage cheat fix: node damages server side (#4981)Loïc Blot3-29/+48
* 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 Blot2-6/+6
2017-04-14Fix wrong channel type in Client/Server CommandFactoriesLoic Blot2-2/+2
This is a u8 not a u16
2017-04-14ClientIface::sendToAll: honor packet configuration (#5590)Loïc Blot3-10/+12
2017-04-14Fix android buildLoic Blot3-1/+6
2017-04-14[CSM] Add function to set minimap shape (#5569)bigfoot5476-6/+49
* [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ász1-1/+4
2017-04-13Add documentation for map block format 27 (#5576)Dániel Juhász2-10/+33
2017-04-12[CSM] Fix localplayer documentation (#5557)Vincent Glize1-1/+3
2017-04-12Fix inability to change metadata using stack:to_table() (#5547)numberZero1-0/+2
2017-04-12Fix fips_cipher_abort warning and other duplicate macrosLoic Blot1-5/+0
2017-04-11[CSM] Allow escaping chatcommands and add missing calls to gettext. (#5565)red-0011-6/+8
2017-04-11Replace occurrence of luaL_reg in l_localplayer (#5566)t0ny21-1/+1
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-upparamat2-4/+46
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-10[CSM] Use more gettext (#5553)red-0012-10/+21
2017-04-10[CSM] Move `.list_players` and `.disconnect` to builtin. (#5550)red-0012-13/+15
2017-04-10Clang-format fix for AndroidLoïc Blot1-1/+1
2017-04-10Clang-format styles fixes since previous commitLoïc Blot4-6/+19
2017-04-10Clang format: fix LINT on old PR which doesn't have LINT enabledLoic Blot3-30/+16
2017-04-09Hard-coded undersampling.number Zero5-7/+54
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 Glize7-2/+640
2017-04-08Hardware coloring for itemstacksDániel Juhász23-139/+308
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-0012-20/+18
2017-04-08Document that write_json will error on unserializable types. (#5539)raymoo2-2/+2
Previously it was erroneously documented that it would save them as null.