summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* Pathfinder: use core::aabbox3d instead of own typeest312016-05-01
| | | | | There is no need to reinvent the wheel here, we have great classes from irrlicht.
* Pathfinder: Fix styleest312016-05-01
| | | | | | | | | | | * Fix naming style for methods and classes: Use camelCase for methods and PascalCase for classes as code style demands it. And use sneak_case for methods that are not member of a class. * Replace "* " with " *" for Pointers * Same for references * Put function body opening braces on new line * Other misc minor non functional style improvements
* Move pathfinder classes to cpp fileest312016-05-01
| | | | | | | | | | | | | | | There is no need to put them into the header, they are solely used inside the pathfinder. Another advantage of this change is that only the pathfinder.cpp has to be compiled if PATHFINDER_DEBUG gets defined or undefined, not all files including the .h. This commit moves the pathfinder classes to the cpp file without modifications. Also, the PATHFINDER_DEBUG macro gets moved to the cpp file and the PATHFINDER_CALC_TIME macro gets moved to a plce where it actually does work.
* Fix use of uninitialised variable in class EventCraig Robbins2016-05-01
|
* Use MoveFileEx to rename files on Windows (not rename)gregorycu2016-05-01
|
* Fix POSIX C++11 buildShadowNinja2016-04-30
| | | | I broke this in 46fd114e9a4e05b74576dce682e24357363298e7.
* Fix prepreprocessor error in thread.h (related to C++11 threads)Craig Robbins2016-04-30
|
* Mapgen: Make 3D noise tunnels' width settableparamat2016-04-28
| | | | | | Correct parameter names mg_valleys to mgvalleys Remove biome NoiseParams from MapgenValleysParams Improve format of parameter code
* Fix race on thread creationShadowNinja2016-04-28
| | | | This often broke the threading tests on OSX.
* Mainmenu: Standardize the menu button order and sizesSmallJoker2016-04-28
|
* Handle particle spawners in env and delete expired idsobneq2016-04-28
| | | | Rebased by Zeno (2016-04-2016)
* Inventory: Make ItemStack with different metadata not stackableXunto2016-04-26
|
* tile.cpp: Automatically upscale lower resolution textureSmallJoker2016-04-25
|
* Make GUIEngine use pause_fps_max not fps_maxgregorycu2016-04-24
|
* Escape more strings: formspecs, item descriptions, infotexts...Ekdohibs2016-04-24
| | | | | | Also, change the escape character to the more standard \x1b Thus, it can be used in the future for translation or colored text, for example.
* Fix bug that was leading to oversized tooltips containing multiline text ↵Xunto2016-04-23
| | | | when it have multiple lines
* Make logging use a fixed-length buffer to avoid race conditions.Ekdohibs2016-04-21
| | | | | | | Previously, race conditions occurred inside logging, that caused segfaults because a thread was trying to use an old pointer that was freed when the string was reallocated. Using a fixed-length buffer avoids this, at the cost of cutting too long messages over seveal lines.
* Biomes: Make dust fallback 'ignore' to fix y = 63 lightingparamat2016-04-21
| | | | | | The shadow bug at y = 63 was caused by dark air being placed as dust, when the biome dust was unspecified it was falling back to 'air' In dustTopNodes only dust == 'ignore' will disable dust placement
* Mgv7: Combine mountain terrain generation with base terrain generationparamat2016-04-20
| | | | | | | | | | | | Previous mountain terrain generation was by necessity placing stone in air, this was removing air from any overgenerated structures such as tunnels, dungeons and large caves Moving it into the base terrain generation loop ensures that only 'ignore' is replaced generateRidgeTerrain: only return if node_max.Y < water_level - 16 Previously, if water level was set a few nodes above a mapchunk border the river channel was only partially excavated
* Add option to disable entity selectionboxes. (#3992)TriBlade92016-04-14
| | | | Setting only loaded once, default value is to enable them.
* Fix inventory hud scalingrubenwardy2016-04-12
|
* Mgv7, mgflat, mgfractal: Tunnel generation code optimisationparamat2016-04-12
|
* Mgv5: Optimise tunnels, add biome material in entrancesparamat2016-04-12
| | | | | | Place biome top node on tunnel entrance floor Instead of doing nothing at node_max.Y + 1 use 1-down overgeneration for tunnel generation and noisemaps
* Mgvalleys: Don't let cavegen place biome nodes everywhereparamat2016-04-12
| | | | | | | Fix use of 'air_above' bool so that biome nodes are only placed in tunnel floors Minor code improvements 'Continue' when massive cave air is placed
* Fix hotbar placement on displays with low screen densityPilzAdam2016-04-11
|
* Hud: Cache hud_scaling, fix minor style issueskwolekr2016-04-10
|
* Hud: Fix offset being ignored by inventory barrubenwardy2016-04-10
|
* Update CSRP-GMP to commit deaa11a7c29a73008est312016-04-10
| | | | | | | Backports 10 commits, with 8 commits actually affecting source code: https://github.com/est31/csrp-gmp/compare/695822e45d9ca48b75b4ec1af1b4eea19139f8b1...deaa11a7c29a730087380da231e785909ad21630
* Mapgen: Optimise cave noises and tunnel excavationparamat2016-04-08
| | | | | | Instead of doing nothing at node_max.Y + 1 use 1-down overgeneration for tunnel generation and noisemaps Move some old unused code in mgv7 to end of file
* Re-add and disable blit_with_interpolate_overlaykwolekr2016-04-07
|
* Fix #3955 (player dying on login).Nathanaël Courant2016-04-06
| | | | | | It was caused by player not moving because fall was prevented, but their velocity still increasing, causing fatal fall damage when world was finally loaded. This commit fixes it by setting player velocity to zero when the world around them is not loaded.
* Fix compiler warnings from "Add an option to colorize to respect the ↵Samuel Sieb2016-04-06
| | | | | | | destination alpha" Fix warnings added by commit 01ae43c48009f816f4649fae2f7f6997452aa6cf Fixes #3952
* Add an option to colorize to respect the destination alphaSamuel Sieb2016-04-03
| | | | Also, rework the colorizing code to be more efficient.
* Dungeongen: Update disabled torch placement codekinokoio2016-04-03
|
* Fix nametag hidingest312016-04-02
| | | | | | | | | Commit c3b279750ece0b5144bf8e973d55108347462223 "Move object nametags to camera" has added a regression to still display a shadow if their alpha got set to 0.
* Remove expensive copy of ContentFeaturesgregorycu2016-03-30
|
* ParticleManager::handleParticleEvent: use switchLoic Blot2016-03-30
| | | | Use a proper switch with breaks.
* mg_schematic: fix leak in lua API, and small cleanupest312016-03-30
| | | | | | | | | | | | | | | * Fix leak like behaviour if you load multiple schematics in a loop. * Cleanup check in for, fixing theoretical out of bounds read if Schematic::deserializeFromMts reduced the number of elements in m_nodenames. A != check may need an overflow of the counter before it hits, if origsize is larger than m_nodenames.size(). * Fix function name passed to errorstream: it was wrong. Also use __FUNCTION__ instead of manually using the method name at other places in the function. * Don't shadow the name member in the loop.
* Mapgen: Don't spread light of nodes outside the desired areakwolekr2016-03-30
| | | | | | | This fixes #3935, a regression from 0338c2e. An 'optimization' was performed where an index for the VoxelManip being operated on was mistakenly used for bounds checking within the incorrect VoxelArea, namely, the area wherein light should be spread.
* Mgv7: Decrease cliff steepnessparamat2016-03-30
|
* Mapgen: Spread both night and day light banks in spreadLightkwolekr2016-03-29
|
* Fix small formatting issue in SRP debug outputsfan52016-03-29
| | | | Writing an u8 to verbosestream writes a char, not it's numeric value.
* Fix connected nodes' selection boxes.Auke Kok2016-03-21
| | | | | | | This allows the player to more easily target and punch connected nodeboxes, especially if they have a fixed nodebox that is very small, like technic cabling, or xpanes. Tried it on fences and my xpane conversion, and happy with the result.
* Mgv7/flat/fractal: Stop tunnel-floor biome nodes being placed everywhereparamat2016-03-21
| | | | | | A bool for 'in or under tunnel' was missing 1-node-deep stone ledges were being replaced with biome surface material
* Clean up StrfndShadowNinja2016-03-19
| | | | | | | | | | | Changes: * Fix indentation. * Pass strings by const reference. * Merge Strfnd and WStrfnd into one class instead of copying them. * Remove trailing spaces. * Fix variable names. * Move to util. * Other miscellaneous style fixes.
* Mgv7: Limit pseudorandom caves to surface mapchunk or belowparamat2016-03-19
| | | | To avoid bright caves at mapchunk borders when generating mapchunks upwards
* Allow NodeTimer, ABM and block mgmt interval changes.Auke Kok2016-03-19
| | | | | | | | | | | | | | | | | | | | | | ABM's are hardcoded to run every 1.0s, NodeTimers are hard coded to run at every 1.0s. Block mgmt is running every 2.0sec. However, these timers can be better tuned for both higher and lower values by server owners. Some server owners want to, and have the resources to send more packets per second to clients, and so they may wish to send smaller updates sooner. Right now all ABM's are coalesced into 1.0 second intervals, resulting in large send queues to all clients. By reducing the amount of possible timers, one can get a far better response rate and lower the perception of lag. On the other side of the camp, some servers may want to increase these values, which again isn't easily doable. The global settings abm_interval and nodetimer_interval are set to current values by default. I've tested with 0.2/0.5 type values and noticed a greatly improved response and better scattering of nodetimers, as well as enjoying not faceplanting into doors with pressure plates anymore.
* Remove chat escape sequences from chat messages, for future colored chat.Ekdohibs2016-03-15
|
* Add option to not send pre v25 init packetest312016-03-15
| | | | | | | | | | | | | | | | | The legacy init packet (pre v25) sends information about the client's password that a server could use to log in to other servers if the username and password are the same. All the other benefits of SRP of protocol v25 are missed if the legacy init packet is still sent during connection creation. This patch adds an option to not send the v25 init packet. Not sending the v25 packet means breaking compat with pre v25 servers, but as the option is not enabled by default, no servers are affected unless the user explicitly flips the switch. More than 90% of the servers on the serverlist support post v25 protocols. The patch also fixes a bug with greying out of non compliant servers being done wrongly, the min and max params were mixed.
* Fix two reconnect bugsest312016-03-15
| | | | | | | | | | | | | | | | | | | | | | Fix two bugs related to the reconnect feature introduced by commit 3b50b2766aeb09c9fc0ad0ea07426bb2187df3d7 "Optional reconnect functionality" 1. Set the password to the stored one Before, we have done the reconnect attempt with a cleared password, so using the feature would only work if you had an empty password. Thanks to @orwell96 for reporting the bug. 2. Reset the reconnect_requested flag after its use the_game only writes to the reconect_requested flag if it sets it to true. It never sets it to false. If the flag is not reset after its use, all "reset"s to the main menu will look like the server had requested a reconnect.