aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Biomes: Remove referenced biomes from Decorations on clearkwolekr2015-04-166-17/+36
|
* Fix path detection with --std= parameterest312015-04-171-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
* Fix build for < C++11 since last commitest312015-04-171-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.
* Schematics: Refactor NodeResolver and add NodeResolveMethodkwolekr2015-04-1616-431/+457
| | | | | | | | | 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.
* Use std::vector instead of std::set for Environment::getObjectsInsideRadiusLoic Blot2015-04-164-9/+9
| | | | | We are only iterating sequentially, we don't need a set here Also use a vector reference instead of a copy
* Mgv5: Fix above/below ground spawn when water level is alteredparamat2015-04-161-1/+1
|
* Mgv5/v7: Add check for water for deciding biome node stabilityparamat2015-04-162-2/+2
|
* Defaultsettings: Add dungeons and jungles flags. Update conf.exampleparamat2015-04-141-1/+2
|
* Schematics: Reorganize (de)serialization and add Lua serialization APIkwolekr2015-04-134-89/+245
|
* Mgv6: Fix taiga, allow pine tree spawning on snowblocksparamat2015-04-121-3/+4
|
* Mgv6: Add optional snow biomesparamat2015-04-122-107/+190
|
* Fix a rare crash case un SendPlayerHPNer'zhul2015-04-111-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.
* Document for api functions that rely on current_modname, that it doesn't ↵est312015-04-081-0/+1
| | | | work when not loading mods
* Link against shlwapi.lib and unify linker input sources for Windowskwolekr2015-04-082-9/+8
|
* Fix freetype detectionDmitry Marakasov2015-04-081-16/+23
| | | | Don't reinvent freetype detection, use working one from cmake.
* Schematics: Prepend mod path to relative schematic filepathskwolekr2015-04-085-48/+91
|
* TOCLIENT_ACTIVE_OBJECT_MESSAGES: channel must be 1 for unreliable messageLoic Blot2015-04-071-1/+1
|
* Fix missing SQLite3 statement pointer initializationShadowNinja2015-04-071-1/+3
| | | | | This fixes a segfault when the database is shut down before it finishes connecting and setting up.
* Cavegen: Remove now unnecessary checks for water, lava, iceparamat2015-04-073-39/+39
| | | | | | | Remove large cave checks for air Mgv5/mgv7:Add is_ground_content checks to 3d noise tunnels More large caves Shorten lines
* Make comments consistent with TOSERVER_INIT -> TOSERVER_INIT_LEGACY renameest312015-04-072-3/+3
|
* Change screenshot filename to one likely to work on all modern filesystemsCraig Robbins2015-04-061-2/+2
| | | | Fixes #2603
* TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD can be unreliable, catch PacketError ↵Loic Blot2015-04-052-17/+22
| | | | | | exception. Also set the packet size at creation not when pushing rawString, no functional change
* craftdef.cpp: Return 0 after assert to make Clang happyLoic Blot2015-04-051-0/+4
|
* Fix uninitialized variabled in ConnectionEventLoic Blot2015-04-051-1/+2
|
* Crafting speedupest312015-04-053-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.
* Remove errorstream logging on password changeest312015-04-031-1/+0
| | | | This seems to be a debug message which has been forgotten to be removed.
* Fix players spawned at (0,0,0) in some rare cases instead of ↵Loic Blot2015-04-032-25/+17
| | | | | | static_spawnpoint, if set Approved by: @kwoelkr
* Create PacketError exception and use it with ACTIVEOBJECT_REMOVE_ADD handler ↵Loic Blot2015-04-033-15/+24
| | | | which can be unreliable
* Fix crash caused by null texture in GUI formspec/HUD.Aaron Suen2015-04-021-1/+6
|
* Fix MSVC error caused by ed10005SmallJoker2015-04-021-0/+1
|
* Treegen: Add pine tree. Force place trunksparamat2015-04-012-266/+495
| | | | | | Speed-optimise leaves blits Use MMVManip for make_jungletree Use correct code style
* Move globals from main.cpp to more sane locationsCraig Robbins2015-04-0171-193/+118
| | | | | | | | | | | | 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
* NetworkPacket: reading outside packet is now clearer.Loic Blot2015-04-012-38/+31
| | | | Use a common function to check the reading offset
* Fix some minor details from 6d61375kwolekr2015-04-013-28/+35
|
* Clean scaling pre-filter for formspec/HUD.Aaron Suen2015-04-0118-102/+509
|
* Fix usage of destroyed mutexkwolekr2015-03-312-80/+85
| | | | | | Also fix a memory leak Fix overloaded virtual warning in Player::move() Remove some trailing whitespace
* Fix set_bitskwolekr2015-03-311-1/+1
|
* ObjDefManager, Mapgen SAPI: Huge refactoringkwolekr2015-03-317-165/+311
| | | | | | | - 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
* Fix use of unitialized variable in gettext.cppCraig Robbins2015-03-311-3/+3
| | | | #2583
* Connection::Receive(): receive Network Packet instead of SharedBuffer<u8>.Loic Blot2015-03-319-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
* RunCommandQueues: little optimizationLoic Blot2015-03-311-6/+9
| | | | remove command from queue on success, else do nothing, instead of remove command from queue and push it front on success
* Typo in getOutgoingSequenceNumber => successfull to successfulLoic Blot2015-03-311-3/+3
|
* Move texture_min_size even further down the pipe. Now, textures are ↵Aaron Suen2015-03-3111-78/+78
| | | | JIT-upscaled using an image transformation, right at the time they're added to a mesh or particle; images used in 2D elements are left unscaled. This should fix any remaining issues with HUD elements.
* Change format of screenshot namesCraig Robbins2015-03-312-16/+40
| | | | | | | | Filename screenshot_ + ISO 8601 format + [-serial] i.e. screenshot_YYYY-MM-DDTHH::MM::SS[-serial].png Serial is added if the filename + timestamp already exists and is in the range 1 to 999
* GenElementManager: Pass opaque handles to Lua and rename to ObjDefManagerkwolekr2015-03-3115-201/+344
| | | | Add core.clear_registered_schematics() and refactor schematics somewhat
* Use Buffer not SharedBuffer in NetworkPacket::oldForgePacketLoic Blot2015-03-301-1/+1
|
* On Android enable always fastCraig Robbins2015-03-301-11/+29
| | | | | Invert the meaning of holding down the fast button (i.e. holding down the fast button -- if there is one -- means walk), unless performing an action, sneaking or jumping. Still requires fast move to be toggled on (and fast priv)
* Fix Android build-related bugsCraig Robbins2015-03-291-16/+9
| | | | E.g. Sound and freetype always being disabled, redefinition of pre-processor directives
* Make sure g_timegetter is initalised before running speedtestsCraig Robbins2015-03-291-3/+3
| | | | Thanks @SmallJoker for noticing the issue
* Fix typoCraig Robbins2015-03-291-1/+1
|