aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-01-26Dungeons: Add nodebox stairs to desert and sandstone dungeonsparamat
Desert and sandstone dungeons have 2 node wide corridors. Previously, nodebox stairs were disabled because dungeon generation code did not support nodebox stairs wider than 1 node, now it does. Add 'stair desert stone' content id to MappgenBasic. Requires 'mapgen stair desert stone' to be added to Minetest Game.
2017-01-27Fix after hardware node coloring (#5114)Dániel Juhász
2017-01-25Dungeongen: Fix out-of-voxelmanip access segfaultparamat
My recent dungeon commit allowed stairs to be placed across the full width of corridors, but some of the new node positions accessed were missing checks for being within the voxelmanip, causing occasional segfaults near dungeons with corridors wider than 1 node. Add 'vm->m_area.contains(pos)' checks just before stair position voxelmanip access. This allows an earlier check to be removed as it is now redundant.
2017-01-25Block spam messages before calling on_chatmessage callbacks (#4805)rubenwardy
Fixes #4799
2017-01-24Add smooth lighting for all nodesnumber Zero
Note: Smooth lighting disables the mesh cache.
2017-01-24Wrap to positive degree values (#5106)raymoo
2017-01-24Initialize TileAnimationParams to prevent crashes/bugs for legacy ↵sfan5
invocations of add_particle{,spawner} (fixes #5108)
2017-01-23Zoom FOV: Reduce minimum zoom FOV to 7 degreesparamat
The default of 15 is unchanged. 7 degrees is x10 magnification which is common for binoculars. Alter hardcoded limits in camera.cpp: Minimum 7 degrees. Maximum 160 degrees to match upper limits in advanced settings.
2017-01-23Dungeons: Support nodebox stairs wider than 1 nodeparamat
Previously, code did not support stair nodeboxes in corridors wider than 1 node. Make stair nodeboxes full width even in corridors with different widths in X and Z directions.
2017-01-23Add hardware node coloring. Includes:Dániel Juhász
- Increase ContentFeatures serialization version - Color property and palettes for nodes - paramtype2 = "color", "colored facedir" or "colored wallmounted"
2017-01-22Fix potential crash in chat handling (since ↵sfan5
2f56a00d9eef82052614e5854a07b39b087efd0b)
2017-01-21Remove os.exit from the Lua secure sandbox (#5090)Loïc Blot
os.exit will exit not using proper resource liberation paths. Mods should call the proper exit mod using our API
2017-01-21Add show_statusline_on_connect setting (#5084)Loïc Blot
Add show_statusline_on_connect setting
2017-01-21Revert "Detach the player from entities on death." (#5087)Loïc Blot
2017-01-21Fix unknown command message not providing number of cmdsapier
2017-01-21Add Entity get_texture_mod() to Lua APIsapier
Send texture modifier to clients connecting later too
2017-01-21Detach the player from entities on death. (#5077)red-001
2017-01-21Warning fix for 2ea60156437962d7d29d20606bf5d9189059f76b (#5082)Loïc Blot
Neither flag as force delete nor show the warning when mapblock is full and object is a player
2017-01-21Do not force deletion of players when mapblock is full (#5081)Loïc Blot
This fixes #4067
2017-01-20Remove `mathconstants.h` and use the correct way to get `M_PI` in MSVC. (#5072)red-001
2017-01-19Fix MSVC build Build broken by 98e36d7SmallJoker
2017-01-18Add particle animation, glowsfan5
This is implemented by reusing and extending the TileAnimation code for the methods used by particles.
2017-01-17Fix typo in alias for deprecated settexturemodsapier
2017-01-17Remove client-side chat prediction. (#5055)red-001
Network lag isn't really a big issue with chat and chat prediction makes writing mods harder.
2017-01-16Rename ObjectRef methods to be consistent and predictablerubenwardy
2017-01-15Added lua tracebacks to some errors where you have been blind to what… (#5043)sapier
* Added lua tracebacks to some errors where you have been blind to what actually went wrong
2017-01-15Add color names from web page referenced in luaapi docsapier
2017-01-14Only set material flag on rendered meshes (#5023)lhofhansl
2017-01-14Fix build with freetype support disabledsfan5
2017-01-14Fix another missing const reported by clang & @sfan5Loic Blot
Signed-off-by: Loic Blot <loic.blot@unix-experience.fr>
2017-01-14Fix missing const in ServerActiveObject::getStaticDataLoic Blot
This fixes #5033 Signed-off-by: Loic Blot <loic.blot@unix-experience.fr>
2017-01-13Organize defaultsettings.cppShadowNinja
2017-01-13Main menu tweaksShadowNinja
2017-01-13Optimize SAO getStaticData by using std::string pointer instead of return copyLoic Blot
Signed-off-by: Loic Blot <loic.blot@unix-experience.fr>
2017-01-13Cleanup content_sao by factorizing similar code partsRogier
Signed-off-by: Loic Blot <loic.blot@unix-experience.fr>
2017-01-13Enable mod security by defaultShadowNinja
2017-01-13Meshes: Make object mesh face shading consistentparamat
Previously, object meshes had their North and South faces darker than East and West faces, the opposite of nodes and meshnodes. This commit corrects this. State constants as float-literals not double-literals. Simplify code. Add comment.
2017-01-11Make nametag removable with set_nametag_attributes (#5021)Rui
2017-01-11Cleanup some header inclusions to improve compilation timesLoic Blot
2017-01-11Performance fix + SAO factorizationRogier
Original credits goes to @Rogier-5 * Merge common attributes between LuaEntitySAO & PlayerSAO to UnitSAO * Make some functions const * Improve some lists performance by returning const ref Signed-off-by: Loic Blot <loic.blot@unix-experience.fr>
2017-01-09Add staticdata parameter to add_entity (#5009)Rui
* Add staticdata parameter to add_entity * Add add_entity_with_staticdata to core.features
2017-01-09Environment & IGameDef code refactoring (#4985)Ner'zhul
* Environment code refactoring * Cleanup includes & class declarations in client & server environment to improve build speed * ServerEnvironment::m_gamedef is now a pointer to Server instead of IGameDef, permitting to cleanup many casts. * Cleanup IGameDef * Move ITextureSource* IGameDef::getTextureSource() to Client only. * Also move ITextureSource *IGameDef::tsrc() helper * drop getShaderSource, getSceneManager, getSoundManager & getCamera abstract call * drop unused emerge() call * cleanup server unused functions (mentionned before) * Drop one unused parameter from ContentFeatures::updateTextures * move checkLocalPrivilege to Client * Remove some unnecessary casts * create_formspec_menu: remove IWritableTextureSource pointer, as client already knows it * Fix some comments * Change required IGameDef to Server/Client pointers * Previous change that game.cpp sometimes calls functions with Client + InventoryManager + IGameDef in same functions but it's the same objects * Remove duplicate Client pointer in GUIFormSpecMenu::GUIFormSpecMenu * drop ClientMap::sectorWasDrawn which is unused
2017-01-09support older PostGreSQL versions (#4999)zeuner
* support older PostGreSQL versions * documentation accuracy * improve performance by affecting less rows in UPDATE queries
2017-01-08Map generation limit: Cache as 'const' not 'const static'paramat
2017-01-08Map generation limit: Fix checks for block/sector over-limitparamat
Fix the maths that check if any part of a mapblock or sector is over the set map_generation_limit. Therefore avoid the loading of any over-limit blocks that were previously generated when map_generation_limit was larger. The set limit can vary for a world because it is not yet a per-world mapgen parameter, even when it is sometimes it will be changed deliberately. Therefore avoid a player being returned to world centre if they re-enter a world while being over-limit. Fix the createSector() crash caused by a mob spawning over-limit in an over-limit mapblock
2017-01-08Minor: Fix indentation in serverenvironment.cppLars Hofhansl
2017-01-08Move ServerEnvironment to dedicated cpp/header filesLoic Blot
* also cleanup some unneeded inclusions
2017-01-08Move ClientEnvironment to dedicated cpp/header filesLoic Blot
2017-01-08Get neighbor from same map block if possible in ABMHandler (#4998)lhofhansl
2017-01-07Revert "Extend minetest.is_yes()"sfan5
This reverts commit c435eabf3ffb77eab955d5faeb5450da1befc149.