kwolekr
a89f37bb65
Add support for lacunarity in legacy NoiseParams string format
2014-12-10 01:31:43 -05:00
Kahrl
daefd0ab36
Add paste command (Ctrl-V) in GUIChatConsole
2014-12-10 07:12:08 +01:00
kwolekr
cfba55ba0a
Remove get_noiseparams function. read_noiseparams should be used from now on
2014-12-10 00:56:44 -05:00
kwolekr
fb2bc956b1
Noise: Create a deep copy of NoiseParams
2014-12-10 00:37:09 -05:00
kwolekr
88c28414f4
Settings: Sanitize setting name everywhere, not just LuaSettings
2014-12-09 23:52:13 -05:00
kwolekr
d50878d608
Rename and repurpose minetest.set_noiseparam_defaults to set_noiseparams
2014-12-09 23:44:04 -05:00
kwolekr
f2c18511a4
Settings: Make setting entry group and values mutually exclusive
...
This greatly reduces the complexity of Settings code.
Additionally, several memory leaks were fixed.
2014-12-09 23:29:34 -05:00
SmallJoker
2f8fbdb9f5
Rewrite fs:GetDirListing(file) by kahrl
2014-12-10 02:59:10 +10:00
SmallJoker
5229a229a6
Ignore .name directories and files
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-12-10 02:49:02 +10:00
Craig Robbins
c5f6f9f77a
Increase performance of getLight() by at least 2x
...
Leads to the following increases:
getSmoothLight() approx. 40% increase
getTileInfo() approx. 25% increase
MapBlockMesh::MapBlockMesh() 25-30%
2014-12-10 00:52:02 +10:00
Pavel Puchkin
a1ea017b51
Fix builds failing on BSD-like (such as OSX) due to an irrlicht bug (temporary fix)
...
Details:
- https://sourceforge.net/p/irrlicht/bugs/433/
- https://github.com/minetest/minetest/issues/1687#issuecomment-61368769
- https://forum.minetest.net/viewtopic.php?f=42&t=9190&start=125#p159364
In case when "settings.h" is included from "emerge.cpp" or
"environment.cpp", u64 type has "unsigned long" length because
previously <stdint> was included. When "settings.h" is included from
"settings.cpp", u64 has "unsigned long long" length because no <stdint>
was included previously. This leads to different signatures of "setU64" method
and linker cannot find appropriate symbol.
The best fix of this bug should be done in the Irrlicht, but as hotfix I
think this is OK and better than types changing.
Previously this bug didn't appear because there was no "settings.cpp" file and
implementation of all methods was done in the header file.
2014-12-09 20:40:52 +10:00
kwolekr
941d000fc6
Noise: Update Noise::resizeNoiseBuf to account for lacunarity not equal to 2
2014-12-09 00:50:58 -05:00
kwolekr
29b413b376
Biomes: Make biome heat and humidity noise parameters user-configurable
2014-12-09 00:38:04 -05:00
Craig Robbins
7490368984
Fix compiler warning (signed vs. unsigned)
2014-12-08 23:00:49 +10:00
kwolekr
2a7c6d27b3
Optimize noise implementations
2014-12-08 03:26:29 -05:00
Kahrl
0183c05ee0
Fix struct vs. class in forward declarations
2014-12-08 09:06:31 +01:00
RealBadAngel
4f23778e53
Fix lighting artifacts (Issue #1887 ).
2014-12-08 08:53:31 +01:00
Kahrl
d0be823807
Always escape user provided data in mainmenu fields
2014-12-08 07:48:51 +01:00
kwolekr
2fd3d52020
Add flags and lacunarity as new noise parameters
...
Add 'absolute value' option to noise map functions
Extend persistence modulation to 3D noise
Extend 'eased' option to noise2d_perlin* functions
Some noise.cpp formatting fixups
2014-12-07 21:59:32 -05:00
RealBadAngel
638f3a8454
Disable loading .mtl files. Theyre not used anyway.
2014-12-08 02:24:46 +01:00
MirceaKitsune
c5f6656f99
Make directional fog colors respect tonemap
2014-12-08 01:44:28 +01:00
Craig Robbins
5c55738276
Fix f6 debug/profiler display
...
After fonts were re-engineered the height of the f6 debug/profiler display would only display about 2-3 lines of text.
2014-12-08 00:01:22 +10:00
Calinou
bc2b8e9eef
Increase third person view distance
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-12-07 21:54:44 +10:00
Muhammad Rifqi Priyo Susanto
5ffddc94c0
Add space between client names in status text (client)
...
Before:
Server: version=0.4.10, uptime=190.5, max_lag=0.001, clients={user1,user2,user3,user4,user5,foobar,userplayedminetestthismorning}
After:
Server: version=0.4.10, uptime=190.5, max_lag=0.001, clients={user1, user2, user3, user4, user5, foobar, userplayedminetestthismorning}
2014-12-07 21:32:08 +10:00
RealBadAngel
535c473103
Restore finalColorBlend implementation in shaders.
2014-12-07 11:05:00 +01:00
Craig Robbins
500f691426
Fix regression (increase/decrease viewing range with +/- keys)
2014-12-07 18:32:30 +10:00
kwolekr
2f134ce24f
Mapgen V5: Fix use of uninitialized value in ctor
2014-12-07 01:19:42 -05:00
kwolekr
390c0cd691
Schematics: Fix minetest.place_schematic() when defined by a Lua table
2014-12-06 18:39:05 -05:00
kwolekr
60feb4ad25
Add minetest.clear_registered_biomes() api
2014-12-06 18:08:23 -05:00
Kahrl
f3abaec83b
Ignore some mouse events sent from scrollbar to GUITable
...
Fixes #1567 , #1806 .
2014-12-06 22:45:23 +01:00
SmallJoker
d75f0b0360
Close settings files and save them correctly
2014-12-06 14:08:01 -05:00
sfan5
4fcf9fb66a
Add workaround for failing clang build
2014-12-06 19:56:31 +01:00
sfan5
04a1a446cf
Build for win32 & win64 on Travis too
2014-12-06 19:56:31 +01:00
kwolekr
5062b99cb0
Rewrite generate notification mechanism
...
Add support for notify-on-decoration
Clean up mapgen constructors
Clean up mapgen.cpp code style somewhat
Remove trailing whitespace from some files
2014-12-06 13:53:35 -05:00
Craig Robbins
2b119e1e19
Performance of main client loop up to 2x faster In places, up to 3 times faster
...
NOTE 1: This does not mean a 2x increase in framerate. Increase in fps may be up to 1-2fps
NOTE 2: This local 'caching' of settings is not optimal and an alternative solution will be worked on after 0.4.11 is released
2014-12-07 00:51:01 +10:00
SmallJoker
2fd14e1bd5
Add Lua helper functions vector.apply(v) math.sign(x, tolerance)
2014-12-06 10:07:25 +01:00
Craig Robbins
0e78aa296e
Add name of node 'pointed at' to debug
...
This is "Add name of node pointed at to debug #1677 " by @rubenwardy updated to work with game.cpp after it was refactored.
2014-12-05 16:14:50 +10:00
SmallJoker
5da6896d51
Fix MSVC build
...
Note: The unit test was technically incorrect for all platforms but passes due to implicit casting
2014-12-05 16:09:53 +10:00
RealBadAngel
a648120d54
Recalculate normals for mesh #0 . Fix for issue #1902 .
2014-12-05 01:05:18 +01:00
Craig Robbins
f7f7fec497
(INTERIM) Make sizes of the font in formspecs consistent and not so large
...
Until a permanent fix can be developed
2014-12-05 02:35:21 +10:00
Craig Robbins
c16b1e2639
Optimise VoxelManipulator::copyFrom
...
~3-4x faster
This indirectly optimises MapBlock:copyTo() which in turn improves performance of MeshMakeData::fill()
2014-12-04 23:37:04 +10:00
Craig Robbins
f6912f4241
Right mouse button behaviour for craft/inventory If right mousebutton clicked once then don't drop single items into slots. If right mouse button has been clicked and held a second time, drop items as the mouse is moved. In the second case (automatically drop/place items as mouse is moved) only auto-drop into blank slots, or slots that contain the same item.
2014-12-04 23:30:53 +10:00
Calinou
d7b3046cf6
Make dropped items larger and rotate faster
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-12-04 21:10:12 +10:00
kwolekr
f0cd59034c
Settings: Various setting group fixes and enhancements
...
- Remove blank setting values when setting has a group
- Pair setting values with groups in file when possible
- Preserve user-set whitespace in setting objects
- Delete setting value when setting NoiseParams group
- Delete overwritten groups outside of lock
2014-12-04 03:20:07 -05:00
paramat
0a5373d400
Add definable node_stone to biome API, mgv5, mgv7. Reduce and correct depth of mgv7 biomes. l_mapgen.cpp: add '#include mapgen_v5.h' because '#include mapgen_v7' is there. Improve underwater grass hack
2014-12-03 19:45:29 -05:00
kwolekr
fcb1ea903f
Settings: Fix getNoiseParamsFromValue()
2014-12-02 21:09:16 -05:00
kwolekr
68c799bf99
Use setting groups for NoiseParams
...
Add format example to minetest.conf.example
Add Settings::setU16()
Throw exception on attempted access of NULL settings groups
2014-12-02 04:03:37 -05:00
Kahrl
78103e622c
Fix style of comment in minetest.conf.example
2014-12-01 21:47:22 +01:00
Kahrl
e402aa8984
Add fontengine.cpp to Android.mk
2014-12-01 21:22:23 +01:00
sapier
93aab0362c
Fix settings callback "call" lost on rebase
2014-12-01 19:47:57 +01:00