ShadowNinja
e4cdd141b9
Fix Android build of narrow_to_wide
2015-02-11 02:28:22 -05:00
Craig Robbins
92c52c10c0
Revert "Remove workaround in itemdef.cpp to enable/disable/enable "enable_shaders" setting"
...
This reverts commit d25ff8fd2592f457b91e8a61240694af3902d23f.
2015-02-11 17:01:19 +10:00
Craig Robbins
da65100b53
Remove workaround in itemdef.cpp to enable/disable/enable "enable_shaders" setting
...
* Increase performance (client)
* Avoid changing a global value to solve a local problem
2015-02-11 16:02:16 +10:00
Markus Koschany
975f547292
Fix FTBFS on GNU/Hurd platform
...
Minetest fails to build on GNU/Hurd due to a name clash with OSX/Apple,
both are defining the __MACH__ keyword. This commit fixes the issue.
2015-02-11 15:59:58 +10:00
Craig Robbins
f271835134
Increase MapBlock::actuallyUpdateDayNightDiff() performance by 2-8x. ok @celeron55
...
Before patch, function consumes up to ~8% of the main server loop. After, ~0% (below level of 2 places of significance)
2015-02-10 16:23:37 +01:00
Loic Blot
5700d0cf61
Replace getPlayer(playername) by getPlayer(peer_id) in some possible cases. ok @Zeno-
2015-02-10 16:03:16 +01:00
Loic Blot
9f9f68393b
Craftdef.cpp: Improve loop and mathematics for CraftDefinitionShaped::check
2015-02-10 14:16:28 +01:00
ngosang
68a1a15972
Fix Exit to OS button focus in Pause Menu
2015-02-10 21:23:16 +10:00
Loic Blot
d80a529d34
Network Layer 7 rework (Packet handling)
...
* Move networkcode to a dedicated directory
* Rename clientserver.h to network/networkprotocol.h (Better name) and sanitize some includes
* Create object NetworkPacket
* It stores command (opcode) and data separated
* It also stores peer_id
* Data reading can be done by using a streaming interface
* Change packet routing analysis
* Remove old conditional analysis
* Now uses function pointed analysis and add connection state ({Client,Server}::handlers)
* Connection state permit to categorize condition to handle before analyze packets
* Create a handler for depreciated messages, instead of duplicating code
2015-02-10 20:04:08 +10:00
kwolekr
50d5b59eeb
Hud: Modify Y-positioning of health/breath starbars to prevent overlapping with Hotbar
2015-02-08 12:47:45 -05:00
gregorycu
b39d60816f
Fix rebase bug, make render loop use cache setting
2015-02-07 22:23:36 +10:00
Craig Robbins
1f399b8138
Fix warnings in CGUITTFont.cpp
2015-02-06 23:02:15 +10:00
ShadowNinja
71e951a9ec
Fix gettext
2015-02-05 11:49:14 -05:00
ShadowNinja
0a2e53077b
Reduce gettext wide/narrow and string/char* conversions
2015-02-05 03:24:22 -05:00
ShadowNinja
4b3986068e
Fix translation memory leak
2015-02-05 03:24:13 -05:00
ShadowNinja
f7c045f6c8
Fix translation finding of overlay messages
2015-02-05 03:24:00 -05:00
paramat
37bab9fe45
Mgv7 mountains: Remove divide by zero code that creates vast walls
...
Conf.example: Add mgv7 cave1, cave2 noiseparams
Mgv7: Make skipping of mountain code relative to y=0 not water level
Mountain noise offset now -0.6 to compensate
Tune chance of large caves
2015-02-05 03:21:04 -05:00
Craig Robbins
ab8b4d329f
Fix performance regression
2015-02-05 17:34:10 +10:00
SmallJoker
9e38d47e63
Give full breath after death
2015-02-05 17:33:08 +10:00
gregorycu
447f57a41b
Fix dying of lava causes repeated death This is a bugfix for issue #81
2015-02-05 17:32:35 +10:00
ngosang
9fa402629d
Suppress 4 gcc 4.9.2 warnings in CGUITTFont.cpp
2015-02-05 02:41:55 +10:00
sapier
a48ef2c487
Fix getCraftRecipe returing wrong reciep due to way to unspecific output matching
2015-02-02 21:32:23 +01:00
kwolekr
d1aefd7252
Fix some MSVC-specific warnings and add debug path as an MSVC directory
2015-02-02 02:01:13 -05:00
kwolekr
ce5e8ae16d
Create minidump on fatal Win32 exceptions
...
Remove software exception translator function, simplifying exception handler
macros. FatalSystemExceptions are left unhandled.
2015-02-02 01:39:17 -05:00
kwolekr
a4b0f2d481
Randomly generate seed if field blank for any Settings instance
2015-02-01 02:05:39 -05:00
Kahrl
5a6cc7ded0
Fix NDT_GLASSLIKE normals
...
Remove inventorycube() workaround for default:glass in minimal game
2015-01-31 03:06:34 +10:00
Craig Robbins
13cd83962f
Fix local map saving when joining a local server from the server tab
...
Disables local map saving for all local server types
See: https://github.com/minetest/minetest/issues/2024
2015-01-31 00:42:08 +10:00
Kahrl
587e426efc
Fix uninitialized variable m_database_delete in Database_SQLite3
...
This fixes issue #2219
2015-01-28 05:01:07 +01:00
kwolekr
2b098f9dd8
Write common mapgen params to map_meta.txt on world initialization
2015-01-27 22:29:28 -05:00
Loic Blot
306b69dbdd
Fix a crash (assert) when client set serial version < 24 in INIT
...
When SER_FMT_VER_LOWEST is set to zero, then the test is stupid in INIT because all client works. In mapblock we check if client's serialization version is < 24, but if client sent serialization version < 24 (15 for example) the server set it and tried to send nodes, then BOOM
To resolve the problem:
* Create a different CLIENT_MIN_VERSION to handle this problem
* Remove the exception
* Use an assert in case of bad developer code
2015-01-27 16:55:25 +01:00
kwolekr
1b494a085c
Fix missing map_meta.txt error when creating new worlds
...
A missing map_meta.txt should be treated simply as if there were a blank file.
2015-01-27 02:10:04 -05:00
Craig Robbins
1e89b53c74
Revert "Fix a crash (assert) when client set serial version < 24 in INIT command SER_FMT_VER_LOWEST is set to zero, then the test is stupid in INIT because all client works. In mapblock we check if client's serialization version is < 24, but if client sent serialization version < 24 (15 for example) the server set it and tried to send nodes, then BOOM"
...
nerzhul is (may?) be working on a new solution. For the moment this is reverted because old worlds cannot be loaded (see discussion on github for the commit).
This reverts commit 800d19270250bb13cc6b2d330199815bf8e96446.
2015-01-27 00:39:33 +10:00
gregorycu
e7f3972cd6
Suppress MSVC warning in chat.cpp
2015-01-25 16:09:23 +10:00
gregorycu
e92dc965d8
Settings fixes Make the GameGlobalShaderConstantSetter use the settings callback (8% perf improvement in game loop) Ensure variable is set Ensure settings callback is threadsafe
2015-01-25 15:23:37 +10:00
Craig Robbins
92bbfd1f8e
Revert "Make the GameGlobalShaderConstantSetter use the settings callback (8% perf improvement in game loop)"
...
This reverts commit a555e2d9b0ccee452996381a44677b8bec210036.
2015-01-25 01:19:40 +10:00
(@U-Exp)
a53acfb2da
Fix a crash (assert) when client set serial version < 24 in INIT command SER_FMT_VER_LOWEST is set to zero, then the test is stupid in INIT because all client works. In mapblock we check if client's serialization version is < 24, but if client sent serialization version < 24 (15 for example) the server set it and tried to send nodes, then BOOM
2015-01-24 22:41:02 +10:00
Kahrl
676975f236
Fix uninitialized variable Server::m_next_sound_id
2015-01-24 06:44:41 +01:00
Craig Robbins
6eb19cc890
Fix unitialised variable occassionally being used
2015-01-24 14:54:42 +10:00
gregorycu
dd5fec7f5a
Make the GameGlobalShaderConstantSetter use the settings callback (8% perf improvement in game loop)
...
Amend the settings callback to support userdata
2015-01-23 21:27:51 -05:00
paramat
bb092828f2
Mgv5: Skip calculation of filler, heat and humidity perlinmaps in underground mapchunks
2015-01-23 21:24:47 -05:00
ShadowNinja
27d6dda4f9
Send real port to server list
2015-01-23 21:38:34 +10:00
paramat
1ac087f7fa
Mgv7 generateRidgeTerrain: Make river generation relative to water level
...
Remove widthn and make nridge zero underwater
2015-01-22 02:21:11 -05:00
paramat
763e2b90ba
Mgv7: Speed optimise calculateNoise and generateRidgeTerrain
...
Remove unnecessary range limiting of persistmap
Skip calculation of filler, mountain, ridge, heat and humidity perlinmaps in underground mapchunks
Skip generateRidgeTerrain in underground mapchunks
2015-01-22 02:10:07 -05:00
paramat
f86904256d
Mgv7 generateRidgeTerrain: Enable rangelim of widthn to remove abysses, calculate widthn later in function
...
Reduce width to 0.2
Carve river channels in deeper waters
2015-01-22 02:06:33 -05:00
TriBlade9
91f12acc60
Added ratio argument to colorize, removed the weird alpha-based ratio.
2015-01-20 22:56:20 +10:00
paramat
37e339765a
Mapgen V5: Various improvements
...
Caves check for biome nodes, only excavate stone under water level
Unease caves noises, use MT0.3 parameters
Blobgen after cavegen
Biomegen: remove 'is replaceable content' bool
2015-01-18 23:38:15 -05:00
kwolekr
87330183bf
Fix all warnings and remove -Wno-unused-but-set cflag
2015-01-18 23:29:19 -05:00
kwolekr
c62a74f247
Add SemiDebug (-O1 with debug symbols) build mode and do not optimize Debug at all
...
Add -Wall to Debug modes for all compilers and -Wabi for non-MSVC
Use /Ox for MSVC Release mode (potentially higher optimization than /O2)
2015-01-18 22:30:11 -05:00
kwolekr
5bb6adee32
Reorganize supported video driver query mechanisms
2015-01-18 13:24:25 -05:00
kwolekr
b529b79d94
Revert "Fix bug in debug build"
...
This reverts commit 839c4a99cddcacdc19dee42286b7029c4c1e7800.
2015-01-18 13:19:28 -05:00