Loic Blot
c03ec90c9a
Player: Fix a deadlock triggered by previous commit 0e5e49736c0a5fa29bca257bafc02d7c7a7171c9
2015-03-22 21:33:09 +01:00
Loic Blot
f0cbf06e63
Protect Player::hud from concurrent modifications
...
Sometimes HUD can be modified by ServerThread and EmergeThread results in a crash on client side because the HUD is not correct
2015-03-22 20:47:07 +01:00
paramat
0f70ce9f93
Mgv7: 1 up , 1 down overgeneration for chunk border continuity
...
Fixes biome layer at y = 47 when base/alt terrain exceeds it
Also fixes missing dust glitch at y = 47
Mgv5/mgv7:Cleanup code
2015-03-22 19:30:08 +00:00
Loic Blot
455863a38f
Revert "Add a Lua call to do damages / heals" ok @ShadowNinja
...
This reverts commit 467fc0ddc912ae38c3bf9fcb99e0b66d7478eec0.
2015-03-22 18:01:56 +01:00
Loic Blot
34b6039407
Remove unused ConnectionCommand::sendToAll function. NetworkPacket::oldForgePacket returns Buffer instead of SharedBuffer and is used in ConnectionCommand instead of Connection::Send
...
This remove the NetworkPacket buffer => SharedBuffer => Buffer copy. Now NetworkPacket => Buffer
2015-03-22 12:18:16 +01:00
kwolekr
914486efb5
Fix some loose ends from 3993093f
2015-03-22 02:58:54 -04:00
kwolekr
16407b9f46
Add support for the PCG32 PRNG algo (and associated script APIs)
2015-03-22 00:48:08 -04:00
poet-nohit
c643e48820
SendInventory when handleCommand_Interact is a use.
...
This call was missing when change looping to triggering SendInventory: 1b2f64473ed4f222d3b7f02df853730d4382105e
2015-03-21 21:37:32 +01:00
Aaron Suen
60b299fcd4
Fix composite textures with texture_min_size. Moved upscaling of textures to later in the process, when images are converted to textures, instead of right after image load, so the original image is unmodified for generateImagePart.
2015-03-22 01:31:01 +10:00
SmallJoker
0b52580c5c
Connect rails with connect_to_raillike and shorten the codes
2015-03-21 22:59:27 +10:00
gregorycu
304a9e8016
Optimize minetest.get_(all)_craft_recipe(s)
...
Signed off by: ShadowNinja, kwolekr
2015-03-20 21:41:18 -04:00
Aaron Suen
c4f41b5fdf
Configurable automatic texture scaling and filtering at load time.
...
Signed off by: Zeno, kwolekr
2015-03-20 20:21:42 -04:00
kwolekr
67a32d0c03
Revert "Fix issue #2441 : crash on respawn, since a conversion std::list to std::vector on Environment.cpp"
...
This reverts parts of commit 9749d9fee6db99da1ab861dc04ec63ef973db3e0, which breaks node resolver
list clearing
2015-03-20 18:41:26 -04:00
paramat
ae43405a34
Mgv5/mgv7: Sprinkle dust from full_node_max.Y if chunk above is generated
...
Mgv5: Add large_cave_depth constant
2015-03-19 10:18:42 +00:00
Loic Blot
ee72689f3f
Reset the old HP method on PlayerSAO::setHP
2015-03-19 07:47:45 +01:00
est31
256e16dbea
Fix game minetest.conf default settings
...
This was a regression introduced by f6e4c5d9cf459e8278a76a2beaee59732e841458 .
2015-03-18 13:03:02 -04:00
Loic Blot
7caacf745b
Add a Lua call to do damages / heals
2015-03-18 14:52:35 +01:00
Loic Blot
0fbbbb9c4e
ServerpacketHandler: spelling fixes
2015-03-18 12:06:02 +01:00
paramat
3a546a2aa3
Mgv6: Remove addDirtGravelBlobs, replaced by blob ore in Minetest Game
...
Desert stone above y = -32 not water_level
Remove unused generateExperimental()
2015-03-18 10:55:58 +00:00
fz72
330915393f
Save creative_mode and enable_damage setting for each world in world.mt
...
Create Parameters on world initialisation and set settings of old worlds
2015-03-18 09:53:24 +01:00
Loic Blot
def2644a5e
MutexedQueue inherits must use std::deque instead of std::list
2015-03-17 17:12:20 +01:00
Loic Blot
638fffbf80
Remove Android makefile ugly make -j hack
2015-03-17 15:48:48 +01:00
Pavel Puchkin
fcff79967c
Standalone bundle for OSX (w/ dependencies!)
2015-03-17 15:37:23 +01:00
Loic Blot
bffc290db3
Server::step throw is never catched in minetestserver
...
Replace it with an errorstream + assert for server
This throw can be trigger by LuaError exception or ConnectionBindFailed exception in the following functions:
* EmergeThread::Thread()
* ScriptApiEnv::environment_Step()
* ScriptApiEnv::player_event()
* ServerThread::Thread()
2015-03-17 15:26:20 +01:00
Loic Blot
2787603f02
Use the NetworkPacket api to read full version string instead of u8 pointers. Also store the reserved byte to use API properly
...
Fixes #2509
2015-03-17 14:12:18 +01:00
Loic Blot
ac06d89208
Fix a little regression on SendActiveObjectMessages which send all TOCLIENT_ACTIVE_OBJECT_MESSAGES as reliable
2015-03-17 09:16:39 +01:00
Craig Robbins
5d7eee12f6
Minor bug fix (lag between damage flash and hearts updating)
2015-03-17 17:39:59 +10:00
Craig Robbins
00b2c232e7
Fix various damage related bugs (client-side)
...
E.g. spawning or teleporting into lava to become invinsible
2015-03-17 17:08:00 +10:00
Craig Robbins
4ba00407f3
Minor cleanup: game.cpp
...
* Sort includes
* Remove unnecessary includes
* Ensure the parameter name for GameRunData is consistent for class member functions
2015-03-17 17:07:39 +10:00
kwolekr
7b5ce39090
Revert "Server::step throw is never catched. Replace it with an errorstream + assert"
...
This reverts commit 5f8e48c63baf12930430d5d8fc07495021599e61.
2015-03-16 21:17:27 -04:00
Loic Blot
671e448d3c
Bump android version code
2015-03-16 20:37:31 +01:00
Loic Blot
ef3f5ae716
Server::step throw is never catched. Replace it with an errorstream + assert
...
This throw can be trigger by LuaError exception or ConnectionBindFailed exception in the following functions:
* EmergeThread::Thread()
* ScriptApiEnv::environment_Step()
* ScriptApiEnv::player_event()
* ServerThread::Thread()
2015-03-16 20:25:35 +01:00
est31
e9628bc95d
Android: Fix auto-entry of server address and port in mainmenu
...
Fixes #2497 .
2015-03-16 20:04:00 +01:00
Loic Blot
5b3e52fc1e
Move client packet generators to dedicated functions for:
...
* TOSERVER_INIT_LEGACY
* TOSERVER_DELETEDBLOCKS
* TOSERVER_GOTBLOCKS
* TOSERVER_REMOVED_SOUNDS
Also use a std::vector instead of std::set for TOSERVER_REMOVED_SOUNDS
2015-03-16 12:39:27 +01:00
Loic Blot
0a61765cae
Move TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD and TOCLIENT_ACTIVE_OBJECT_MESSAGES to private functions
2015-03-16 12:01:40 +01:00
Loic Blot
569596f0b1
Rename packethandler/{client,server}.cpp to {client,server}packethandler.cpp
...
* Requested by @Zeno-
* Approved by @nerzhul
2015-03-16 10:19:19 +01:00
Loic Blot
262dc31e53
If player is dead, permit it to respawn, even if damages are not enabled
...
* Mods can do setHP function to do damages and override the enable_damage value sometimes
2015-03-16 10:02:01 +01:00
Loic Blot
e01e7c4574
SendPlayerHPOrDie everytime at client connection, damage enabled or not, this will fix the player which stay dead at connection
2015-03-15 19:09:26 +01:00
est31
f9986b360a
Finer progress bar updates when initializing nodes
...
The bar is only drawn when the user will notice a change, which prevents time overheads that this commit would cause, resulting from useless draws.
2015-03-15 22:01:52 +10:00
Loic Blot
6e62992e96
Android Makefile update backported from stable-0.4 with minor changes
2015-03-15 11:21:34 +01:00
paramat
30613e71cd
mg_decoration: Raise highest allowed deco top to max edge of voxelmanip
...
Remove max_y from functions, simplify code
2015-03-15 04:15:48 +00:00
Loic Blot
d71219e01c
Android: Backport changes from stable-0.4
2015-03-14 19:59:14 +01:00
Loic Blot
a03fdd923f
Android: fix package name in JAVA sources
2015-03-14 18:52:31 +01:00
Loic Blot
1b13972f22
Fix package name in AndroidManifest.xml
2015-03-14 18:41:36 +01:00
Loic Blot
fa59f2e69c
AndroidManifest.xml version bump
2015-03-14 18:28:02 +01:00
Craig Robbins
364c62fa2e
Disable double-click -> ESC translation for main menu
2015-03-14 23:41:42 +10:00
Loic Blot
ae19a9f796
client.cpp: typo fix and break; fix to make some compilers happy
2015-03-13 22:08:48 +01:00
Loic Blot
b4f34761bd
Replace NetworkPacket pointers to references
2015-03-13 22:01:49 +01:00
Loic Blot
554575520c
Prepare Protocol v25 init & authentication.
...
* TOSERVER_INIT and TOCLIENT_INIT renamed to _LEGACY
* TOSERVER_PASSWORD merged from dev-0.5, can use protocol v24 and v25
* TOCLIENT_ACCESS_DENIED merged from dev-0.5, can use protocol v24 and v25, with normalized strings an a custom id for custom errors
* new TOSERVER_INIT packet only send MT version, supported compressions, protocols and serialization, this permit to rework everything later without break the _INIT packet
* new TOSERVER_AUTH packet which auth the client
* new TOCLIENT_HELLO packet which send server serialization version atm
* new TOCLIENT_AUTH_ACCEPTED which is send when TOCLIENT_AUTH was okay. After this packet, the client load datas from servers, like after TOCLIENT_INIT_LEGACY packet
2015-03-13 20:23:03 +01:00
Loic Blot
d77c45c0ca
Handle the newly added TOCLIENT_ACCESS_DENIED and TOCLIENT_DELETE_PARTICLESPAWNER
...
* Rename the handlers from _Legacy to regular, because here we can use same handlers
* Fix some packet names and pseudo handlers
2015-03-13 14:28:20 +01:00