kwolekr
d27d023219
Move get_schematic and read_schematic to l_mapgen.cpp
2014-12-10 01:49:57 -05:00
paramat
a4effa4b55
Biome API: Reduce heat and humidity persistences to 0.5
2014-12-10 01:39:08 -05:00
kwolekr
aae5e41aa5
Add support for lacunarity in legacy NoiseParams string format
2014-12-10 01:31:43 -05:00
Kahrl
8f8642798b
Add paste command (Ctrl-V) in GUIChatConsole
2014-12-10 07:12:08 +01:00
kwolekr
0f4d8ddf95
Remove get_noiseparams function. read_noiseparams should be used from now on
2014-12-10 00:56:44 -05:00
kwolekr
180c455ab1
Noise: Create a deep copy of NoiseParams
2014-12-10 00:37:09 -05:00
kwolekr
4119cf9f6d
Settings: Sanitize setting name everywhere, not just LuaSettings
2014-12-09 23:52:13 -05:00
kwolekr
fefcad5137
Rename and repurpose minetest.set_noiseparam_defaults to set_noiseparams
2014-12-09 23:44:04 -05:00
kwolekr
bb90f4a321
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
358737b184
Rewrite fs:GetDirListing(file) by kahrl
2014-12-10 02:59:10 +10:00
SmallJoker
84eb8d7d38
Ignore .name directories and files
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-12-10 02:49:02 +10:00
Craig Robbins
1995bfbbcc
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
8acad24cba
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
1264fffc46
Noise: Update Noise::resizeNoiseBuf to account for lacunarity not equal to 2
2014-12-09 00:50:58 -05:00
kwolekr
66c691836a
Biomes: Make biome heat and humidity noise parameters user-configurable
2014-12-09 00:38:04 -05:00
Craig Robbins
6122c750b4
Fix compiler warning (signed vs. unsigned)
2014-12-08 23:00:49 +10:00
kwolekr
d89a2b4da7
Optimize noise implementations
2014-12-08 03:26:29 -05:00
Kahrl
e5618d58d0
Fix struct vs. class in forward declarations
2014-12-08 09:06:31 +01:00
RealBadAngel
b16a3788d5
Fix lighting artifacts (Issue #1887 ).
2014-12-08 08:53:31 +01:00
Kahrl
dd8bd891d0
Always escape user provided data in mainmenu fields
2014-12-08 07:48:51 +01:00
kwolekr
22b22968a1
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
fd0be4b6ef
Disable loading .mtl files. Theyre not used anyway.
2014-12-08 02:24:46 +01:00
MirceaKitsune
35a39d66dc
Make directional fog colors respect tonemap
2014-12-08 01:44:28 +01:00
Craig Robbins
a4e86b5b65
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
265d3504d9
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
df505181a6
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
0e340a5753
Restore finalColorBlend implementation in shaders.
2014-12-07 11:05:00 +01:00
Craig Robbins
b3fb47891f
Fix regression (increase/decrease viewing range with +/- keys)
2014-12-07 18:32:30 +10:00
kwolekr
9d516b1753
Mapgen V5: Fix use of uninitialized value in ctor
2014-12-07 01:19:42 -05:00
kwolekr
4ac2fcc936
Schematics: Fix minetest.place_schematic() when defined by a Lua table
2014-12-06 18:39:05 -05:00
kwolekr
1dc032e32c
Add minetest.clear_registered_biomes() api
2014-12-06 18:08:23 -05:00
Kahrl
93fb2c62fa
Ignore some mouse events sent from scrollbar to GUITable
...
Fixes #1567 , #1806 .
2014-12-06 22:45:23 +01:00
SmallJoker
7a2b537983
Close settings files and save them correctly
2014-12-06 14:08:01 -05:00
sfan5
3af099218c
Add workaround for failing clang build
2014-12-06 19:56:31 +01:00
sfan5
a5f1bb300a
Build for win32 & win64 on Travis too
2014-12-06 19:56:31 +01:00
kwolekr
4f8d54e249
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
0be778ad52
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
cd74934c42
Add Lua helper functions vector.apply(v) math.sign(x, tolerance)
2014-12-06 10:07:25 +01:00
Craig Robbins
ff100e400e
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
30a051a904
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
dbab810924
Recalculate normals for mesh #0 . Fix for issue #1902 .
2014-12-05 01:05:18 +01:00
Craig Robbins
b6235a1aa3
(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
b986657bd0
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
a72877a132
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
2e6eeedeb4
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
b932f38797
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
896f946cec
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
0115c946d8
Settings: Fix getNoiseParamsFromValue()
2014-12-02 21:09:16 -05:00
kwolekr
3eee8323c9
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
31e5a6cb00
Fix style of comment in minetest.conf.example
2014-12-01 21:47:22 +01:00