aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-02minetest.after(): simplify further, pause in singleplayer (#5500)Auke Kok
Using the `dtime` value entirely, this will stop the clock if the game is paused in singleplayer. Since most of the clocks were fixed a long time ago, this should again be safe to use.
2017-04-01First commit for fine pointed (#5485)MarkuBu
2017-04-01Add missing source to android build (#5496)Uwe Koloska
2017-04-01Clang-format: trivial fix on some headers (#5495)Loïc Blot
Fix some headers style and remove them from whitelist
2017-04-01[CSM] Add function and chat command to disconnect from server. (#5487)red-001
2017-04-01Signlike, glasslike drawtypes: Fix inverted texturesnumber Zero
2017-04-01mapgen: Fix segfault when selecting invalid mapgen (#5491)SmallJoker
2017-03-31Fix clang-format Columns WidthLoic Blot
Also fix l_client.cpp/h and remove them from whitelist
2017-03-31Wieldmesh: Natural orientation depending on pitch (#5490)kilbith
2017-03-30Windows: Set window icon (#5486)adrido
2017-03-30Paramtype2: Add missing type CPT2_GLASSLIKE_LIQUID_LEVELparamat
Add the missing paramtype2 for param2 controlling the liquid level inside the glasslike_framed drawtype. Add missing documentation of the feature to lua_api.txt. Update and improve comments for drawtype enumerations in nodedef.h.
2017-03-29l_minimap: don't show minimap if configuration doesn't allow itLoïc Blot
2017-03-29Add CPP11 header to define nullptr & constexpr (#5471)Loïc Blot
This header permit to use nullptr & constexpr keywords in portable code segments and benefit from nullptr & constexpr when using C++11 and greater
2017-03-29Sneak: Fix sneaking on free-floating lower-half slabssfan5
2017-03-29Sneak: Fix stair lower step bug and ladder in 1x1 hole bugssfan5
2017-03-28Add functions to strip color information. (#5472)Diego Martínez
2017-03-28Fix a type bug in colorize functionLoïc Blot
This bug was introduced by dd2f1d7551bfd70357ad4f3fb180704194272147 and reported by @kilbith
2017-03-28[CSM] Fix errors in and improve the CSM documentation. (#5467)red-001
2017-03-27clang-format: add a whitelist (#5459)Loïc Blot
If file is in the whitelist, softfail, else hard failure Some files are not in whitelist and marked as normal: * src/content_mapnode.h * src/cguittfont/xCGUITTFont.cpp * src/gameparams.h * src/profiler.cpp
2017-03-27PostgreSQL: fix delete blockLoïc Blot
Typo fix: we are doing select on delete block. This fix issue #5426
2017-03-27Map generation limit: Make per-worldparamat
The setting limits map generation but affects nothing else. Add 'mapgen_limit' to global mapgen parameters. Move 'blockpos_over_mapgen_limit()' to the only place it is called from: map.cpp. Allow teleportation to any part of the world even if over the set mapgen limit. Simplify the reading of this limit in mgvalleys. Remove the 'map_generation_limit' setting.
2017-03-27Pathfinder: Send errors to `warningstream`.Diego Martínez
Avoids spamming the chat about several errors.
2017-03-26Fix mismatch struct/class for GameUIFlagsLoic Blot
2017-03-26clang-format: fix counter increment & output (#5456)Loïc Blot
clang-format: fix bash syntax on increment
2017-03-26clang-format: limit diff to 50 files to prevent exceding the maximum travis ↵Loïc Blot
output (4MB) (#5455)
2017-03-26Sneak: Replicate sneak ladder in new code, is optionalsfan5
Enabled using the existing 'sneak_glitch' physics override.
2017-03-26Change command prefix to "." and add "help" command.red-001
2017-03-26Add mesh generation delaynumber Zero
2017-03-25Add clang format & skip build if no source file modified (#5433)Loïc Blot
* [BUILD] Add clang format + build skipping * Add clang-format tool to check codestyle. Warning: it check the whole modified file, not the diff part, it's why it's lazy. Please also look if rules are perfect, i take the Linux codestyle from LLVM site Fix issue #5415 * Skip building project if no file is modified * Fix a wrong brace to trigger LINT * Make lint step outside of unix build scope * Add AccessModifierOffset: -8 * Typo fix & needs compile fix * Fix header priorities
2017-03-24Tile.cpp: Fix MSVC build broken by 072bbbaSmallJoker
2017-03-24Typo fixLoïc Blot
2017-03-24Add multiline support to colorize. (#5444)red-001
2017-03-22Some performance optimizations (#5424)Loïc Blot
* Some performance optimizations This is globally removing some memory useless copy * use a const ref return on std::string Settings::get to prevent data copy on getters which doesn't need to copy it * pass some stack created strings to static const as they are not modified anywhere * Camera: return nametags per const ref instead of a list pointer, we only need to read it * INodeDefManager: getAll should be a result ref writer instead of a return copy * INodeDefManager: getAlias should return a const std::string ref * Minimap: unroll a Scolor creation in blitMinimapPixersToImageRadar to prvent many variable construct/destruct which are unneeded (we rewrite the content in the loop) * CNodeDefManager::updateAliases: prevent a idef getall copy * Profiler: constness * rollback_interface: create real_name later, and use const ref * MapBlockMesh updateFastFaceRow: unroll TileSpec next_tile, which has a cost of 1.8% CPU due to variable allocation/destruction, * MapBlockMesh updateFastFaceRow: copy next_tile to tile only if it's a different tilespec * MapBlockMesh updateFastFaceRow: use memcpy to copy next_lights to lights to do it in a single cpu operation
2017-03-22[CSM] Add function to get player names in range (#5435)bigfoot547
* [CSM] Add function to get currently connected player names
2017-03-20Firelike drawtype: Add missing docs for visual_scale in lua_api.txt (#5434)Paramat
2017-03-20Content_mapblock.cpp: Refactornumber Zero
2017-03-20Refactored client event if-else cascade to switch statementBen Deutsch
2017-03-20Map generation limit: Rewriteparamat
The previous implementation applied the setting to blockpos_over_limit(), objectpos_over_limit() and in createSector(), causing many bugs near the world edge. First revert the previous implementation. Rename blockpos_over_limit() to blockpos_over_max_limit() for clarity. Add a new function to mapblock.h called blockpos_over_mapgen_limit() that checks against the map_generation_limit setting, and call this only from the code that decides where mapgen stops. Use MAX_MAP_GENERATION_LIMIT in objectpos_over_limit() to reduce the chance of bugs, there is no need to use map_generation_limit here.
2017-03-19Fix /shutdown or ^C no longer causing server exitsfan5
Broken since b8484ef24e8e1ec90a2967372808ab2bea538c7c
2017-03-19Refactor Game class (part 2) (#5422)Loïc Blot
* showPauseMenu is now part of game * remove many flags parameters passed to game functions, use the member. * rename VolatileRunFlags to GameUIFlags (this will permit to share structure with client and CSM * updatePointedThing: remove pointer ref, we already have the pointer in rundata * move some attributes outside of VolatileRunFlags after renaming, to game class * rename statustext to m_statustext * make some const variables static * All those changes permit to reduce a little bit function class cost and will permit to interface CSM with some interesting Game flags * Expose GameUIFlags to client * Client now have GameUIFlags parameter and setters for other classes * Fix minimap show/hide in Lua because we now have access to the real flag
2017-03-19Block access to the `io` libraryred-001
2017-03-19Update server min protocol version to v24 (#5411)Loïc Blot
* Update server min protocol version to v24 It's based on @sfan5 stats. See https://kitsunemimi.pw/tmp/serverlist_stats_2017-03-17.txt v24 was bumped 25/08/14 and 0.4.11 was released 25/12/14 * Drop protocol v23 and lesser code
2017-03-18Server list cleanupShadowNinja
This removes the hacky server_dedicated pseudo-setting.
2017-03-18Show itemstring as tooltip if no item descriptionWuzzy
2017-03-18TOGGLE_CHAT keymap should togglechat not HUDLoic Blot
Fixes #5413
2017-03-17Reduce memory & function cost of Game class functions (#5406)Loïc Blot
GameRunData is passed on many game functions, or one of its attributes whereas it's a member of the class. Remove it from functions arguments and call object directly from concerned functions. This will reduce a little bit the Game class loop usage & very little bit the memory usage (due to non creation of pointer/references)
2017-03-17avoid crashing when accessing mapgen early (#5384)zeuner
2017-03-17Give CSM access to use `core.colorize()` (#5113)red-001
2017-03-17[CSM] Fix minimap problems (#5405)Loïc Blot
This fixes issue #5404
2017-03-17[CSM] Add core.get_timeofday & core.get_day_count env calls (#5401)Loïc Blot
* [CSM] Add core.get_timeofday & core.get_day_count env calls * [CSM] Add core.get_node_level, core.get_node_max_level, core.find_node_near