Craig Robbins
a23abf117a
Fix typo in mapblock.h
2014-12-12 20:46:37 +10:00
kwolekr
d8ab7d2124
LuaPerlinNoiseMap: Prevent invalid memory access when attempting to generate 3d noise with a buffer created for 2d
2014-12-12 02:46:52 -05:00
kwolekr
4bba841143
Mapgens: Rename m_emerge to prevent name collisions
2014-12-12 02:38:39 -05:00
kwolekr
a3e54044a9
Add support for NoiseParams in minetest.get_perlin() and add docs on NoiseParams to lua_api.txt
2014-12-12 02:02:44 -05:00
Craig Robbins
2784064a9d
Revert "Adjust the values of dirs1 and dirs2 so that rotate_and_place orients textures correctly"
...
This reverts commit 9878e8de4fdf232ebb77b396766c339786c01218.
See: https://github.com/minetest/minetest/issues/1939 and IRC log for discussion
2014-12-12 16:21:29 +10:00
kwolekr
4433cb3626
Settings: Fail on invalid sequence and throw exception for LuaSettings
2014-12-12 00:44:17 -05:00
kwolekr
2d6a78682e
Settings: Sanitize value for multiline terminator tokens
2014-12-11 23:26:13 -05:00
paramat
89c03f2ce9
Fix undeclared globals in functions and shorten lines in misc_helpers.lua.
2014-12-11 21:37:46 -05:00
kwolekr
9ac2db17df
Clean up Noise macros
2014-12-11 02:53:10 -05:00
kwolekr
1eaec9ee22
NodeResolver: Fix cancelNode and cancelNodeList
2014-12-11 00:41:54 -05:00
kwolekr
6f398af64f
Noise: Automatically transform noise maps if needed
2014-12-10 23:35:37 -05:00
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