oweals/minetest.git
10 years agoSpeed up removing a node (less block mesh updates).
RealBadAngel [Fri, 7 Nov 2014 20:52:43 +0000 (21:52 +0100)]
Speed up removing a node (less block mesh updates).

10 years agoFix dump() indentation with non-tab indents
ShadowNinja [Sat, 8 Nov 2014 17:48:05 +0000 (12:48 -0500)]
Fix dump() indentation with non-tab indents

10 years agoAdd last_login field to auth.txt
Ryan Newell [Wed, 8 Oct 2014 22:11:44 +0000 (17:11 -0500)]
Add last_login field to auth.txt

Also shortens some related code and adds more parameters to string.split.

10 years agoReplace setting unlimited_player_transfer_distance with player_transfer_distance
SmallJoker [Sat, 8 Nov 2014 13:35:55 +0000 (14:35 +0100)]
Replace setting unlimited_player_transfer_distance with player_transfer_distance

10 years agoAddress issues related to refactoring the_game
Craig Robbins [Mon, 3 Nov 2014 03:25:14 +0000 (13:25 +1000)]
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

10 years agoFix regression: mouse wheel couldn't scroll from last hotbar item to first
Kahrl [Sun, 2 Nov 2014 20:59:56 +0000 (21:59 +0100)]
Fix regression: mouse wheel couldn't scroll from last hotbar item to first

10 years agoCleanup and (mostly) document util/string.h and (very) minor refactoring
Craig Robbins [Sun, 2 Nov 2014 14:17:20 +0000 (00:17 +1000)]
Cleanup and (mostly) document util/string.h and (very) minor refactoring

Updated: Incorporated feedback from 'kahrl'
Updated: Moved MinetestApp::boolToCStr() from game.cpp into string.h renaming it bool_to_cstr()

10 years agoInclude mg_decoration.h, mg_ore.h from emerge.cpp to fix warnings
Kahrl [Sun, 2 Nov 2014 16:52:30 +0000 (17:52 +0100)]
Include mg_decoration.h, mg_ore.h from emerge.cpp to fix warnings

10 years agoFix unit tests failing if IPv6 not available
Craig Robbins [Sun, 2 Nov 2014 07:21:42 +0000 (17:21 +1000)]
Fix unit tests failing if IPv6 not available

See:
https://github.com/minetest/minetest/issues/1526
https://github.com/minetest/minetest/issues/793

10 years agoModified dtime calculation method in limitFps()
Craig Robbins [Sat, 1 Nov 2014 02:36:03 +0000 (12:36 +1000)]
Modified dtime calculation method in limitFps()

10 years agoRefactor the_game() to make it more understandable and maintainable.
Craig Robbins [Fri, 31 Oct 2014 12:13:04 +0000 (22:13 +1000)]
Refactor the_game() to make it more understandable and maintainable.

The following is a record of 31 commits before squashing:

Revert "Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism"

This reverts commit b49e5cfc7013cef7e9af79d17e04f7e7e4c377d4.

Basic reformatting with astyle
-- additional formatting will be modified, manually, as the need for it is encountered

Start "outlining" what a MinetestApp class might look like

Add MinetestApp::shutdown()

Converted class member functions to camelCase and created protos for new functions

First stage of connect to server done

Add get itemdefs/nodedefs/media code

Init clouds, camera, sky, init GUI, HUD

Input handling

Client events, camera, sound, draw

Fix wield hand getting stuck digging and add debug text back

Fix FPS

Added profiler graph back

Fix FPS issue
Need to work out what went wrong and clean up the copy/paste stuff

Annotate

Various:
Rewrote limitFps()
Limited scope of some variables

Jitter calcs

Reduce scope of objects

Move some stuff out of ::run and minor formatting cleanup

Scope reduction

Function splits

Removed old (broken) limitFps()

Added exception handling back

Fixed some formatting

Reverted commented out unit tests (uncommented them)

Slow clouds down on loading and media screens so the behaviour is like the original the_game()

Formatting/style (no functional changes)

Manually reapply upstream b49e5cf: Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism

Fixed silly errors on my part
Minor formatting cleanups

Removed strange differentiation in FPS limiting when loading
FPS limiting was done differently if cloud_menu_background was true, which does not make sense

Cleaning up

Add some comments

10 years agoSplit up mapgen.cpp
kwolekr [Sat, 1 Nov 2014 17:16:23 +0000 (13:16 -0400)]
Split up mapgen.cpp

10 years agoFix erroneous lua_pop parameter
kwolekr [Thu, 30 Oct 2014 20:23:48 +0000 (16:23 -0400)]
Fix erroneous lua_pop parameter

10 years agoFix uninitialized variable warning 1781/head
kwolekr [Thu, 30 Oct 2014 06:53:20 +0000 (02:53 -0400)]
Fix uninitialized variable warning

10 years agomapgen: Resolve nodes in ctor rather than makeChunk
kwolekr [Thu, 30 Oct 2014 06:29:37 +0000 (02:29 -0400)]
mapgen: Resolve nodes in ctor rather than makeChunk

10 years agoCheck minetest.hud_change() parameters on conversion (Fix #1714)
kwolekr [Thu, 30 Oct 2014 04:11:46 +0000 (00:11 -0400)]
Check minetest.hud_change() parameters on conversion (Fix #1714)

10 years agoFix bug introduced by me (Zeno)
Craig Robbins [Wed, 29 Oct 2014 07:47:13 +0000 (17:47 +1000)]
Fix bug introduced by me (Zeno)

10 years agoAdd option to enable mesh caching, add wallmounted for meshes.
RealBadAngel [Tue, 28 Oct 2014 07:02:28 +0000 (08:02 +0100)]
Add option to enable mesh caching, add wallmounted for meshes.

10 years agoAdded names colours and refactored parseColorString()
Craig Robbins [Wed, 29 Oct 2014 06:40:55 +0000 (16:40 +1000)]
Added names colours and refactored parseColorString()

10 years agoRefactor decoration-related code
kwolekr [Wed, 29 Oct 2014 05:54:11 +0000 (01:54 -0400)]
Refactor decoration-related code

Split up ModApiMapgen::l_register_decoration()
Define and make use of CONTAINS() and ARRLEN() macros

10 years agoFix various indentation issues
PenguinDad [Tue, 28 Oct 2014 19:13:14 +0000 (20:13 +0100)]
Fix various indentation issues

10 years agoFix #1733: An unhandled exception occurred: GetPeer: Peer not found (possible timeout)
Craig Robbins [Sun, 26 Oct 2014 05:32:49 +0000 (15:32 +1000)]
Fix #1733: An unhandled exception occurred: GetPeer: Peer not found (possible timeout)

10 years agoAdd notice when only minimal is installed
rubenwardy [Thu, 16 Oct 2014 18:23:02 +0000 (19:23 +0100)]
Add notice when only minimal is installed

10 years agoAdd NodeResolver documentation
kwolekr [Tue, 28 Oct 2014 06:18:48 +0000 (02:18 -0400)]
Add NodeResolver documentation

Set content to fallback on AddNode failure
Consider node list requests with no results as failed

10 years agoPrevent invalid memory access under failure conditions
kwolekr [Tue, 28 Oct 2014 04:18:53 +0000 (00:18 -0400)]
Prevent invalid memory access under failure conditions

10 years agoChange license of noise implementation to Simplified BSD
kwolekr [Tue, 28 Oct 2014 01:17:07 +0000 (21:17 -0400)]
Change license of noise implementation to Simplified BSD

10 years agoAdd support for eased 3d noise
kwolekr [Mon, 27 Oct 2014 06:02:38 +0000 (02:02 -0400)]
Add support for eased 3d noise

10 years agoAdd NodeResolver and clean up node name -> content ID resolution system
kwolekr [Wed, 8 Oct 2014 19:28:14 +0000 (15:28 -0400)]
Add NodeResolver and clean up node name -> content ID resolution system

10 years agoRemove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism
Kahrl [Fri, 24 Oct 2014 14:22:05 +0000 (16:22 +0200)]
Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism

10 years agoRemove remenants of mob code
Pavel Puchkin [Thu, 23 Oct 2014 19:17:47 +0000 (22:17 +0300)]
Remove remenants of mob code

Since minetest has no mobs within the core anymore, I suppose these
settings and code should go. Any mod that uses `minetest.setting_getbool`
will work with no problem since the default return value is `false`.

10 years agoFix syntax error in Japanese translation
Rui [Thu, 23 Oct 2014 11:15:26 +0000 (20:15 +0900)]
Fix syntax error in Japanese translation

10 years agoFix broken plantlike drawtype.
RealBadAngel [Tue, 21 Oct 2014 21:06:12 +0000 (23:06 +0200)]
Fix broken plantlike drawtype.

10 years agoAdd Indonesian Language
srifqi [Mon, 20 Oct 2014 10:34:21 +0000 (17:34 +0700)]
Add Indonesian Language

10 years agoTranslated using Weblate (Japanese)
Rui [Mon, 13 Oct 2014 09:03:48 +0000 (18:03 +0900)]
Translated using Weblate (Japanese)

10 years agoSearch for subgames using $MINETEST_SUBGAME_PATH.
David Thompson [Sat, 6 Sep 2014 17:21:46 +0000 (13:21 -0400)]
Search for subgames using $MINETEST_SUBGAME_PATH.

10 years agoRecalculate normals for cached meshes.
RealBadAngel [Tue, 21 Oct 2014 03:12:15 +0000 (05:12 +0200)]
Recalculate normals for cached meshes.

Check if mesh is here before adding to meshcollector.

Fix deleting the meshes.

10 years agoFix some indentation in nodedef.cpp
Kahrl [Mon, 20 Oct 2014 14:11:38 +0000 (16:11 +0200)]
Fix some indentation in nodedef.cpp

10 years agoFix memory leak caused by mesh nodes (and nodeboxes)
Kahrl [Mon, 20 Oct 2014 14:11:00 +0000 (16:11 +0200)]
Fix memory leak caused by mesh nodes (and nodeboxes)

10 years agoCustom collision boxes node property.
RealBadAngel [Sat, 18 Oct 2014 16:46:16 +0000 (18:46 +0200)]
Custom collision boxes node property.

10 years agoUpdate the cURL the buildbot uses to 7.38.0
sfan5 [Mon, 6 Oct 2014 11:39:03 +0000 (13:39 +0200)]
Update the cURL the buildbot uses to 7.38.0

10 years agoVarious uninitialised variable fixes
Craig Robbins [Tue, 7 Oct 2014 07:01:07 +0000 (17:01 +1000)]
Various uninitialised variable fixes

sky.cpp: m_bgcolor.getAlpha() was being used before initialised

mesh related: m_highlight_mesh_color was being used uninitialised

10 years agoMove buttons upwards to accommodate for new configure keys button in the
Craig Robbins [Thu, 16 Oct 2014 07:47:54 +0000 (17:47 +1000)]
Move buttons upwards to accommodate for new configure keys button in the
pause menu

10 years agoAdd meshnode drawtype.
RealBadAngel [Wed, 15 Oct 2014 02:13:53 +0000 (04:13 +0200)]
Add meshnode drawtype.

10 years agoMake sure PRECISION_SECONDS corresponds to the integer 0
Kahrl [Thu, 9 Oct 2014 09:40:33 +0000 (11:40 +0200)]
Make sure PRECISION_SECONDS corresponds to the integer 0

10 years agoFix unit reported by TimeTaker (was always ms)
Kahrl [Thu, 9 Oct 2014 09:15:03 +0000 (11:15 +0200)]
Fix unit reported by TimeTaker (was always ms)

10 years agoChange topleft text when switching subgames, fixes #1728
Kahrl [Thu, 9 Oct 2014 06:58:47 +0000 (08:58 +0200)]
Change topleft text when switching subgames, fixes #1728

10 years agoFix use of unitialized variables in mouse button handling
Craig Robbins [Wed, 8 Oct 2014 02:40:14 +0000 (12:40 +1000)]
Fix use of unitialized variables in mouse button handling

10 years agoAdd in-game key change menu
Mushiden [Sun, 21 Sep 2014 03:21:11 +0000 (00:21 -0300)]
Add in-game key change menu

10 years agoAdd a better error message when trying to teleport another player without bring privi...
LeMagnesium [Sun, 5 Oct 2014 15:35:10 +0000 (17:35 +0200)]
Add a better error message when trying to teleport another player without bring privileges

10 years agoFix object reference pushing functions when called from coroutines
ShadowNinja [Thu, 2 Oct 2014 19:58:13 +0000 (15:58 -0400)]
Fix object reference pushing functions when called from coroutines

10 years agoAdd [colorize modifier 1711/head
BlockMen [Fri, 3 Oct 2014 04:11:21 +0000 (06:11 +0200)]
Add [colorize modifier

10 years agoFix special tile backspace culling
kwolekr [Fri, 3 Oct 2014 15:20:29 +0000 (11:20 -0400)]
Fix special tile backspace culling

10 years agoBugfix: dont highlight (0,0,0) when theres no node pointed.
RealBadAngel [Fri, 3 Oct 2014 14:03:14 +0000 (16:03 +0200)]
Bugfix: dont highlight (0,0,0) when theres no node pointed.

10 years agoFix broken plantlike drawtype.
RealBadAngel [Fri, 3 Oct 2014 13:33:32 +0000 (15:33 +0200)]
Fix broken plantlike drawtype.

10 years agoFix misc. style issues
kwolekr [Fri, 3 Oct 2014 07:49:06 +0000 (03:49 -0400)]
Fix misc. style issues

10 years agoClean up nodedef.cpp
kwolekr [Fri, 3 Oct 2014 07:16:43 +0000 (03:16 -0400)]
Clean up nodedef.cpp

10 years agoAdd better documentation for alternate drop definition to lua_api.txt.
Diego Martínez [Thu, 2 Oct 2014 16:30:32 +0000 (13:30 -0300)]
Add better documentation for alternate drop definition to lua_api.txt.

10 years agoAdd optional framed glasslike drawtype 1694/head
BlockMen [Sat, 27 Sep 2014 16:16:26 +0000 (18:16 +0200)]
Add optional framed glasslike drawtype

10 years agoMake players check inventory modification properly 1535/head
ShadowNinja [Tue, 2 Sep 2014 16:53:20 +0000 (12:53 -0400)]
Make players check inventory modification properly

10 years agoOnly set player dirty flag if values change
ShadowNinja [Fri, 29 Aug 2014 00:22:19 +0000 (20:22 -0400)]
Only set player dirty flag if values change

10 years agoSimplify player modification checks
ShadowNinja [Sun, 3 Aug 2014 20:19:07 +0000 (16:19 -0400)]
Simplify player modification checks

10 years agoFix android build using hardcoded path for data instead of using the one fetched...
sapier [Wed, 1 Oct 2014 20:18:29 +0000 (22:18 +0200)]
Fix android build using hardcoded path for data instead of using the one fetched by android api on init.
Fix android missing version information

10 years agoupdatepo.sh: Find all files
Diego Martínez [Tue, 30 Sep 2014 13:57:28 +0000 (10:57 -0300)]
updatepo.sh: Find all files

10 years agoUse round if falling node is misplaced
SmallJoker [Thu, 24 Jul 2014 09:51:07 +0000 (11:51 +0200)]
Use round if falling node is misplaced

Fixes: http://i.imgur.com/arAWw1i.png (middle-right)

10 years agoStandardize tooltip row detection
BlockMen [Sun, 28 Sep 2014 08:10:43 +0000 (10:10 +0200)]
Standardize tooltip row detection

10 years agoFix multilined description in tooltips (fixes #1688)
BlockMen [Sun, 28 Sep 2014 06:44:05 +0000 (08:44 +0200)]
Fix multilined description in tooltips (fixes #1688)

10 years agoFix totally messed up 3d modes interlaced/topbottom/sidebyside
sapier [Thu, 25 Sep 2014 18:33:17 +0000 (20:33 +0200)]
Fix totally messed up 3d modes interlaced/topbottom/sidebyside

10 years agoFix chat lines not word wrapped correct
sapier [Thu, 25 Sep 2014 17:54:02 +0000 (19:54 +0200)]
Fix chat lines not word wrapped correct

10 years agoFix command line parsing
Kahrl [Mon, 22 Sep 2014 09:02:26 +0000 (11:02 +0200)]
Fix command line parsing

Broken by 6bc4cad0eddd7a7cf593ca1471599e2d75727379, e.g.
  minetest --worldname world
would be parsed as
  minetest --worldname --worldname

10 years agoFix build with redis
ShadowNinja [Mon, 22 Sep 2014 01:00:20 +0000 (21:00 -0400)]
Fix build with redis

Broken by 6bc4cad0eddd7a7cf593ca1471599e2d75727379 because database-redis.h
depended on settings.h to include filesys.h.

10 years agoAdd firelike drawtype
TriBlade9 [Fri, 19 Sep 2014 23:37:40 +0000 (07:37 +0800)]
Add firelike drawtype

10 years agoUpdate default of preload_item_visuals in minetest.conf.example
ShadowNinja [Sun, 21 Sep 2014 19:49:33 +0000 (15:49 -0400)]
Update default of preload_item_visuals in minetest.conf.example

10 years agoMake dump's output prettier 1503/head
ShadowNinja [Sun, 20 Jul 2014 03:39:23 +0000 (23:39 -0400)]
Make dump's output prettier

Changes:
  * Indentation with tabs by default.
  * Array keys dumped without "[i] = " prefix.
  * String keys that are valid identifiers aren't enclosed in '[""]'.
  * Basic support for multiple references (as specified in the comment).

10 years agoFix GCC reorder warning
ShadowNinja [Sun, 21 Sep 2014 19:18:43 +0000 (15:18 -0400)]
Fix GCC reorder warning

Caused by a020d1b653f94fbcaac06c15f9dbab4521fda355.

10 years agoAdd inventory right click drag and drop
sruz25 [Fri, 19 Sep 2014 13:27:48 +0000 (15:27 +0200)]
Add inventory right click drag and drop

10 years agoUpdate ja/minetest.po
Rui914 [Sun, 21 Sep 2014 04:56:18 +0000 (13:56 +0900)]
Update ja/minetest.po

10 years agoRevert the icon name in minetest.desktop
ShadowNinja [Sun, 21 Sep 2014 18:37:19 +0000 (14:37 -0400)]
Revert the icon name in minetest.desktop

This reverts commit 7993696fc4b59354974059e1f8d6b3063d316411, which broke the
icon on most distributions.

10 years agoFix locking bugs and make inventory deserialization errors more specific
ShadowNinja [Fri, 12 Sep 2014 00:12:52 +0000 (20:12 -0400)]
Fix locking bugs and make inventory deserialization errors more specific

10 years agoSplit settings into seperate source and header files
ShadowNinja [Thu, 11 Sep 2014 22:22:05 +0000 (18:22 -0400)]
Split settings into seperate source and header files

This also cleans up settings a bit

10 years agoFix Settings locking
ShadowNinja [Thu, 11 Sep 2014 18:23:04 +0000 (14:23 -0400)]
Fix Settings locking

10 years agoUse const references for Settings methods
ShadowNinja [Thu, 11 Sep 2014 17:42:21 +0000 (13:42 -0400)]
Use const references for Settings methods

Also check for (this == &other) before locking mutexes.

10 years agoMake getters of the Settings class const
Craig Robbins [Thu, 11 Sep 2014 12:49:25 +0000 (22:49 +1000)]
Make getters of the Settings class const

Also removed 2 unused functions.

10 years agoAllow taking screenshots of formspecs and move message to chat 1672/head
BlockMen [Sun, 21 Sep 2014 00:23:55 +0000 (02:23 +0200)]
Allow taking screenshots of formspecs and move message to chat

10 years agoUpdate .mailmap
sfan5 [Sun, 21 Sep 2014 17:01:43 +0000 (19:01 +0200)]
Update .mailmap

10 years agoFix wrong video_driver setting when changing in mainmenu
SmallJoker [Thu, 4 Sep 2014 18:34:36 +0000 (20:34 +0200)]
Fix wrong video_driver setting when changing in mainmenu

Fixes issue with direct3d(8|9)

10 years agoAdd compression API 1633/head
ShadowNinja [Sun, 14 Sep 2014 21:42:08 +0000 (17:42 -0400)]
Add compression API

10 years ago.travis.yml: fix possible issues
Mikaela Suomalainen [Fri, 19 Sep 2014 22:05:14 +0000 (01:05 +0300)]
.travis.yml: fix possible issues

* use `pool.sks-keyservers.net` as keyserver as it's often more reliable
than `keyserver.ubuntu.com` as you can see with Google.
* put script to multiple lines
    * build out-of-source
    * use two CPUs
        * make seems to fail if $(nproc) is used unlike WeeChat. ZNC has
          same issue.
* mark build as failed if one job fails immediately without waiting for
all builds to finish.
    * this doesn't stop jobs that didn't finish before build was marked
    failed.

10 years agoRevert "Small changes to French translation (Petites modifications mineures)"
Kahrl [Sat, 20 Sep 2014 12:02:00 +0000 (14:02 +0200)]
Revert "Small changes to French translation (Petites modifications mineures)"

This reverts commit 4432e982616cd871cf1ae5c5706da09e98077433.

Exception: "Nom / Mot de Passe" --> "Nom / Mot de passe"

10 years agoFixed french vocabulary/grammar errors
kilbith [Fri, 19 Sep 2014 11:45:47 +0000 (13:45 +0200)]
Fixed french vocabulary/grammar errors

Notes (in french) :

72 msgstr "Ok" : OK est un acronyme, pas un nom, donc majuscules.
193 msgstr "Feuilles transparentes" : quel type de feuilles ? Trop vague.
213 msgstr "Filtrage anisotropique" : oxymore.
229 msgstr "Précharger les visuels d'objets" : doit être écourté (dépasse trop la bordure grisée)

10 years agoSmall changes to French translation (Petites modifications mineures)
mimilus [Sat, 5 Apr 2014 23:29:45 +0000 (01:29 +0200)]
Small changes to French translation (Petites modifications mineures)

10 years agoAdd a .mailmap file
Stefan Beller [Wed, 17 Sep 2014 11:46:37 +0000 (13:46 +0200)]
Add a .mailmap file

So I was checking out minetest and wondered how many developers there are
and how they development community is setup and such, so I decided to have
a look at the git shortlog. There were lot of double entries for some
persons, so it was harder to estimate the number of people involved.

By adding a .mailmap file, the overview of the authors is much improved
For details on the .mailmap file, see
https://www.kernel.org/pub/software/scm/git/docs/git-shortlog.html

Signed-off-by: Stefan Beller <stefanbeller@gmail.com>
10 years agoMake config compatible with C++11
donat_b [Sat, 20 Sep 2014 09:06:09 +0000 (13:06 +0400)]
Make config compatible with C++11

10 years agoChange default halo.png for better visibility.
RealBadAngel [Fri, 19 Sep 2014 15:46:59 +0000 (17:46 +0200)]
Change default halo.png for better visibility.

10 years agoUse configured bind_address for HTTPFetch 1634/head
ShadowNinja [Mon, 15 Sep 2014 00:58:21 +0000 (20:58 -0400)]
Use configured bind_address for HTTPFetch

10 years agoReduce indentation of HTTPFetchOngoing
ShadowNinja [Mon, 15 Sep 2014 00:46:45 +0000 (20:46 -0400)]
Reduce indentation of HTTPFetchOngoing

Also clean up some related things.

10 years agoAdded configurable selectionbox width. Min width = 1, Max = 5
TriBlade9 [Wed, 17 Sep 2014 10:02:40 +0000 (18:02 +0800)]
Added configurable selectionbox width. Min width = 1, Max = 5

10 years agoBugfix: don't highlight air nodes.
RealBadAngel [Thu, 18 Sep 2014 07:56:27 +0000 (09:56 +0200)]
Bugfix: don't highlight air nodes.

10 years agoNode highlighting.
RealBadAngel [Tue, 16 Sep 2014 10:38:37 +0000 (12:38 +0200)]
Node highlighting.

10 years agoFix typo in comment in chat.cpp
Kahrl [Sun, 14 Sep 2014 13:37:27 +0000 (15:37 +0200)]
Fix typo in comment in chat.cpp

10 years agoSimplify and optimize schematic replacements
ShadowNinja [Fri, 12 Sep 2014 02:25:06 +0000 (22:25 -0400)]
Simplify and optimize schematic replacements