Loic Blot
5e4c5bfb4f
Fix issue #2441 : crash on respawn, since a conversion std::list to std::vector on Environment.cpp
...
* Also change some std::list to std::vector for ClientMap::renderMap
* Remove disabled code in ClientMap::renderMap, disabled since a long time
2015-03-05 15:36:20 +01:00
Loic Blot
188c15c3d8
Replace std::list to std::vector into tile.cpp (m_texture_trash) and move tile.hpp to src/client/
2015-03-05 11:59:40 +01:00
Loic Blot
d2c315f6c8
Server.cpp Use std::list instead of std::vector for playSound, fillMediaCache, sendRequestedMedia, sendMediaAnnouncement and related functions
2015-03-05 11:40:04 +01:00
Loic Blot
c4fd521797
Server::AsyncRunStep: buffered_messages now uses std::vector instead of std::list. * sendRemoveNode and sendAddNodes are also converted as a side effect
2015-03-05 11:23:54 +01:00
BlockMen
6901d26cf8
Fix some rendering glitches
...
- Fixes particle draworder
- Fixes nodehighlighting
2015-03-05 10:51:18 +01:00
Loic Blot
b6a8f1e7c4
Performance improvement: Use std::list instead of std::vector for request_media, Server::getModNames, Environment::m_simple_objects.
...
* Also remove unused Server::m_modspaths
2015-03-05 10:44:48 +01:00
Loic Blot
1186245881
Remove Queue class which uses std::list and use native std::queue
2015-03-05 16:49:51 +10:00
Craig Robbins
bc8e1b45b1
Fix memory leak in MapgenV6
2015-03-05 15:17:37 +10:00
paramat
e5522808f8
Cavegen, mgv5: Cleanup code
...
Conf.example: Update mgv5 mapgen params
Mgv7: Lava caves only below -256
2015-03-04 23:53:58 +00:00
Loic Blot
fce90c5a92
Use std::vector instead of std::list in StaticObjectList and MutexedMap::getValues()
2015-03-04 17:22:37 +01:00
Loic Blot
bf4504a459
ABMHandler and player_collisions use sequential read/write. Switch from std::list to std::vector
...
* Also remove dead code Map::unloadUnusedData which is dead since a long time
2015-03-04 17:02:36 +01:00
Loic Blot
a921830829
ClientInterface::getClientIDs doesn't need a std::list. Use a std::vector for better perfs
2015-03-04 16:30:24 +01:00
Loic Blot
fa9145128a
We always know playerSAO when calling SendInventory. Using it instead of searching it via peer_id
2015-03-04 15:28:33 +01:00
SmallJoker
ae0d39fcbc
Radius parameter for /deleteblocks here
2015-03-05 00:10:53 +10:00
Loic Blot
61ffd65f26
Send Position packet on event, don't check it at each AsyncRunStep.
...
* This permit to cleanup the player checking loop
2015-03-04 12:19:26 +01:00
Loic Blot
705390e1f4
ASyncRunStep doesn't need to lock when do setTimeOfDaySpeed.
...
* setTimeOfDaySpeed already lock a mutex when modify the value, we don't need to lock all environment.
* add a fine grain lock for getTimeOfDay and setTimeOfDay to solve environment multithread modifications on this value
2015-03-04 11:46:31 +01:00
Loic Blot
c468ca4821
Send Inventory packet on event, don't check it at each AsyncRunStep.
...
* Call UpdateCrafting into SendInventory because this functions is only called before SendInventory
* Use Player* instead of peer_id for UpdateCrafting because SendInventory already has the Player* pointer, then don't loop for searching Player* per peer_id
* m_env_mutex don't need to be used with this modification because it's already locked before the calls
2015-03-04 11:29:39 +01:00
Loic Blot
e14b94eb22
Remove unused m_wielded_item_not_sent
2015-03-03 17:36:54 +01:00
Loic Blot
ee42254b45
Send Breath packet on event, don't check it at each AsyncRunStep
2015-03-03 16:33:20 +01:00
Loic Blot
14e866c4a6
Send Player HP when setHP (or a setHP caller) is called instead of looping and testing the state change.
2015-03-03 16:06:04 +01:00
Miguel Almeida
c43eb29895
Fix occlusion
2015-03-02 12:09:02 +01:00
Craig Robbins
962db37734
Fix narrow_to_wide_c (ANDROID)
...
* Ensure converted string is NUL terminated
* Restore logic to that used prior to 9e2a9b5
2015-03-02 13:16:01 +10:00
paramat
1bfc5a19e6
Mgv6: Add heightmap. Do not make large caves that are entirely above ground
2015-03-02 02:13:43 +00:00
est31
ef9fd92918
Add /setpassword and /clearpassword logging
2015-02-27 23:00:28 +01:00
mahmutelmas06
e6c4403ff3
Add Turkish language
2015-02-27 15:52:50 +01:00
Rui
0f4d1553e5
Update minetest.po
2015-02-27 15:47:48 +01:00
Loic Blot
28feef926f
Revert "Fix particles draworder" (issue #2388 )
...
This reverts commit c09d026f0561ee3c6db821a7e193716f724a0e4a.
2015-02-27 14:15:24 +01:00
Craig Robbins
102e0ee00d
Change find_surface_nodes_in_area to find_nodes_in_area_under_air
2015-02-27 21:42:00 +10:00
Loic Blot
0d823b300e
Add find_surface_nodes_in_area LUA call which permit to only get the nodes which touch air. This permit to massively improve performance for mods like plantlife
2015-02-27 21:34:33 +10:00
rubenwardy
01954fdc73
Wrap lines longer than 80 characters in lua_api.txt ...and minor formating changes
2015-02-27 13:41:17 +10:00
Craig Robbins
6146989309
Fix minor memory leak (Android)
2015-02-27 13:40:27 +10:00
paramat
a5bcca8305
Biome API: Re-calculate biome at every surface in a mapchunk column
2015-02-26 03:35:25 +00:00
rubenwardy
d4cb605659
Add camera smoothing and cinematic mode (F8)
2015-02-25 15:34:33 +01:00
Loic Blot
35af6ccbba
Rename --do-unittests to --run-unittests as @Zeno- and @sfan5 requested
2015-02-24 08:56:52 +01:00
gregorycu
1622c43591
Optimise MapBlockMesh related functions
...
Directely or indirectly optimises the following functions:
* MapBlockMesh::MapBlockMesh
* MapBlockMesh::getTileInfo
* MapBlockMesh::makeFastFace
* MapBlockMesh::getSmoothLightCombined
2015-02-23 23:20:31 +10:00
Craig Robbins
45eb41c599
Fix wrapDegrees family of functions
...
wrapDegrees() (renamed to modulo360f)
wrapDegrees_0_360
wrapDegrees_180
Minor errors were present in previous versions; see issue #2328
2015-02-23 22:50:32 +10:00
4Evergreen4
27f1517fc3
Add src/network/CMakeFiles/ and src/client/CMakeFiles to gitignore
2015-02-23 16:50:28 +10:00
Kahrl
eb49a8d55e
Disallow object:remove() if the object is a player
...
Rebased by Zeno- (conflict in lua_api.txt)
2015-02-23 16:49:48 +10:00
ShadowNinja
c07611927c
Fix serialization of floating point numbers
2015-02-21 13:16:18 -05:00
Markus Koschany
b622bb55d0
Improve FindIrrlicht.cmake module
...
Linux distributions prefer to link against a shared version of the Irrlicht
engine instead of using embedded code copies of the same. Search for this
shared version first and use that but fall back to the static version if it
does not exist.
This also fixes https://github.com/minetest/minetest/issues/2163
2015-02-21 18:21:10 +01:00
kaeza
28fdc9575d
Add mod.conf file support This new file only permits to specify a mod name for now
2015-02-21 18:18:06 +01:00
Loic Blot
63fbfd1ad5
Fix android build
2015-02-21 17:37:48 +01:00
Loic Blot
12d7ac0fec
Fix some memory leaks on packet sending.
2015-02-21 17:27:31 +01:00
Loic Blot
2fd9ac5fe9
Move hex.h to util/
2015-02-21 14:32:35 +01:00
BlockMen
033c80a4d8
Fix particles draworder
2015-02-21 14:11:00 +01:00
Loic Blot
d311a338ac
Move sha1.hpp and base64.hpp to util/
2015-02-21 14:03:27 +01:00
BlockMen
e86ca8bee4
Use skin font for usernames ( fixes #2363 )
2015-02-21 13:31:42 +01:00
Loic Blot
1ee802b074
Use proper CMakeLists.txt for network and client directories
2015-02-21 11:51:12 +01:00
Rui
82ef6d2201
Update Japanese Translation
...
ok @Zeno- @nerzhul
2015-02-21 11:17:52 +01:00
Loic Blot
e329b0c079
Unit tests must be done at integration process.
...
* Remove --enable-unittests and --disable-unittests and add --do-unittests function
* --do-unittests function will exit 0 on success.
* minetest and minetestserver binaries are launched with --do-unittests in travis build.
2015-02-21 11:04:19 +01:00