aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix mismatch struct/class for GameUIFlagsLoic Blot2017-03-261-1/+1
|
* clang-format: fix counter increment & output (#5456)Loïc Blot2017-03-261-6/+9
| | | clang-format: fix bash syntax on increment
* clang-format: limit diff to 50 files to prevent exceding the maximum travis ↵Loïc Blot2017-03-261-0/+7
| | | | output (4MB) (#5455)
* Sneak: Replicate sneak ladder in new code, is optionalsfan52017-03-262-21/+89
| | | | Enabled using the existing 'sneak_glitch' physics override.
* Change command prefix to "." and add "help" command.red-0012017-03-269-63/+103
|
* Add mesh generation delaynumber Zero2017-03-266-2/+22
|
* Add clang format & skip build if no source file modified (#5433)Loïc Blot2017-03-256-3/+68
| | | | | | | | | | | | | | | | | | | | * [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
* Tile.cpp: Fix MSVC build broken by 072bbbaSmallJoker2017-03-241-2/+2
|
* Typo fixLoïc Blot2017-03-241-1/+1
|
* Add multiline support to colorize. (#5444)red-0012017-03-241-1/+8
|
* Some performance optimizations (#5424)Loïc Blot2017-03-2216-134/+79
| | | | | | | | | | | | | | | | | | | * 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
* [CSM] Add function to get player names in range (#5435)bigfoot5472017-03-224-2/+33
| | | * [CSM] Add function to get currently connected player names
* Firelike drawtype: Add missing docs for visual_scale in lua_api.txt (#5434)Paramat2017-03-201-3/+4
|
* Content_mapblock.cpp: Refactornumber Zero2017-03-205-1940/+1295
|
* Refactored client event if-else cascade to switch statementBen Deutsch2017-03-201-102/+138
|
* Map generation limit: Rewriteparamat2017-03-204-59/+44
| | | | | | | | | | | | | | 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.
* Fix /shutdown or ^C no longer causing server exitsfan52017-03-191-0/+3
| | | | Broken since b8484ef24e8e1ec90a2967372808ab2bea538c7c
* Refactor Game class (part 2) (#5422)Loïc Blot2017-03-196-266/+285
| | | | | | | | | | | | | | * 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
* Block access to the `io` libraryred-0012017-03-192-34/+13
|
* Update server min protocol version to v24 (#5411)Loïc Blot2017-03-1910-299/+116
| | | | | | | | | | * 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
* Server list cleanupShadowNinja2017-03-186-50/+56
| | | | This removes the hacky server_dedicated pseudo-setting.
* Show itemstring as tooltip if no item descriptionWuzzy2017-03-181-0/+3
|
* TOGGLE_CHAT keymap should togglechat not HUDLoic Blot2017-03-181-1/+1
| | | | Fixes #5413
* Reduce memory & function cost of Game class functions (#5406)Loïc Blot2017-03-171-271/+217
| | | | 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)
* avoid crashing when accessing mapgen early (#5384)zeuner2017-03-171-0/+3
|
* Give CSM access to use `core.colorize()` (#5113)red-0012017-03-174-33/+74
|
* [CSM] Fix minimap problems (#5405)Loïc Blot2017-03-175-17/+18
| | | This fixes issue #5404
* [CSM] Add core.get_timeofday & core.get_day_count env calls (#5401)Loïc Blot2017-03-1713-25/+67
| | | | | | * [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
* Fix indentation problem since merge resolutionLoïc Blot2017-03-161-1/+1
| | | | Github merge conflict resolution is not the best with indent
* [CSM] Add minimap API modifiers (#5399)Loïc Blot2017-03-1614-53/+349
| | | | | | | | * Rename Mapper (too generic) to Minimap * Add lua functions to get/set position, angle, mode for minimap * Client: rename m_mapper to m_minimap * Add minimap to core.ui namespace (core.ui.minimap) * Add various functions to manage minimap (show, hide, toggle_shape) * Cleanup trivial declaration in client
* Add ModStorageAPI to client side modding (#5396)Loïc Blot2017-03-168-11/+68
| | | mod storage is located into user_path / client / mod_storage
* Get biome list: Downgrade missing biome message to infostreamparamat2017-03-161-4/+4
| | | | | | | | | | It is harmless for a biome listed in an ore or decoration registration to be missing. Now that we are registering certain biomes or not based on options (such as floatland biomes), the biome lists in ore and decoration registrations trigger these error messages, avoiding these error messages would need a large amount of duplication of ore and decoration registrations.
* Sneak: Fix various problems with sneakingsfan52017-03-162-65/+47
| | | | | | | | | | Sneaking won't actually hover you in the air, releasing shift guarantees not falling down (same as in MC). Sneak-jump no longer goes higher than a normal jump (^ was required for this). Sneaking no longer avoids fall damage. You can sneak on partial nodes (slabs, sideways slabs) correctly. Sneaking doesn't "go out" as far anymore (0.29 instead of 0.4). Can't jump when sneaking out as far as possible (breaks the sneak ladder).
* lua_api: Document minetest.features (#5311)SmallJoker2017-03-151-4/+22
|
* Use true distance for block priority.Lars Hofhansl2017-03-151-3/+3
|
* Fix undefined references (#5400)Wayward One2017-03-151-1/+5
|
* Fix two nul deref if digging unknown nodes. (#5398)Auke Kok2017-03-151-2/+2
| | | Introduced by d785456b3fa35faf47cb972fde9e8668382c5e22 (#5162)
* Add disclaimer to client_lua_api.txt (#5391)rubenwardy2017-03-141-3/+6
|
* Add `get_wielded_item`red-0012017-03-1315-33/+92
|
* [CSM] Add enable_client_modding param (default: false)nerzhul2017-03-139-14/+41
|
* [CSM] Add `on_punchnode` callbackred-0012017-03-136-11/+46
|
* [CSM] Add `get_node` and `get_node_or_nil`red-0012017-03-136-2/+67
|
* [CSM] Add `on_dignode` callback (#5140)red-0012017-03-136-13/+57
|
* [CSM] storage + fixesLoic Blot2017-03-137-11/+9
|
* [CSM] Improve security for client-sided mods (#5100)red-0012017-03-136-29/+171
|
* [CSM] implement client side mod loading (#5123)Loïc Blot2017-03-139-148/+194
| | | | | | | | | * client side mods are located in clientmods/ * move builtin/preview.lua to clientmods/preview/init.lua as a preview mod * refactor ModConfiguration class to work properly with client and server using child objects * move some Server constructor mod load code to ModConfiguration to reduce code duplication between client and server * remove mods.{cpp,h} unused functions * use UNORDERED_SET instead of std::set in some modspec storages
* [CSM] Add local formspecs. (#5094)red-0012017-03-1312-67/+126
|
* [CSM] sound_play & sound_stop support + client_lua_api doc (#5096)Loïc Blot2017-03-1323-91/+996
| | | | | | | | | | * squashed: CSM: Implement register_globalstep * Re-use fatal error mechanism from server to disconnect client on CSM error * Little client functions cleanups * squashed: CSM: add core.after function * core.after is shared code between client & server * ModApiUtil get_us_time feature enabled for client
* [CSM] Add client-sided chat commands (#5092)red-0012017-03-139-33/+100
|
* [CSM] Add on_death, on_hp_modification & oh_damage_taken callbacks (#5093)Loïc Blot2017-03-138-18/+76
| | | | | | * Add on_death callback * Add on_hp_modification & on_damage_taken callbacks * move preview code to preview.lua