aboutsummaryrefslogtreecommitdiff
path: root/src/client/client.cpp
AgeCommit message (Collapse)Author
2022-06-07Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2022-06-05Add register dialog to separate login/register (#12185)rubenwardy
New users find Minetest's account system confusing. This change moves username/password to a new dialog, with login and register buttons added to the Join Game tab. The old registration confirmation dialog is removed in favour of the new dialog. Fixes #8138
2022-06-02Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2022-05-29Make sure real disconnect reason isn't overwrittensfan5
bug introduced in 2f32044273d107e82fb1c35d4a0f616fa480cdf0
2022-05-26Force-update shadows when the world is changed (#12364)x2048
2022-05-22Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2022-05-21Don't ignore server disconnects in client codesfan5
If the server stops talking to us without saying bye we should actually end the in-game session with an error message.
2022-05-17Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2022-05-04guiScalingFilter: Fix most memory leaks (#12256)SmallJoker
Calls to the cache function ended up creating a new texture regardless whether the texture is already cached.
2022-04-28Refactor local time getter functions (#12221)Oblomov
This commit introduces mt_localtime() in src/gettime.h, a wrapper around the OS-specific thread-safe versions of localtime() (resp. localtime_s on Windows and localtime_r in other systems). Per the Open Group recommendation, «portable applications should call tzset() explicitly before using ctime_r() or localtime_r() because setting timezone information is optional for those functions», so we also do a one-shot call of tzset() (_tzset() on Windows to avoid warning C4996). The function is used to replace the localtime() calls in getTimestamp() and makeScreenshot(). (The only reminaing call to localtime() in the tree now is the one in the local copy of the Lua source code.)
2022-01-27Automatically migrate client mod storage (#11960)Jude Melton-Houghton
2022-01-09Restore pass-through of direction keys (#11924)sfan5
This moves relevant code into the PlayerControl class and gets rid of separate keyPressed variable.
2022-01-07Use a database for mod storage (#11763)Jude Melton-Houghton
2021-12-29Add more neighbors on mesh update (#6765)Vitaliy
2021-12-01Network: Delete copy constructor and use std::move instead (#11642)SmallJoker
This is a follow-up change which disables class copies where possible to avoid unnecessary memory movements.
2021-09-19Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2021-09-11Make sure relevant std::stringstreams are set to binarysfan5
2021-09-09Dynamic_Add_Media v2 (#11550)sfan5
2021-08-19Add fwgettext util functionrubenwardy
2021-07-31Mods: Combine mod loading checks and deprection logging (#11503)SmallJoker
This limits the logged deprecation messages to the mods that are loaded Unifies the mod naming convention check for CSM & SSM
2021-07-17CSM: Do not index files within hidden directoriesSmallJoker
CSM would previously scan for files within .git or .svn directories, and also special files such as .gitignore
2021-05-13Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2021-05-13Add minetest.get_send_speedElias Fleckenstein
2021-05-06fix: extractZipFile is not part of Client but more generic.Loic Blot
This solve a crash from mainmenu while extracting the zip
2021-05-03fix: some code tidy about includes & irr namespacesLoic Blot
2021-05-03refacto: remove get_gui_env & draw_load_screen from RenderingEngine singletonLoic Blot
2021-05-03fix: don't use RenderingEngine singleton when it's possibleLoic Blot
2021-05-03refacto: RenderingEngine::get_scene_manager() is now not callable from singletonLoic Blot
This permits to make evidence that we have some bad object passing on various code parts. I fixed majority of them to reduce the scope of passed objects Unfortunately, for some edge cases i should have to expose ISceneManager from client, this should be fixed in the future when our POO will be cleaner client side (we have a mix of rendering and processing in majority of the client objects, it works but it's not clean)
2021-05-03refacto: protect some RenderingEngine::get_scene_managerLoic Blot
* protect it from Camera, Sky, ClientMap object calls * rename Game::sky to Game::m_sky
2021-05-03refacto: hide mesh_cache inside the rendering engineLoic Blot
This permit cleaner access to meshCache and ensure we don't access to it from all the code
2021-05-03refacto: add RenderingEngine::cleanupMeshCacheLoic Blot
This permits to prevent client to own the mesh cache cleanup logic. It's better in RenderingEngine
2021-05-03refacto: rendering engine singleton removal step 1 (filesystem)Loic Blot
Make the RenderingEngine filesystem member non accessible from everywhere This permits also to determine that some lua code has directly a logic to extract zip file. Move this logic inside client, it's not the lua stack role to perform a such complex operation Found also another irrlicht <1.8 compat code to remove
2021-05-03fix: drop old irrlicht <1.8 compat on Client::loadMediaLoic Blot
2021-03-26Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2021-03-12Avoid unnecessary copies during media/mesh loadingsfan5
2021-03-12Handle mesh load failure without crashingsfan5
2021-02-10Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2021-02-02Drop wide/narrow conversion functionssfan5
The only valid usecase for these is interfacing with OS APIs that want a locale/OS-specific multibyte encoding. But they weren't used for that anywhere, instead UTF-8 is pretty much assumed when it comes to that. Since these are only a potential source of bugs and do not fulfil their purpose at all, drop them entirely.
2021-01-31Readd Client::sendPlayerPos optimization (was part of 81c7f0a)sfan5
This reverts commit b49dfa92ce3ef37b1b73698906c64191fb47e226.
2021-01-22Remove dead code (#10845)rubenwardy
2020-11-28Merged MinetestElias Fleckenstein
2020-11-04Revert "Make Lint Happy"Elias Fleckenstein
This reverts commit ad148587dcf5244c2d2011dba339786c765c54c4.
2020-11-04Make Lint HappyElias Fleckenstein
2020-10-19Decouple entity minimap markers from nametags replacing with show_on_minimap ↵sfan5
property (#10443)
2020-10-05Improved X-Ray, added AutoEjectElias Fleckenstein
2020-10-05Remove unused functions reported by cppcheck (#10463)SmallJoker
Run unused functions reported by cppcheck This change removes a few (but not all) unused functions. Some unused helper functions were not removed due to their complexity and potential of future use.
2020-10-04Improved TracersElias Fleckenstein
2020-10-04Added AutoSneak and improved X-Ray MapBlock updatingElias Fleckenstein
2020-10-04Added Tracers, NoSlow and NoForceRotate; GUI Colors changedElias Fleckenstein
2020-10-04Minimap as HUD element with API controlPierre-Yves Rollo
Features: * Define Minimap available modes (surface/radar, scale) from Lua, using player:set_minimap_modes() * New HUD elements for displaying minimap with custom size and placing * New minimap mode for displaying a texture instead of the map