aboutsummaryrefslogtreecommitdiff
path: root/src/mapnode.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-04-17Schematics: Fix core.schematic_create()kwolekr1-0/+1
2015-04-1710s timeout when connecting to serverSmallJoker1-2/+13
2015-04-17Fix build since: "Remove referenced schematics from Decorations on clear"est311-1/+2
Fixes build, which has been broken for all platforms (except BSD?) since grandparent 406d9ba87b9f6e57b86c6282bf157e3341aa195c. Thanks to @SmallJoker for pointing out a solution.
2015-04-17Switch to check_v3s16 in l_mapgen.cpp and l_vmanip.cpp for type safetykwolekr2-18/+18
2015-04-17Schematics: Remove referenced schematics from Decorations on clearkwolekr6-38/+67
2015-04-17Refactor around translatePasswordest318-22/+24
Change types for passed password from wstring to string, which removes converting back and forth in most cases. Move the narrow_to_wide conversion, where its neccessary, closer to irrlicht. Remove trailing spaces in guiPasswordChange.cpp. Make parameters for translatePassword passed as const reference.
2015-04-16Biomes: Remove referenced biomes from Decorations on clearkwolekr6-17/+36
2015-04-17Fix path detection with --std= parameterest311-2/+2
Fixes path detection when compilers have been told to follow a standard, e.g. with -DCMAKE_CXX_FLAGS=--std=c++98. To see the passed defines, try this with and without the --std parameter: gcc -E -dM --std=c99 - < /dev/null | grep linux
2015-04-17Fix build for < C++11 since last commitest311-1/+1
Build broke since last commit 479f38973e13680d6a39d9c2a7f29fd330b67d41 for compilers not supporting C++11. Pre C++11, the constructor of std::ifstream only allows C like strings.
2015-04-16Schematics: Refactor NodeResolver and add NodeResolveMethodkwolekr17-435/+470
NodeResolver name lists now belong to the NodeResolver object instead of the associated NodeDefManager. In addition to minimizing unnecessary abstraction and overhead, this move permits NodeResolvers to look up nodes that they had previously set pending for resolution. So far, this functionality has been used in the case of schematics for serialization/deserialization.
2015-04-16Use std::vector instead of std::set for Environment::getObjectsInsideRadiusLoic Blot4-9/+9
We are only iterating sequentially, we don't need a set here Also use a vector reference instead of a copy
2015-04-16Mgv5: Fix above/below ground spawn when water level is alteredparamat1-1/+1
2015-04-16Mgv5/v7: Add check for water for deciding biome node stabilityparamat2-2/+2
2015-04-14Defaultsettings: Add dungeons and jungles flags. Update conf.exampleparamat2-15/+18
2015-04-13Schematics: Reorganize (de)serialization and add Lua serialization APIkwolekr5-89/+254
2015-04-13Conf.example: Update, fix and improve mapgen flags docsparamat1-14/+16
Remove dynamic weather year parameter
2015-04-12Add Spanish comment translation to minetest.desktopngosang1-1/+2
2015-04-12Mgv6: Fix taiga, allow pine tree spawning on snowblocksparamat1-3/+4
2015-04-12Mgv6: Add optional snow biomesparamat2-107/+190
2015-04-11Fix a rare crash case un SendPlayerHPNer'zhul1-1/+5
If the player is disconnected while Lua API is doing a l_punch call, for example, the playersao is NULL and the server crash. Fix it.
2015-04-08Document for api functions that rely on current_modname, that it doesn't ↵est312-2/+4
work when not loading mods
2015-04-08Link against shlwapi.lib and unify linker input sources for Windowskwolekr2-9/+8
2015-04-08Fix freetype detectionDmitry Marakasov1-16/+23
Don't reinvent freetype detection, use working one from cmake.
2015-04-08Schematics: Prepend mod path to relative schematic filepathskwolekr6-48/+92
2015-04-07TOCLIENT_ACTIVE_OBJECT_MESSAGES: channel must be 1 for unreliable messageLoic Blot1-1/+1
2015-04-07Fix missing SQLite3 statement pointer initializationShadowNinja1-1/+3
This fixes a segfault when the database is shut down before it finishes connecting and setting up.
2015-04-07Cavegen: Remove now unnecessary checks for water, lava, iceparamat3-39/+39
Remove large cave checks for air Mgv5/mgv7:Add is_ground_content checks to 3d noise tunnels More large caves Shorten lines
2015-04-07Make comments consistent with TOSERVER_INIT -> TOSERVER_INIT_LEGACY renameest312-3/+3
2015-04-06Change screenshot filename to one likely to work on all modern filesystemsCraig Robbins1-2/+2
Fixes #2603
2015-04-05TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD can be unreliable, catch PacketError ↵Loic Blot2-17/+22
exception. Also set the packet size at creation not when pushing rawString, no functional change
2015-04-05craftdef.cpp: Return 0 after assert to make Clang happyLoic Blot1-0/+4
2015-04-05Fix uninitialized variabled in ConnectionEventLoic Blot1-1/+2
2015-04-05Crafting speedupest313-88/+349
This greatly increases crafting performance, especially in worlds with many mods. Approved by @kwolekr. Introduces a hash-type-layered fall-through mechanism, where every layer specifies one hash algorithm, and the "deeper the fall", the more collisions to expect for the algorithm. One Craft definition only resides at one layer, which improves speed for lower layers (and a complete fail), due to most craft definitions residing at high layers. Due to the fall-through design, the undocumented behaviour that later craft recipes override older ones had to be weaked up a bit, but craft recipes with the same hash and layer will still override.
2015-04-05Add reason to kicked log message and use present tenseest311-3/+6
2015-04-03Remove errorstream logging on password changeest311-1/+0
This seems to be a debug message which has been forgotten to be removed.
2015-04-03Fix players spawned at (0,0,0) in some rare cases instead of ↵Loic Blot2-25/+17
static_spawnpoint, if set Approved by: @kwoelkr
2015-04-03Create PacketError exception and use it with ACTIVEOBJECT_REMOVE_ADD handler ↵Loic Blot3-15/+24
which can be unreliable
2015-04-02Fix crash caused by null texture in GUI formspec/HUD.Aaron Suen1-1/+6
2015-04-02Fix MSVC error caused by ed10005SmallJoker1-0/+1
2015-04-01Treegen: Add pine tree. Force place trunksparamat2-266/+495
Speed-optimise leaves blits Use MMVManip for make_jungletree Use correct code style
2015-04-01Move globals from main.cpp to more sane locationsCraig Robbins72-193/+119
Move debug streams to log.cpp|h Move GUI-related globals to clientlauncher Move g_settings and g_settings_path to settings.cpp|h Move g_menuclouds to clouds.cpp|h Move g_profiler to profiler.cpp|h
2015-04-01NetworkPacket: reading outside packet is now clearer.Loic Blot2-38/+31
Use a common function to check the reading offset
2015-04-01Fix some minor details from 6d61375kwolekr4-30/+37
2015-04-01Clean scaling pre-filter for formspec/HUD.Aaron Suen20-102/+524
2015-03-31Fix usage of destroyed mutexkwolekr2-80/+85
Also fix a memory leak Fix overloaded virtual warning in Player::move() Remove some trailing whitespace
2015-03-31Fix set_bitskwolekr1-1/+1
2015-03-31ObjDefManager, Mapgen SAPI: Huge refactoringkwolekr8-165/+313
- General code cleanup - Unified object creation and loading - Specifying objects in APIs is now orthogonal (i.e. anything can take an ID, name string, or the raw table definition (and automatically registers if present
2015-03-31Fix use of unitialized variable in gettext.cppCraig Robbins1-3/+3
#2583
2015-03-31Connection::Receive(): receive Network Packet instead of SharedBuffer<u8>.Loic Blot9-98/+104
Because we get a Buffer<u8> from ConnectionEvent, don't convert it to SharedBuffer<u8> and return it to Server/Client::Receive which will convert it to NetworkPacket Instead, put the Buffer<u8> directly to NetworkPacket and return it to packet processing This remove a long existing memory copy Also check the packet size directly into Connection::Receive instead of packet processing
2015-03-31RunCommandQueues: little optimizationLoic Blot1-6/+9
remove command from queue on success, else do nothing, instead of remove command from queue and push it front on success