3906 Commits

Author SHA1 Message Date
Craig Robbins
56bb048150 Fix regression with USE_REDIS (refactor_main) 2014-11-23 01:12:25 +10:00
Craig Robbins
3471011165 refactor main.cpp 2014-11-23 00:27:02 +10:00
Craig Robbins
26b19607d9 Fix smooth lighting (ambient occlusion)
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-22 21:58:00 +10:00
Pavel Puchkin
2cb61120aa Fix compiling if no endian.h found
f7d6509 introduces error when no endian.h found in the system.

Since "CHECK_INCLUDE_FILE" returns empty string instead of "0", when
"cmake_config.h" is generated it has "#define CMAKE_HAVE_ENDIAN_H " line.
Later we have "#define HAVE_ENDIAN_H CMAKE_HAVE_ENDIAN_H" in the
"config.h", an thus "HAVE_ENDIAN_H" is also empty sting. Because of
this, "#if HAVE_ENDIAN_H" is incorrect preprocessor directive.

Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-22 21:56:38 +10:00
ShadowNinja
27a7170c55 Update credits menu 2014-11-21 11:35:29 -05:00
Rafael Reilova
55e0686e6d serialize.h: use machine native byte swapping if available, fall-back to previous generic method if not (supported for GCC using endian.h, detection done in cmake) write/readARGB8() - just write 32-bit color in one op, instead of 4 1-byte ops cleanup: removed unneeded buffer init for some serialize-out functions use a #define for the fixed point factor in read/writeF1000()
nodemetadata.cpp, nodetimer.cpp
	optimzation: simpler deserialize node position method

staticobject.cpp:
	cleanup: use util/serialize.h inlines instead of its own de/serialization

serialize.cpp:
	minor optimization/cleanup: avoid generation of unneeded string temporary

CMakeLists.txt, cmake_config.h.in: detection of endian.h

config.h: added HAVE_ENDIAN_H

Commits due to feedback squashed

Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-21 22:33:48 +10:00
Craig Robbins
47d1207aa8 Optimise functions from CNodeDefManager and VoxelManipulator
CNodeDefManager::get()
VoxelManipulator::addArea()
2014-11-21 14:56:45 +10:00
Craig Robbins
680a729b90 Optimise getTileInfo()
getTileInfo() ~1.5x faster
getSmoothLight ~2.0x faster
2014-11-21 14:56:45 +10:00
paramat
56e9c09049 Mgv5 1 up 1 down overgeneration for biome surface continuity 2014-11-20 23:13:09 -05:00
paramat
d2891780ad Mgv5 get ground level at point function. Fast spawn player version 2014-11-20 21:07:20 -05:00
ShadowNinja
05ef9bdc68 Simplify loading of Android version of menu 2014-11-20 15:37:20 -05:00
ShadowNinja
e8e55d629b Fix leaking global in texture pack menu 2014-11-20 15:37:20 -05:00
Kodexky
979a12e8c0 Fix raillike bug (currently manifests itself on Android), and minor improvement to readability.
NB: Minor edits to patch made by Zeno- (int to short and minor formatting)
2014-11-20 15:41:59 +10:00
ShadowNinja
416c5c8339 Clean up rollback 2014-11-19 16:21:59 -05:00
ShadowNinja
7474ee6393 Fix wallmounted mesh rotations 2014-11-19 16:17:54 -05:00
ShadowNinja
4b3c14a9d2 Add strict module
Also fix leaking globals found by it.
2014-11-19 12:40:54 -05:00
ShadowNinja
6ffe52db17 Tweak core.serialize
This adds proper support for nested tables and improves performance a bit.
2014-11-19 12:40:54 -05:00
sfan5
120a177e08 Add (optional) client-side saving of server map to disk 2014-11-19 15:11:23 +01:00
ShadowNinja
eb35b078e9 Fix Belarusian translation header
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-19 22:31:57 +10:00
ShadowNinja
86e111183a Add gettext to Travis build
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-19 22:31:57 +10:00
Kahrl
704fb76af5 Remove unused rangelim function (the macro still exists) 2014-11-19 10:19:52 +01:00
SmallJoker
cffe30ca7d Fix indonesian language errors
Errors found by @Sokomine.
2014-11-18 15:17:46 -05:00
srifqi
df4bf8e7f7 Update Indonesian Language
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-18 20:39:48 +10:00
Craig Robbins
9815c28e83 Fix double free bug when server is shut down
Thanks @oleastre
2014-11-15 22:33:52 +10:00
kwolekr
3951a0dae3 Fix NoisePerlin3DEased return value 2014-11-14 21:19:46 -05:00
kwolekr
2d1dd941b7 Fix warnings and other misc. minor changes 2014-11-14 03:07:12 -05:00
Craig Robbins
aacc3cba46 Remove most exceptions from getNode() (and variants) 2014-11-14 18:05:34 +10:00
Wouters Dorian
f20441e849 Improved VoxelArea variable locality, thus performance
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-14 00:10:09 +10:00
SmallJoker
d3141906d2 Add option 'eased' to NoiseParams
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-13 23:06:38 +10:00
kwolekr
e3d17f97bf Fix compilation under some Linux distributions 2014-11-13 00:16:37 -05:00
kwolekr
22e7b35567 Mapgen v7: Fix uninitialized spflags
Mapgen v5: Fix minor style issue
2014-11-12 23:58:50 -05:00
kwolekr
95a8b03898 Add eased 3d point-value noise functions 2014-11-12 23:49:45 -05:00
kwolekr
bb5f0e46bd Add Generator Element Management framework
Add BiomeManager, OreManager, DecorationManager, and SchematicManager
2014-11-12 23:02:41 -05:00
RealBadAngel
d8dca384dd Wielded fixes. Add shaders support. 2014-11-13 03:51:04 +01:00
Craig Robbins
2008caa5c7 Fix profiler values not being updated (F6) and not being logged 2014-11-11 20:58:57 +10:00
Kahrl
ac7626b620 Serverlist: announce mg_name from map_meta.txt instead of minetest.conf 2014-11-10 22:27:10 +01:00
Zeno-
240b7f958a Merge pull request #1825 from Zeno-/control_key_cache
Create faster key cache for main game loop (client)
2014-11-10 19:12:25 +10:00
Craig Robbins
8a5bc74abd Create faster key cache for main game loop (client) 2014-11-10 12:26:19 +10:00
paramat
85d775adfc Tune cave noise scales to 6. Fix blobs spflag, now enabled. Update conf.example 2014-11-09 20:21:39 -05:00
Wuzzy
8dc7c234c3 Add tooltips to main menu subgames button bar 2014-11-09 09:38:43 +01:00
Kahrl
c33891174d Implement WieldMeshSceneNode which improves wield mesh rendering
- Don't create and cache an extruded mesh for every (non-node) item.
  Instead use a single one per image resolution.

- For cubic nodes reuse a single wield mesh too

- Improve lighting of the wielded item

- Increase far value of wield mesh scene camera, fixes #1770

- Also includes some minor refactorings of Camera and GenericCAO.
2014-11-08 23:11:57 +01:00
Craig Robbins
c2a7863bc3 Stop inserting empty lines at end of minetest.conf file each time it is rewritten
See: https://github.com/minetest/minetest/issues/1790
2014-11-08 21:57:52 +01:00
Craig Robbins
8b19c3a5b6 Fix regressions and minor improvements in refactor_the_game
a) Fix double tap for jump and show_debug
b) Revert changes to limitFps()... there is no verification that the new method was an issue, but going back to old method just in case
b.2) limitFps() no longer calls device->run() and also no longer has to be called immediately after a call to device->run()
2014-11-08 21:40:11 +01:00
paramat
28ed3ea7c4 Add mgv5. New noise code, uses biome API. Eased 3d noise for terrain, caves, blobs 2014-11-08 21:37:26 +01:00
RealBadAngel
fecad5fb24 Speed up removing a node (less block mesh updates). 2014-11-08 21:04:30 +01:00
ShadowNinja
e97ea49385 Fix dump() indentation with non-tab indents 2014-11-08 12:49:50 -05:00
Ryan Newell
c4ddc515f9 Add last_login field to auth.txt
Also shortens some related code and adds more parameters to string.split.
2014-11-08 12:49:50 -05:00
SmallJoker
98e648368f Replace setting unlimited_player_transfer_distance with player_transfer_distance 2014-11-08 14:56:09 +01:00
Craig Robbins
c587a15cb0 Address issues related to refactoring the_game
Fix time of day persistence
Fix wield item being updated every frame causing small performance hit
Rename some classes and variables
2014-11-03 13:57:56 +01:00
Kahrl
6b3bb1f324 Fix regression: mouse wheel couldn't scroll from last hotbar item to first 2014-11-02 21:59:56 +01:00