Commit Graph

6207 Commits

Author SHA1 Message Date
Ian Giestas Pauli b5169656d6 Update lua_api.txt 2017-02-18 00:12:40 -02:00
Ian Giestas Pauli d954cfd68b Fixed more style and naming convention issues 2017-02-18 00:07:30 -02:00
Ian Giestas Pauli 6a33ffebd1 Update clientopcodes.cpp 2017-02-01 14:13:56 -02:00
Ian Giestas Pauli 975f3ac674 Update clientpackethandler.cpp 2017-02-01 14:11:43 -02:00
Ian Giestas Pauli a354c558d4 Update sound_openal.cpp 2017-01-31 13:25:17 -02:00
Ian Giestas Pauli e42b8626af Fixed code style in sound_openal.cpp 2017-01-31 13:02:00 -02:00
Ian Giestas Pauli e93cca266e Added sending rule into serveropcodes.cpp 2017-01-31 12:39:30 -02:00
Ian Giestas Pauli 7e267a41c9 Fixed identation issue in guiEngine.h 2017-01-31 12:36:40 -02:00
Ian Giestas Pauli dc9deeb213 Removed useless space between two functions 2017-01-31 12:33:50 -02:00
Ian Giestas Pauli 8ab56cb96e Fixed code style issues 2017-01-31 12:31:51 -02:00
Ian Giestas Pauli c4b0237cca Fixed identation 2017-01-31 12:11:59 -02:00
Ian Giestas Pauli c178ebd7b5 Removed unnecessary cout streams; 2017-01-27 23:06:13 -02:00
Ian Giestas Pauli 55a2e0bb49 Update clientopcodes.cpp 2017-01-27 22:33:42 -02:00
Ian Giestas Pauli 2a4d48c8e6 Update clientopcodes.h 2017-01-27 22:32:45 -02:00
Ian Giestas Pauli 54d622a141 Update sound_openal.cpp 2017-01-27 22:25:18 -02:00
Ian Giestas Pauli 2aab9be249 Update sound.h 2017-01-27 22:24:32 -02:00
Ian Giestas Pauli b57bc59c94 Update server.h 2017-01-27 22:23:56 -02:00
Ian Giestas Pauli 8e2eb08948 Update server.cpp 2017-01-27 22:23:32 -02:00
Ian Giestas Pauli f85ea57a91 Update l_server.h 2017-01-27 22:22:36 -02:00
Ian Giestas Pauli efaffa1b77 Update l_server.cpp 2017-01-27 22:22:12 -02:00
Ian Giestas Pauli d8efe4a560 Update l_mainmenu.h 2017-01-27 22:21:31 -02:00
Ian Giestas Pauli bd32f607b3 Update l_mainmenu.cpp 2017-01-27 22:20:57 -02:00
Ian Giestas Pauli 6fdab7c4f0 Update networkprotocol.h 2017-01-27 22:20:21 -02:00
Ian Giestas Pauli b405ad0485 Update clientpackethandler.cpp 2017-01-27 22:19:14 -02:00
Ian Giestas Pauli e25e7c1848 Update clientopcodes.h 2017-01-27 22:18:23 -02:00
Ian Giestas Pauli a55d21fccb Update guiEngine.h 2017-01-27 22:17:33 -02:00
Ian Giestas Pauli 08bc58184a Update guiEngine.cpp 2017-01-27 22:17:06 -02:00
Ian Giestas Pauli 70b5bd5a34 Update client.h 2017-01-27 22:16:18 -02:00
Loïc Blot b7a98e9850 Implement player attribute backend (#4155)
* This backend permit mods to store extra players attributes to a common interface.
* Add the obj:set_attribute(attr, value) Lua call
* Add the obj:get_attribute(attr) Lua call

Examples:
* player:set_attribute("home:home", "10,25,-78")
* player:get_attribute("default:mana")

Attributes are saved as a json in the player file in extended_attributes
key

They are saved only if a modification on the attributes occurs and loaded
when emergePlayer is called (they are attached to PlayerSAO).
2017-01-27 08:59:30 +01:00
paramat 2a89531071 Dungeongen: Fix selection of diagonal corridors
The do .. while loop is waiting for both dir.X and dir.Z to be non-zero,
so should continue to loop if either dir.X or dir.Z are zero. The brackets
present suggest this was intended to be OR not AND.
2017-01-26 20:19:05 +00:00
paramat ae929ce2fd Dungeons: Add nodebox stairs to desert and sandstone dungeons
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-26 20:18:54 +00:00
Dániel Juhász c268db7b46 Fix after hardware node coloring (#5114) 2017-01-27 01:10:56 +10:00
paramat 9f108b56d3 Dungeongen: Fix out-of-voxelmanip access segfault
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-25 20:34:03 +01:00
rubenwardy 08911160aa Block spam messages before calling on_chatmessage callbacks (#4805)
Fixes #4799
2017-01-25 10:57:33 +01:00
number Zero 33e0eedbfb Add smooth lighting for all nodes
Note: Smooth lighting disables the mesh cache.
2017-01-24 13:59:40 -08:00
raymoo 87e9466caf Wrap to positive degree values (#5106) 2017-01-24 17:25:11 +01:00
sfan5 0cde270bf5 Initialize TileAnimationParams to prevent crashes/bugs for legacy invocations of add_particle{,spawner} (fixes #5108) 2017-01-24 15:19:29 +01:00
paramat 59fdf57134 Zoom FOV: Reduce minimum zoom FOV to 7 degrees
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-23 07:39:58 +00:00
paramat d413dfe87c Dungeons: Support nodebox stairs wider than 1 node
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-23 07:39:50 +00:00
Auke Kok 7fc6719968 core: Add dir_to_yaw and yaw_to_dir helpers
These are needed to go from things like entity yaw to a vector
and vice versa.
2017-01-23 07:38:39 +00:00
Auke Kok 2d7a6f2cc0 Vector: Add vector.sort(a, b): return box edges
This function returns the box corners of the smallest box
that includes the two given coordinates.
2017-01-23 07:38:39 +00:00
Dániel Juhász d04d8aba70 Add hardware node coloring. Includes:
- Increase ContentFeatures serialization version
- Color property and palettes for nodes
- paramtype2 = "color", "colored facedir" or "colored wallmounted"
2017-01-23 07:27:12 +01:00
sfan5 43822de5c6 Fix potential crash in chat handling (since 2f56a00d9e) 2017-01-22 20:17:13 +01:00
Loïc Blot 39123fcce5 Remove os.exit from the Lua secure sandbox (#5090)
os.exit will exit not using proper resource liberation paths.

Mods should call the proper exit mod using our API
2017-01-21 22:05:54 +01:00
Loïc Blot 6d5a407133 Add show_statusline_on_connect setting (#5084)
Add show_statusline_on_connect setting
2017-01-21 19:30:42 +01:00
Loïc Blot bc29e03b59 Revert "Detach the player from entities on death." (#5087) 2017-01-21 17:30:55 +01:00
sapier b9c1a758a1 Fix unknown command message not providing number of cmd 2017-01-21 17:16:22 +01:00
sapier c57b4ff9b5 Add Entity get_texture_mod() to Lua API
Send texture modifier to clients connecting later too
2017-01-21 17:01:02 +01:00
red-001 72535d3328 Detach the player from entities on death. (#5077) 2017-01-21 16:11:55 +01:00
Loïc Blot 0eede97af2 Warning fix for 2ea6015643 (#5082)
Neither flag as force delete nor show the warning when mapblock is full and object is a player
2017-01-21 20:29:18 +10:00