aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-10-25Add option to disable backface culling for modelsBlockMen
- Disabled by default (except players) - Fixes #2984
2015-10-25Escape " in generated settings_translation_file.cppPilzAdam
2015-10-25Fix out of bounds vector write in Logger::addOutput(ILogOutput *out)est31
Previously, the invocation of Logger::addOutput(ILogOutput *out) led to an out of bounds write of the m_outputs vector, resulting in the m_silenced_levels array being modified. Fortunately, the only caller of that method was android system logging, and only since a few commits ago.
2015-10-24Mgfractal: Independent iterations and scale parametersparamat
Complete set of parameters for each of mandelbrot and julia sets The julia set structure often needs different iterations and scale
2015-10-24Small logging refactor and additional optionsest31
-> Get rid of Logger::logToSystem and use normal downstream output system for android instead -> Give the downstream output system more information: enrich the log function of ILogOutput with information and add ICombinedLogOutput for easier use. -> Make Logger::getLevelLabel() static and public so that it can be used by downstream log output. -> Add g_ and m_ prefixes where required
2015-10-24Improve Lua settings menuPilzAdam
* Add key settings to setting table and ignore them later This way they are added to the auto-generated minetest.conf.example * Add flags type * Add input validation for int, float and flags * Break in-game graphic settings into multiple sections * Parse settingtpes.txt in mods and games * Improve description for a lot of settings * Fix typos and wording in settingtypes.txt * Convert language setting to an enum
2015-10-24Fix compilation under MSVC and remove unnecessary conditional function prototypekwolekr
Thanks to SmallJoker for pointing this out.
2015-10-24Fix on_rightclick() being called directly after placing nodeBlockMen
fixes https://github.com/minetest/minetest_game/issues/537
2015-10-24Improve rollback database indexingcheapie
Index more columns in the action table of the rollback DB to improve the performance of /rollback_check
2015-10-24Flush rollback log more oftenest31
Flushes the buffer of rollback actions that wait to get saved in two more situations: 1. Flushes in the destructor of the rollback. This makes the server not forget the last < 500 rollback entries when it shuts down. 2. Flushes the rollback when /rollback_check is invoked. This is neccessary as otherwise it leads to confusion if users want to test the rollback functionality by placing a node and then executing the check on it, or if the actions were very recent out of other reasons.
2015-10-24Fix some threading things and add additional thread unittestskwolekr
- Fix thread name reset on start() - Fully reset thread state on kill() - Add unittests to check for correct object states under various circumstances
2015-10-23Decoration API: Add flag for placement on liquid surfaceparamat
Add findLiquidSurface() function to mapgen.cpp Update lua_api.txt
2015-10-19init_log_streams: check if log_filename is empty.Jun Zhang
Fixes #3262.
2015-10-18ABMs: Make catch-up behaviour optionalparamat
Default is true for backwards compatibility Update lua_api.txt
2015-10-18Settings tab: double click opens/closes treesKahrl
2015-10-18Settings tab: don't autoscroll when toggling "Show technical names"Kahrl
2015-10-18Remove wstrgettextest31
Everywhere where wstrgettext was used, its output was converted back to utf8. As wstrgettext internally converts the return value from utf8 to wstring, it has been a waste. Remove the function, and use strgettext instead.
2015-10-17Fix GUITable selection issues with treesKahrl
- setOpenedTrees(): this internal function was calling setSelected() to update m_selected. Since setSelected() calls autoScroll(), this caused the scrollbar to scroll back to the selected row in some cases when that shouldn't be done. For example, clicking the "+" to open a tree caused autoscroll. Fix this by making setOpenedTrees() modify m_selected directly. - setDynamicData(): set scrollbar position after calling setSelected(), not before. This avoids setSelected()'s autoscroll messing up the scrollbar position again. - setSelected(): If an invisible row is selected, open all parents of the selected row in order to make the selected row visible. This fixes the issue where all the trees are closed again whenever you return from the setting edit dialog to the settings tab.
2015-10-17New settings tab contain all possible settingsPilzAdam
Settings are automatically parsed from builtin/settingtypes.txt The edit dialog automatically adjust based on the type of setting
2015-10-17Fix == to =Rui
2015-10-17Fix missing include on AIXkwolekr
2015-10-16Refactor Thread class to improve readability and portabilitykwolekr
- Fix some incompatibilities with obscure platforms (AIX and WinCE) - Clean up Thread class interface - Add m_ prefix to private member variables - Simplify platform-dependent logic, reducing preprocessor conditional clauses and improving readibility - Add Thread class documentation
2015-10-16Refactor thread utility interfacekwolekr
- Add "thr_" prefix to thread utility functions - Compare threadid_ts in a portable manner, where possible
2015-10-17Fix crash regression when invsize formspec gets usedest31
The invsize formspec element is outdated. Even though, it is still supported, only a deprecation warning is shown, introduced by commit [1]. The lua context passed to the log_deprecated method added by commit [1] is NULL for the invsize deprecation warning, as its run on the client and not the server. Commit [1] has removed checks for NULL inside the log_deprecated method, resulting in a crash when a formspec with an invsize element is parsed. This commit puts the check back. Fixes #3260. Referenced commits: [1]: b5acec0a3c5701c53854ff7afdf4008863e6e8df "Add proper lua api deprecated handling" [2]: 7b8d372947aae232ddf598155e972bb4dda157a "Use warningstream for deprecated field messages and refactor log_deprecated"
2015-10-15Fix enforcing of nametag hidingest31
Commit d2ca662569427d36642660314668e416bf68f3c8 "Enforce hiding nametag" didn't fix the issue for "client" instances, where the nametag update was received before the object was added to the scene. This resulted in the grey shadow on the nametag that commit tried to fix. Thanks to @neoascetic for pointing out that there still is a shadow.
2015-10-15Add BufReader and vector-based serialization methodskwolekr
2015-10-15Clean up gettext initializationShadowNinja
2015-10-15Use warningstream for deprecated field messages and refactor log_deprecatedShadowNinja
2015-10-15Remove explicit syslog printing for uncaught exceptions on AndroidShadowNinja
All log operations are now added to the syslog implicitly. Also, pass along mutable string to argument vector for main().
2015-10-14Rename macros with two leading underscoresShadowNinja
These names are reserved for the compiler/library implementations.
2015-10-14Always use errorstream for DEBUG_EXCEPTION_HANDLERShadowNinja
2015-10-14Lower log level for benign socket errorsShadowNinja
2015-10-14Use warningstream for log messages with WARNINGShadowNinja
Remove DTIME macro and its uses, too
2015-10-14Refactor loggingShadowNinja
- Add warning log level - Change debug_log_level setting to enumeration string - Map Irrlicht log events to MT log events - Encapsulate log_* functions and global variables into a class, Logger - Unify dstream with standard logging mechanism - Unify core.debug() with standard core.log() script API
2015-10-12Fix how address is logged when a wrong password is suppliedKahrl
- SRP: print the address only once, not twice - Legacy: previously the address was not printed at all - Make both messages structurally the same, to facilitate log analyzers
2015-10-11Mgfractal: Independant offset and slice params for mandelbrot and juliaparamat
Player now spawns on julia set due to julia offset Add commented-out '#include profiler.h' for timetaker use Use v3fs to reduce number of parameters Tune tunnel width to match mgv7
2015-10-10Fractal mapgen: Fix mysterious bugparamat
2015-10-10Clear list rings when loading a new formspecest31
Fixes a bug where the old list ring remained when a new formspec was displayed over the old one. This created the list-ring of the new formspec to be partly ignored. Thanks to @VanessaE to report the bug, and @DonBatman to produce the code that exposed it.
2015-10-09Mapgen: Use mapgen-specific names for constants in headersparamat
Update copyright years in all mapgens Add myself to copyright notices in mgv5 and mgv7
2015-10-07Fractal mapgen: Add seabed and large pseudorandom cavesparamat
2015-10-06Mapgen: Add 4D fractal mapgenparamat
2015-10-05Mgv5: getGroundLevelAtPoint searches a larger rangeparamat
2015-10-04Add new ContentParamType2 "CPT2_DEGROTATE"est31
This might break some mods, but it is important for all uses of the param2 to be documented. This doesn't need a serialisation version or network protocol version change, as old clients will still work on new servers, and it is bearable to have new clients getting non rotated plants on old servers.
2015-10-04Allow setting chunksize in core.set_mapgen_paramskwolekr
2015-10-04Hide mapgens from main menu not intended for end userskwolekr
2015-10-04Add emerge completion callback mechanismkwolekr
Major refactor of emerge.cpp and Map::init/finishBlockMake
2015-10-04Remove redundant code in player interact handlerkwolekr
2015-10-04Define and use limit constants for Irrlicht fixed-width typeskwolekr
2015-10-03Fix MinGW 32-bit buildShadowNinja
2015-10-02Add get_biome_id(biome_name) callbackDuane Robertson
It returns the index used in mg->biomemap for a given biome name. The biomemap is useless without this unless you re-register all existing biomes, which could cause problems for anyone else trying to use biomemap. With this, you can quickly create a lookup table of ids and names.