Craig Robbins
ac82476b86
Fix use of unitialized variable in gettext.cpp
...
#2583
2015-03-31 21:26:34 +10:00
Loic Blot
ffee8a059a
Connection::Receive(): receive Network Packet instead of SharedBuffer<u8>.
...
Because we get a Buffer<u8> from ConnectionEvent, don't convert it to SharedBuffer<u8> and return it to Server/Client::Receive which will convert it to NetworkPacket
Instead, put the Buffer<u8> directly to NetworkPacket and return it to packet processing
This remove a long existing memory copy
Also check the packet size directly into Connection::Receive instead of packet processing
2015-03-31 11:01:08 +02:00
Loic Blot
b217a0d01d
RunCommandQueues: little optimization
...
remove command from queue on success, else do nothing, instead of remove command from queue and push it front on success
2015-03-31 09:29:33 +02:00
Loic Blot
3eefe0f9a1
Typo in getOutgoingSequenceNumber => successfull to successful
2015-03-31 09:18:11 +02:00
Aaron Suen
b7263a190f
Move texture_min_size even further down the pipe. Now, textures are JIT-upscaled using an image transformation, right at the time they're added to a mesh or particle; images used in 2D elements are left unscaled. This should fix any remaining issues with HUD elements.
2015-03-31 16:56:33 +10:00
Craig Robbins
fd71a03b85
Change format of screenshot names
...
Filename screenshot_ + ISO 8601 format + [-serial]
i.e. screenshot_YYYY-MM-DDTHH::MM::SS[-serial].png
Serial is added if the filename + timestamp already exists and is in the range 1 to 999
2015-03-31 16:24:25 +10:00
kwolekr
ae55a60e16
GenElementManager: Pass opaque handles to Lua and rename to ObjDefManager
...
Add core.clear_registered_schematics() and refactor schematics somewhat
2015-03-31 01:11:51 -04:00
Loic Blot
b17ebf58c0
Use Buffer not SharedBuffer in NetworkPacket::oldForgePacket
2015-03-30 19:55:14 +02:00
Craig Robbins
e1951e4d12
On Android enable always fast
...
Invert the meaning of holding down the fast button (i.e. holding down the fast button -- if there is one -- means walk), unless performing an action, sneaking or jumping.
Still requires fast move to be toggled on (and fast priv)
2015-03-30 00:40:12 +10:00
Craig Robbins
47cf70479a
Let main menu scale (non-Android)
...
This fixes main menu not fitting for 800x600 (and lower resolutions) on PC builds
2015-03-30 00:33:07 +10:00
Craig Robbins
5e2bb20166
Fix Android build-related bugs
...
E.g. Sound and freetype always being disabled, redefinition of pre-processor directives
2015-03-29 22:27:01 +10:00
Craig Robbins
01a05377d4
Make sure g_timegetter is initalised before running speedtests
...
Thanks @SmallJoker for noticing the issue
2015-03-29 22:21:32 +10:00
Craig Robbins
00b9ca5e77
Fix typo
2015-03-29 22:08:14 +10:00
Craig Robbins
0926f3a05f
Update credits
2015-03-29 21:31:13 +10:00
Loic Blot
e94a288067
queued_commands must be a std::deque. RunCommandQueues needs to push packet on front, not back
2015-03-29 10:49:43 +02:00
Loic Blot
dd68936a0c
Fix uninitialized variable Player::local_animation_speed
2015-03-28 10:46:01 +01:00
Rui
3074f1968e
Update minetest.po
...
Update minetest.po
Update minetest.po
2015-03-28 16:05:29 +10:00
Craig Robbins
918e2548d0
Add Lua function get_video_modes() for main menu
...
Also updates and uses porting::getSupportedVideoModes()
2015-03-28 13:26:03 +10:00
ShadowNinja
3e6bebd2b1
Make camera clear error message if there's no error
2015-03-27 22:20:10 -04:00
ShadowNinja
9f63a1e3eb
Fix GetText translation loading
2015-03-27 22:10:08 -04:00
ShadowNinja
295d5f2a68
Change error_message from wstring to string
...
This removes a lot of narrow/wide conversions where a wide string was never used.
2015-03-27 20:24:04 -04:00
ShadowNinja
279c4211e6
Fix MSVC compile error
2015-03-27 15:16:41 -04:00
ShadowNinja
dd1c4e3716
Document nil player as being allowed for can_dig
2015-03-27 15:11:28 -04:00
ShadowNinja
4506773ac3
Fix typo in OpenGL ES 2 CMake file
2015-03-27 15:10:27 -04:00
ShadowNinja
2de60ae349
Clean up and tweak build system
...
* Combine client and server man pages.
* Update unit test options and available databases in man page.
* Add `--worldname` to man page.
* Fix a bunch of places where `"Minetest"` was used directly instead of `PROJECT_NAME`.
* Disable server build by default on all operating systems.
* Make `ENABLE_FREETYPE` not fail if FreeType isn't found.
* Enable LevelDB, Redis, and FreeType detection by default.
* Remove the `VERSION_PATCH_ORIG` hack.
* Add option to search for and use system JSONCPP.
* Remove broken LuaJIT version detection.
* Rename `DISABLE_LUAJIT` to `ENABLE_LUAJIT`.
* Rename `minetest_*` variables in `version.{h,cpp}` to `g_*`.
* Clean up style of CMake files.
2015-03-27 15:00:48 -04:00
Loic Blot
948c4d8b6c
Remove duplicate code since 8ca08a850ff2494652aa0ac2daa3d00f03aa4e7a
2015-03-25 09:08:17 +01:00
Wuzzy
c56b12645f
Update German translation and minetest.pot
2015-03-25 09:04:54 +01:00
paramat
c4d375a253
lua_api/l_mapgen: generate_ores/decorations: make p1, p2 optional
2015-03-24 18:07:29 +00:00
Craig Robbins
0d4b186bbd
Change filename of screenshots to something more human readable
2015-03-25 02:55:28 +10:00
Craig Robbins
b1e8a816d5
Update timestamp to include date
2015-03-25 02:30:17 +10:00
Loic Blot
6450ca41ec
Don't send an InventoryAction at each setInventoryModified, we only need one SendInventory per inventory modification
...
Client doesn't like to receive multiples SendInventory for one action, this can trigger glitches on clients (sometimes due to incorrect UDP packet ordering due to UDP protocol)
This fix issue #2544
2015-03-24 14:13:17 +01:00
Craig Robbins
0d5696e73d
Slow down the "key repeat" touch speed for some Android controls
...
Increases the key/buttons repeat delay for fly, noclip, fast, debug and camera buttons
2015-03-24 22:19:32 +10:00
kwolekr
4174dde376
Add core.register_schematic() and cache schematics on use
2015-03-23 22:23:38 -04:00
kwolekr
44f8d53b77
Fix endianness inconsistency with PcgRandom::bytes()
2015-03-23 22:23:16 -04:00
kwolekr
2d4629c01d
Schematics: Error if unable to open file
2015-03-23 22:22:14 -04:00
kwolekr
714d28bd88
Do not enable texture_clean_transparent by default
...
This feature is still experimental and has some issues. Also,
increase texture_min_size to 64 px. The setting was initially
a conservative 16 so that the effect would not be noticable
for players who aren't using aniso/bi/trilinear filtering. This
isn't necessary now that texture_clean_transparent is disabled
by default.
2015-03-23 18:25:14 -04:00
paramat
3125b03465
Mgv6: Use heightmap in placeTreesAndJungleGrass()
2015-03-23 21:55:01 +00:00
Aaron Suen
6ec44bfd57
Fix for sun/moon tonemaps: don't upscale 1px images.
2015-03-23 17:01:37 +10:00
est31
a346e6c2fc
Fix Android build on 32 bit
...
Remove the --system=linux-x86_64 which isn't neccessary on 64 bit,
as, when given no --system parameter, the standalone-toolchain.sh script
figures out the platform on itself. Naturally, the hardcoded setting broke
android building on 32 bit systems.
2015-03-23 14:11:39 +10:00
est31
9bac4d4335
Fix cmake po detection bug
...
Previously, cmake po detection would treat the "timestamp" file created by building for android as own language directory.
2015-03-23 13:43:18 +10:00
est31
e431f47da1
Fix minetest.get_craft_recipe function
...
Previously, calling it resulted in a crash.
2015-03-23 13:40:20 +10:00
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