]> git.lizzy.rs Git - dragonfireclient.git/log
dragonfireclient.git
7 years agoFix visual slide issue with set_detach, fixes #5620
shivajiva101 [Sat, 29 Apr 2017 16:18:46 +0000 (17:18 +0100)]
Fix visual slide issue with set_detach, fixes #5620

7 years agocontent_cao: fix getPlayerControl structure copy on each step (#5677)
Loïc Blot [Sat, 29 Apr 2017 16:16:58 +0000 (18:16 +0200)]
content_cao: fix getPlayerControl structure copy on each step (#5677)

Also fix some codestyle issues around it.

7 years agoClient & ClientEnvirnment: don't create fake events (#5676)
Loïc Blot [Sat, 29 Apr 2017 15:25:25 +0000 (17:25 +0200)]
Client & ClientEnvirnment: don't create fake events (#5676)

Instead of create fake events on the stack on each loop call (Game::run), verify is queue is empty or not and handle event directly if there is.

This prevents fake ClientEvent creation & memory allocations

Same fix is also applied on ClientEnvironment, & rename getClientEvent to getClientEnvEvent to match ClientEnvEvent object

7 years agoFix Travis/unittest broken since b662a45
SmallJoker [Sat, 29 Apr 2017 12:36:55 +0000 (14:36 +0200)]
Fix Travis/unittest broken since b662a45

7 years agoRemove legacy unused define DIGGING_PARTICLES_AMOUNT
Loic Blot [Sat, 29 Apr 2017 10:18:14 +0000 (12:18 +0200)]
Remove legacy unused define DIGGING_PARTICLES_AMOUNT

7 years ago[CSM] Add event on_place_node API lua (#5548)
Vincent Glize [Sat, 29 Apr 2017 10:08:16 +0000 (12:08 +0200)]
[CSM] Add event on_place_node API lua (#5548)

* [CSM] Add event on_place_node API lua

7 years agoFix Lint broken by b662a4577d692329b9ca83525e6039f2ddcd1ac1
Loic Blot [Sat, 29 Apr 2017 07:47:22 +0000 (09:47 +0200)]
Fix Lint broken by b662a4577d692329b9ca83525e6039f2ddcd1ac1

7 years agoReorder TileLayer. (#5638)
Auke Kok [Sat, 29 Apr 2017 07:16:32 +0000 (00:16 -0700)]
Reorder TileLayer. (#5638)

Despite the split of TileSpec into TileDef and TileLayer, the
TileLayer struct is still 66 bytes large, and doesn't fit in
a single cacheline.

I'm moving the color member to cacheline 2, in the hope that it
is less used and the compiler loads all the hot members in a single
cacheline instead. Only color sits now in cacheline 2, all the
other members are in cacheline 1.

Note: is_color is probably rarely set, most nodes will likely
not use hardware coloring, but this may change in the future.
Ideally, this class is shrunk to 64 bytes.

7 years ago[CSM] add screenshot api lua (#5674)
Vincent Glize [Sat, 29 Apr 2017 07:16:06 +0000 (09:16 +0200)]
[CSM] add screenshot api lua (#5674)

* [CSM] add screenshot api lua

7 years agoClean up getTime helpers
ShadowNinja [Sun, 6 Mar 2016 19:31:16 +0000 (14:31 -0500)]
Clean up getTime helpers

This increases size of the getTime return values to 64 bits.
It also removes the TimeGetter classes since the getTime functions
are now very precise.

7 years agoFix click-digging torches (#5652)
you [Fri, 28 Apr 2017 18:12:28 +0000 (20:12 +0200)]
Fix click-digging torches (#5652)

Torches are dug instantly again.
When the digging time is 0, a delay of 0.15 seconds is added between digging nodes. If the left mouse button is released, the delay is set to 0, thus click-digging.

7 years agoAllow mesh and nodeboxes to wave like plants or leaves. (#3497)
Auke Kok [Fri, 28 Apr 2017 18:11:43 +0000 (11:11 -0700)]
Allow mesh and nodeboxes to wave like plants or leaves. (#3497)

We introduce a new value for "waving" - 2:

0 - waving disabled
1 - wave like a plant
2 - wave like a leave

Plantlike nodes will only allow waving = 1, but for leaves we will
permit both 1 and 2 since current minetest_game sets it to 1 for
all leaves. This makes it somewhat backwards compatible.

For mesh and nodebox, values 1 and 2 are both valid, and the node
can wave in both fashions as desired.

I've tested this with the crops:corn plants, which are mesh nodes,
and the results are really good. The code change is trivial as
well, so I've opted to document the waving parameter in lua_api.txt
because it was missing from there.

Nodeboxes likely will not wave properly unless waving = 2. However
it's possible that waving=1 may be desired by some mod developers
for geometries I have not tried, so the code will not prohibit
either value for mesh and nodebox drawtypes.

Add lua_api.txt documentation for this feature and document both
the existing functionality and the expansion to mesh and nodebox
drawtypes.

7 years agoFix Travis builds
ShadowNinja [Thu, 27 Apr 2017 14:57:46 +0000 (10:57 -0400)]
Fix Travis builds

7 years agoSearch user path for sounds (#5657)
Louis Pearson [Thu, 27 Apr 2017 11:33:59 +0000 (06:33 -0500)]
Search user path for sounds (#5657)

7 years agoDon't permit to copy Scripting classes (Client,Server,Mainmenu)
Loïc Blot [Thu, 27 Apr 2017 09:52:44 +0000 (11:52 +0200)]
Don't permit to copy Scripting classes (Client,Server,Mainmenu)

7 years agoAllow scripts to get the client protocol version in non-debug builds. (#5649)
red-001 [Thu, 27 Apr 2017 09:49:44 +0000 (10:49 +0100)]
Allow scripts to get the client protocol version in non-debug builds. (#5649)

7 years agoFix incorrect formspec-tooltip doc, add detail in 'floodable' & 'on_flood' docs ...
Bluebird [Thu, 27 Apr 2017 09:49:07 +0000 (04:49 -0500)]
Fix incorrect formspec-tooltip doc, add detail in 'floodable' & 'on_flood' docs (#5660)

* Fix incorrect formspec tooltip documentation

* Improve `floodable` and `on_flood` documentation.

The original documentation did not specify that liquids should not themselves be floodable. This is probably something that should be mentioned.

7 years agoFix Android build since 2818d3f2244d2146a5cdb61cd41f6561c514f97c
Loic Blot [Wed, 26 Apr 2017 19:11:46 +0000 (21:11 +0200)]
Fix Android build since 2818d3f2244d2146a5cdb61cd41f6561c514f97c

7 years agoFix #5655 (#5658)
red-001 [Wed, 26 Apr 2017 19:10:13 +0000 (20:10 +0100)]
Fix #5655 (#5658)

Client: Don't send `TOSERVER_RECEIVED_MEDIA` since it's not used anymore
Server: Handle `TOSERVER_RECEIVED_MEDIA` using `Server::handleCommand_Deprecated`

7 years agoTiny documentation fix. (#5659)
Bluebird [Wed, 26 Apr 2017 05:24:15 +0000 (00:24 -0500)]
Tiny documentation fix. (#5659)

There are plenty of lines longer than 80 characters, and spliting the function declaration across two lines can be momentarily confusing.

7 years agoRename Scripting API files for consistency
ShadowNinja [Tue, 25 Apr 2017 17:38:08 +0000 (13:38 -0400)]
Rename Scripting API files for consistency

7 years agoFootsteps without view bobbing (#5645)
Louis Pearson [Tue, 25 Apr 2017 11:11:51 +0000 (06:11 -0500)]
Footsteps without view bobbing (#5645)

* Remove redundant view_bobbing setting

Also fixes bug where disabling view_bobbing disables footstep sounds.

* Removes redundant view_bobbing setting

Setting view_bobbing amount to 0 is now the only way to
turn view_bobbing on and off. Also fixed a bug where footstep
sounds would not play when view_bobbing was disabled.

7 years agoFix various points reported by cppcheck (#5656)
Loïc Blot [Tue, 25 Apr 2017 08:17:53 +0000 (10:17 +0200)]
Fix various points reported by cppcheck (#5656)

* Fix various performance issues reported by cppcheck + code style (CI)

* Make CI happy with code style on master
* guiFileSelectMenu: remove useless includes
* some performance fixes pointed by cppcheck
* remove some useless casts
* TextDest: remove unused setFormSpec function

* Fix various iterator post-increment reported by cppcheck

7 years agoGitlab-CI: keep build workspace only 1 hour
Loïc Blot [Mon, 24 Apr 2017 14:06:27 +0000 (16:06 +0200)]
Gitlab-CI: keep build workspace only 1 hour

7 years agoFix lint since recent player to db merge
Loic Blot [Sun, 23 Apr 2017 14:22:53 +0000 (16:22 +0200)]
Fix lint since recent player to db merge

7 years agoPlayer data to Database (#5475)
Loïc Blot [Sun, 23 Apr 2017 12:35:08 +0000 (14:35 +0200)]
Player data to Database (#5475)

* Player data to Database

Add player data into databases (SQLite3 & PG only)

PostgreSQL & SQLite: better POO Design for databases

Add --migrate-players argument to server + deprecation warning

* Remove players directory if empty

7 years agoLINT fix
Loic Blot [Sun, 23 Apr 2017 08:24:00 +0000 (10:24 +0200)]
LINT fix

7 years agoRevert "CONTRIBUTING: disallow signed git commits"
Loic Blot [Sun, 23 Apr 2017 08:21:08 +0000 (10:21 +0200)]
Revert "CONTRIBUTING: disallow signed git commits"

This reverts commit 7a6502a7a5007e4bed8c1dd10af39d4fa2b296a4.

Signed commits are supported by PPA and weblate now

7 years agoPass clang-format on various cpp/header files (#5559)
Loïc Blot [Sun, 23 Apr 2017 07:52:40 +0000 (09:52 +0200)]
Pass clang-format on various cpp/header files (#5559)

7 years agoNetwork:Remove old opcodes and fix documentation. (#5573)
red-001 [Sat, 22 Apr 2017 11:59:02 +0000 (12:59 +0100)]
Network:Remove old opcodes and fix documentation. (#5573)

7 years agoMgflat, Mgv7: Fix noise crash on world exit.
paramat [Sat, 22 Apr 2017 04:16:50 +0000 (05:16 +0100)]
Mgflat, Mgv7: Fix noise crash on world exit.

Fix crash caused by destructor 'delete' on noise objects that are not
created due to mapgen options.
Crash was caused by commit 57eaf62c697cec91890d9cb28d10385d293d2d3f

7 years agoAdd /fixlight chat command
Dániel Juhász [Fri, 21 Apr 2017 10:56:10 +0000 (12:56 +0200)]
Add /fixlight chat command

7 years agoMgflat, Mgv7: Only create noise objects if needed
paramat [Fri, 21 Apr 2017 01:19:24 +0000 (02:19 +0100)]
Mgflat, Mgv7: Only create noise objects if needed

7 years agoSneak glitch: Set default to false
paramat [Thu, 20 Apr 2017 21:47:28 +0000 (22:47 +0100)]
Sneak glitch: Set default to false

The 'sneak glitch' physics override now controls whether a player can
use the new move code replications of the old sneak side-effects:
sneak ladders and 2 node sneak jump. This completes our intention to
replicate the old sneak side-effects in new code and provide them as
an option that is disabled by default.

7 years agoAdd on_flood() callback.
Auke Kok [Thu, 20 Apr 2017 06:10:39 +0000 (23:10 -0700)]
Add on_flood() callback.

This callback is called if a liquid definitely floods a non-air
node on the map. The callback arguments are (pos, oldnode, newnode)
and can return a `bool` value indicating whether flooding the
node should be cancelled (`return true` will prevent the node
from flooding).

Documentation is added, the callback function was tested with a
modified minetest_game.

Note that `return true` will likely cause the node's `on_flood()`
callback to be called every second until the node gets removed,
so care must be taken to prevent many callbacks from using this
return value. The current default liquid update interval is 1.0
seconds, which isn't unmanageable.

The larger aim of this patch is to remove the lava cooling ABM,
which is a significant cost to idle servers that have lava on their
map. This callback will be much more efficient.

7 years agoFix a memory leak (#5636)
Dániel Juhász [Fri, 21 Apr 2017 22:55:07 +0000 (00:55 +0200)]
Fix a memory leak (#5636)

7 years agoFixing warning pointed by @sfan5 and clang and cleanup guiFileSelectMenu
Loic Blot [Fri, 21 Apr 2017 22:51:13 +0000 (00:51 +0200)]
Fixing warning pointed by @sfan5 and clang and cleanup guiFileSelectMenu

* Also pass clang-format on guiFileSelectMenu.h and remove it from whitelist

7 years agoRevert a const ref on update texture
Loic Blot [Fri, 21 Apr 2017 22:36:59 +0000 (00:36 +0200)]
Revert a const ref on update texture

if mod is a reference to a class member a variable swap breaks.
We should find a way to keep this const ref if possible.
Added a comment about this in header

7 years agolua: remove core.cause_error call (#5637)
Loïc Blot [Fri, 21 Apr 2017 22:34:00 +0000 (00:34 +0200)]
lua: remove core.cause_error call (#5637)

it was used in minimal to trigger core crash, not very useful

7 years agoFix various performance issues reported by cppcheck + code style (CI) (#5635)
Loïc Blot [Fri, 21 Apr 2017 21:40:48 +0000 (23:40 +0200)]
Fix various performance issues reported by cppcheck + code style (CI) (#5635)

* Make CI happy with code style on master
* guiFileSelectMenu: remove useless includes
* some performance fixes pointed by cppcheck
* remove some useless casts
* TextDest: remove unused setFormSpec function

7 years agoFix #5617 - respect message and reconnect parameters when shutting down immediately...
orwell96 [Fri, 21 Apr 2017 17:31:59 +0000 (19:31 +0200)]
Fix #5617 - respect message and reconnect parameters when shutting down immediately (#5621)

7 years agoFix after soft node overlays
Dániel Juhász [Fri, 21 Apr 2017 16:04:06 +0000 (18:04 +0200)]
Fix after soft node overlays

This removes a segmentation fault and makes node meshes well colorized.

7 years agoSoft node overlay (#5186)
Dániel Juhász [Fri, 21 Apr 2017 13:34:59 +0000 (15:34 +0200)]
Soft node overlay (#5186)

This commit adds node overlays, which are tiles that are drawn on top of
other tiles.

7 years agoGitlab-CI enhancements (#5629)
Loïc Blot [Fri, 21 Apr 2017 08:22:20 +0000 (10:22 +0200)]
Gitlab-CI enhancements (#5629)

7 years agoFix various performance issues reported by cppcheck (#5628)
Loïc Blot [Fri, 21 Apr 2017 08:06:08 +0000 (10:06 +0200)]
Fix various performance issues reported by cppcheck (#5628)

* Also remove 1 non declared but defined functions

7 years agoRun generate_from_settingtypes.lua
Ekdohibs [Thu, 20 Apr 2017 04:06:15 +0000 (06:06 +0200)]
Run generate_from_settingtypes.lua

7 years agoLight update for map blocks
Dániel Juhász [Sat, 11 Mar 2017 16:07:04 +0000 (17:07 +0100)]
Light update for map blocks

This is not really different from the light update of a voxel
manipulator. This update does not assume that the lighting was correct
before, therefore it is useful for correction.

Also expose this function to the Lua API for light correction, and
allow voxel manipulators not to update the light.

7 years agoSplit light update into two parts
Dániel Juhász [Sat, 11 Mar 2017 16:03:15 +0000 (17:03 +0100)]
Split light update into two parts

The common part can be reused.

7 years agoFix various copy instead of const ref reported by cppcheck (part 3) (#5616)
Loïc Blot [Wed, 19 Apr 2017 22:12:52 +0000 (00:12 +0200)]
Fix various copy instead of const ref reported by cppcheck (part 3) (#5616)

* Also remove 2 non declared but defined functions
* Make some functions around const ref changes const

7 years agoFix various copy instead of const ref reported by cppcheck (#5615)
Loïc Blot [Wed, 19 Apr 2017 21:02:07 +0000 (23:02 +0200)]
Fix various copy instead of const ref reported by cppcheck (#5615)

* Also remove InventoryList::peekItem unused function
* Fix some post increment to preincrement reported by cppcheck

7 years agoConf.example: Move some lines to minetest.conf.example.extra
paramat [Mon, 17 Apr 2017 13:17:43 +0000 (14:17 +0100)]
Conf.example: Move some lines to minetest.conf.example.extra

Some information in conf.example cannot be generated from
settingtypes.txt, moving it to a new file makes generating
conf.example while preserving that information easier.

Regenerate conf.example from settingtypes.txt.

7 years agoPointed thing to face pos: Fix crash if opening door with slab or stair
MarkuBu [Thu, 13 Apr 2017 11:58:34 +0000 (13:58 +0200)]
Pointed thing to face pos: Fix crash if opening door with slab or stair

Avoids crash caused when 'pointed thing -under' and '-above' are not
face-neighbours, for example in the case of pointing to the top half
of a door.

7 years agoTools: Fix tool digging speed limit
Hybrid Dog [Mon, 10 Apr 2017 20:07:52 +0000 (22:07 +0200)]
Tools: Fix tool digging speed limit

7 years agoFix various variables passed by copy instead of const ref (#5610)
Loïc Blot [Tue, 18 Apr 2017 22:36:30 +0000 (00:36 +0200)]
Fix various variables passed by copy instead of const ref (#5610)

Pointed by cppcheck

7 years agoFix broken lint since 04cc9de8f2fbcb11f133c88f02fc11504b3ea6f3
Loïc Blot [Tue, 18 Apr 2017 15:13:50 +0000 (17:13 +0200)]
Fix broken lint since 04cc9de8f2fbcb11f133c88f02fc11504b3ea6f3

7 years agoReorder TileSpec. (#5591)
Auke Kok [Tue, 18 Apr 2017 05:48:17 +0000 (22:48 -0700)]
Reorder TileSpec. (#5591)

Put accessed members that are needed by updateFastFaceRow()
all in the same cacheline.

7 years agoFix always using the xbox layout (reported by coverity).
Ekdohibs [Tue, 18 Apr 2017 04:40:53 +0000 (06:40 +0200)]
Fix always using the xbox layout (reported by coverity).

7 years agoDon't make TAB exit game if bound to inventory.
Auke Kok [Sat, 15 Apr 2017 05:16:57 +0000 (22:16 -0700)]
Don't make TAB exit game if bound to inventory.

I play with the TAB key bound to the inventory. However, the
code here assumes that TAB means "close formspec" in all contexts,
including the main menu. This causes my game to exit when I attempt
to TAB in between USERNAME and PASSWORD fields.

We know when m_client != NULL that the game is a client game and
not in the main menu, and then it's OK to use the INVENTORY bound
key to exit the formspec, since it's not the main menu.

7 years agoFix MSVC build broken by 34d32ce
SmallJoker [Mon, 17 Apr 2017 11:49:48 +0000 (13:49 +0200)]
Fix MSVC build broken by 34d32ce
`round` -> `myround`
Remove superflous `floor` calls

7 years agoMeshUpdateQueue: Add a MapBlock cache that minimizes the amount of MapBlock copying...
Perttu Ahola [Sat, 15 Apr 2017 07:55:52 +0000 (10:55 +0300)]
MeshUpdateQueue: Add a MapBlock cache that minimizes the amount of MapBlock copying done in the main thread

Cache size is configurable by the meshgen_block_cache_size (default 20 MB).

New profiler stats:
- MeshUpdateQueue MapBlock cache hit %
- MeshUpdateQueue MapBlock cache size kB

Removes one type of stutter that was seen on the client when received MapBlocks
were being handled. (the "MeshMakeData::fill" stutter)

Kind of related to at least #5239

Originally preceded by these commits, now includes them:
- Move the mesh generator thread into src/mesh_generator_thread.{cpp,h}
- mesh_generator_thread.cpp: Update code style
- MeshUpdateThread: Modify interface to house a different implementation: Actual functionality will be changed by next commits.
- MeshMakeData: Add fillBlockData() interface (so that caller can fill in stuff from eg. a MapBlock cache)

7 years agoInclude container.h in util/thread.h. util/thread.h doesn't compile without it
Perttu Ahola [Sat, 15 Apr 2017 15:21:23 +0000 (18:21 +0300)]
Include container.h in util/thread.h. util/thread.h doesn't compile without it

7 years agoSneak: Add option for old move code
paramat [Wed, 5 Apr 2017 11:18:22 +0000 (12:18 +0100)]
Sneak: Add option for old move code

Temporary option for the old move code for specific old sneak behaviour.
Enabled by setting the added 'new move' physics override to false.
By default 'new move' is true.

7 years agoRemove an unused variable in Android Build
Loic Blot [Mon, 17 Apr 2017 07:37:12 +0000 (09:37 +0200)]
Remove an unused variable in Android Build

7 years agoPlug two minor Leaks (#5603)
Auke Kok [Mon, 17 Apr 2017 07:04:58 +0000 (00:04 -0700)]
Plug two minor Leaks (#5603)

* Resource leak: CHECK_FILE_ERR returns, without freeing chunk_name.

Found with static analysis.

* Resource leak: leaks `page` on error path.

Found with static analysis.

7 years agoAndroid progressbar fix (#5601)
Loïc Blot [Sun, 16 Apr 2017 12:44:15 +0000 (14:44 +0200)]
Android progressbar fix (#5601)

* Fix progressbar for Android

Fixes #5599
Fixed #5403

* draw_load_screen: use texturesource
  this permits to unify texture loading code
* scale progress bar

* Add gl version check for GL_OES_texture_npot. This fixed the texture on loading screen

* Remove two sanity checks pointed by @celeron55

* sfan5 comments + android ratio fixes

7 years agoDisable android leveldb by default (#5596)
Nathanaël Courant [Sun, 16 Apr 2017 07:48:48 +0000 (00:48 -0700)]
Disable android leveldb by default (#5596)

1) Now leveldb is brick (thanks google)
2) By default, use SQLite3, this work perfectly and NOBODY not use LevelDB on Android :)

7 years agoImplement delayed server shutdown with cancelation (#4664)
Loïc Blot [Sat, 15 Apr 2017 21:19:18 +0000 (23:19 +0200)]
Implement delayed server shutdown with cancelation (#4664)

7 years agoMinimap: Do a double-typecast to fix compiling with MSVC
SmallJoker [Sat, 15 Apr 2017 12:30:27 +0000 (14:30 +0200)]
Minimap: Do a double-typecast to fix compiling with MSVC

7 years agoPartial damage cheat fix: node damages server side (#4981)
Loïc Blot [Sat, 15 Apr 2017 07:25:43 +0000 (09:25 +0200)]
Partial damage cheat fix: node damages server side (#4981)

* Damage cheat fix: server side

* Lava/Node damages overtime server side
* lava hurt interval is only for old protocol

7 years agoNetworkPacket: don't copy push std::string and std::wstring
Loic Blot [Fri, 14 Apr 2017 16:26:24 +0000 (18:26 +0200)]
NetworkPacket: don't copy push std::string and std::wstring

7 years agoFix wrong channel type in Client/Server CommandFactories
Loic Blot [Fri, 14 Apr 2017 13:56:40 +0000 (15:56 +0200)]
Fix wrong channel type in Client/Server CommandFactories
This is a u8 not a u16

7 years agoClientIface::sendToAll: honor packet configuration (#5590)
Loïc Blot [Fri, 14 Apr 2017 13:34:01 +0000 (15:34 +0200)]
ClientIface::sendToAll: honor packet configuration (#5590)

7 years agoFix android build
Loic Blot [Fri, 14 Apr 2017 07:26:11 +0000 (09:26 +0200)]
Fix android build

7 years ago[CSM] Add function to set minimap shape (#5569)
bigfoot547 [Fri, 14 Apr 2017 07:04:41 +0000 (02:04 -0500)]
[CSM] Add function to set minimap shape (#5569)

* [CSM] Add function to set minimap shape

Also deprecates `toggle_shape`.

* Oh fish, I messed that one up!

* Fix Style

* Sorry, I missed something

I still had the `luamethod` call in there!

* Add getters

* Remove extra line

* Remove useless variable

Please review again @nerzhul . Thanks!

* Satisfy nerzhul

7 years agoOnly use palette if param_type2 is correct
Dániel Juhász [Wed, 12 Apr 2017 23:24:00 +0000 (01:24 +0200)]
Only use palette if param_type2 is correct

7 years agoAdd documentation for map block format 27 (#5576)
Dániel Juhász [Thu, 13 Apr 2017 08:19:46 +0000 (10:19 +0200)]
Add documentation for map block format 27 (#5576)

7 years ago[CSM] Fix localplayer documentation (#5557)
Vincent Glize [Wed, 12 Apr 2017 21:05:01 +0000 (23:05 +0200)]
[CSM] Fix localplayer documentation (#5557)

7 years agoFix inability to change metadata using stack:to_table() (#5547)
numberZero [Wed, 12 Apr 2017 14:51:07 +0000 (18:51 +0400)]
Fix inability to change metadata using stack:to_table() (#5547)

7 years agoFix fips_cipher_abort warning and other duplicate macros
Loic Blot [Wed, 12 Apr 2017 07:05:27 +0000 (09:05 +0200)]
Fix fips_cipher_abort warning and other duplicate macros

7 years ago[CSM] Allow escaping chatcommands and add missing calls to gettext. (#5565)
red-001 [Tue, 11 Apr 2017 21:35:25 +0000 (22:35 +0100)]
[CSM] Allow escaping chatcommands and add missing calls to gettext. (#5565)

7 years agoReplace occurrence of luaL_reg in l_localplayer (#5566)
t0ny2 [Tue, 11 Apr 2017 17:29:24 +0000 (18:29 +0100)]
Replace occurrence of luaL_reg in l_localplayer (#5566)

Related to commit 41c5483. Replace a final occurrence of luaL_reg in
src/script/lua_api/l_localplayer.cpp

7 years agoSneak glitch: Detect ledge for 2-node climb-up
paramat [Thu, 6 Apr 2017 14:58:12 +0000 (15:58 +0100)]
Sneak glitch: Detect ledge for 2-node climb-up

Re-creates the old sneak-jump behaviour in new code.
Enabled by the 'sneak glitch' physics override.
When a ledge is detected the jump speed modifier is set to the larger
of 'physics override jump' and 1.3 to allow a 2-node climb-up.

An unexpected side-effect is the simple sneak ladder working smoothly.

7 years ago[CSM] Use more gettext (#5553)
red-001 [Mon, 10 Apr 2017 19:14:00 +0000 (20:14 +0100)]
[CSM] Use more gettext (#5553)

7 years ago[CSM] Move `.list_players` and `.disconnect` to builtin. (#5550)
red-001 [Mon, 10 Apr 2017 19:13:20 +0000 (20:13 +0100)]
[CSM] Move `.list_players` and `.disconnect` to builtin. (#5550)

7 years agoClang-format fix for Android
Loïc Blot [Mon, 10 Apr 2017 07:40:06 +0000 (09:40 +0200)]
Clang-format fix for Android

7 years agoClang-format styles fixes since previous commit
Loïc Blot [Mon, 10 Apr 2017 07:17:53 +0000 (09:17 +0200)]
Clang-format styles fixes since previous commit

7 years agoClang format: fix LINT on old PR which doesn't have LINT enabled
Loic Blot [Mon, 10 Apr 2017 06:05:03 +0000 (08:05 +0200)]
Clang format: fix LINT on old PR which doesn't have LINT enabled

7 years agoHard-coded undersampling.
number Zero [Thu, 12 Jan 2017 09:19:36 +0000 (12:19 +0300)]
Hard-coded undersampling.

Adds uniform undersampling for the 3D rendered scene. GUI elements
are not undersampled, resulting in better playability for users
with low-performance platforms with readable fonts and formspecs.

The undersampling setting can be set to 0 (disabled), 2, 3, 4 pixels
which translates into a resolution reduction of x4, x9 or x16, and
is significant.

7 years agoLocalPlayer api lua
Vincent Glize [Sat, 8 Apr 2017 10:26:45 +0000 (12:26 +0200)]
LocalPlayer api lua

7 years agoHardware coloring for itemstacks
Dániel Juhász [Fri, 10 Mar 2017 17:25:58 +0000 (18:25 +0100)]
Hardware coloring for itemstacks

Adds the possibility to colorize item stacks based on their metadata.

In the item/node definition you can specify palette (an image file)
and color (fallback color if the item has no palette or metadata).
Then you can add palette_index to the metadata.

Dropped itemstacks with different colors do not merge.

7 years agoMove chat command handling code from C++ to Lua (#5528)
red-001 [Sat, 8 Apr 2017 18:03:57 +0000 (19:03 +0100)]
Move chat command handling code from C++ to Lua (#5528)

7 years agoDocument that write_json will error on unserializable types. (#5539)
raymoo [Sat, 8 Apr 2017 08:42:59 +0000 (01:42 -0700)]
Document that write_json will error on unserializable types. (#5539)

Previously it was erroneously documented that it would save them as null.

7 years agoPrepare for Linux daily build packages (using Gitlab.com CI) (#5542)
Loïc Blot [Sat, 8 Apr 2017 08:19:07 +0000 (10:19 +0200)]
Prepare for Linux daily build packages (using Gitlab.com CI) (#5542)

* Prepare for Linux daily build packages (using Gitlab.com CI)

7 years agoReplace luaL_reg with luaL_Reg as recent LuaJIT dropped the Lua 5.0 compat (#5541)
Loïc Blot [Sat, 8 Apr 2017 07:28:37 +0000 (09:28 +0200)]
Replace luaL_reg with luaL_Reg as recent LuaJIT dropped the Lua 5.0 compat (#5541)

We are bundling Lua5.1 which has same macro

7 years agocode style fix on src/script/cpp_api/s_client.h
Loic Blot [Sat, 8 Apr 2017 06:45:58 +0000 (08:45 +0200)]
code style fix on src/script/cpp_api/s_client.h

7 years ago[CSM] Add event on_connect player API lua (#5540)
Vincent Glize [Sat, 8 Apr 2017 06:20:30 +0000 (08:20 +0200)]
[CSM] Add event on_connect player API lua (#5540)

* Add event on_connect player API lua

7 years agoFix cmake library default build problem since moving to lib/
Loic Blot [Fri, 7 Apr 2017 21:56:02 +0000 (23:56 +0200)]
Fix cmake library default build problem since moving to lib/

Also make Lua library check a cmake module

7 years agoPass clang-format on 14 trivial header files fixes
Loic Blot [Fri, 7 Apr 2017 21:22:00 +0000 (23:22 +0200)]
Pass clang-format on 14 trivial header files fixes

Also remove them from whitelist

7 years agoFix signed/unsigned conversion warning
rubenwardy [Fri, 7 Apr 2017 18:06:50 +0000 (19:06 +0100)]
Fix signed/unsigned conversion warning

There was no bug here (as I checked for negativeness),
however it's good to get rid of warnings.

7 years agoCavegen: Fix non-constant array initializer error for MSVC
SmallJoker [Fri, 7 Apr 2017 15:59:27 +0000 (17:59 +0200)]
Cavegen: Fix non-constant array initializer error for MSVC