aboutsummaryrefslogtreecommitdiff
path: root/src/client/game.cpp
AgeCommit message (Collapse)Author
2021-06-06Shadow mapping render pass (#11244)Liso
Co-authored-by: x2048 <codeforsmile@gmail.com>
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-03refacto: Hud: make driver, client, player, inventory, tsrc private & drop ↵Loic Blot
unused guienv also fix c_content.h, on client it includes the src/client/hud.h instead of src/hud.h, which leads to wrong file dependency on the lua stack
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: RenderingEngine is now better hiddenLoic Blot
* No more access to the singleton instance from everywhere (RenderingEngine::get_instance dropped) * RenderingEngine::get_timer_time is now non static * RenderingEngine::draw_menu_scene is now non static * RenderingEngine::draw_scene is now non static * RenderingEngine::{initialize,finalize} are now non static * RenderingEngine::run is now non static * RenderingEngine::getWindowSize now have a static helper. It was mandatory to hide the global get_instance access
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: 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-04-20Add a key to toggle map block bounds (#11172)Seth Traverse
It's often useful to know where the map block boundaries are for doing server admin work and the like. Adds three modes: single mapblock, range of 5, and disabled.
2021-04-05Don't apply connection timeout limit to locally hosted serverssfan5
fixes #11085
2021-04-05Game: Scale damage flash to max HPSmallJoker
The flash intensity is calculated proportionally to the maximal HP.
2021-03-31Irrlicht support code maintenancesfan5
2021-03-30Consistent title bar + render information in mainmenu (#10764)SmallJoker
2021-03-21Restore minimal normal texture support (for minimap shading)Vitaliy
2021-03-19Scale mouse/joystick sensitivity depending on FOV (#11007)Elias Åström
2021-03-09Use place_param2 client-side for item appearance & prediction (#11024)sfan5
2021-03-06Clean up ClientEvent hudadd/hudchange internalssfan5
2021-03-05Pause animations while game is paused (#10658)Vitaliy
Pauses all mesh animations while game is paused.
2021-02-26Fix hud_change and hud_remove after hud_add (#10997)savilli
2021-02-24Use "Aux1" key name consistently everywhereWuzzy
2021-02-08Pause menu: Fix segfault on u/down key inputJean-Patrick Guerrero
2020-12-24Fix some minor code issues all over the placesfan5
2020-12-19Fix some more joystick issues (#10624)Markus
2020-12-19Cleanup shader generation code (#10663)Vitaliy
Shader generation is a mess. This commit cleans some parts up, including dropping remains of HLSL support which was never actually implemented.
2020-11-29Input: Fix on_rightclick called when placing into airSmallJoker
2020-11-26Sky: support GLES2numzero
IrrLicht built-in shader is broken, have to write my own
2020-11-23Add sound to press event of some formspecs elements (#10402)Pierre-Yves Rollo
2020-11-09Joystick: Remap joystick-specific KeyTypes to generic onesMarkus Koch
According to the following table: * MOUSE_L -> DIG * MOUSE_R -> PLACE * SCROLL_UP -> HOTBAR_NEXT * SCROLL_DOWN -> HOTBAR_PREV This commit entirely removes the special KeyTypes used for joysticks. Support for the MOUSE KeyTypes had already been removed in the main game code without adapting the joystick code, breaking joystick input. This commit restores joystick functionality.
2020-10-21Fix Media... 0% on loading screen (#9478)Maksim
2020-10-17Periodically release all mesh HW buffers to avoid an Irrlicht bottleneck.Lars
2020-10-17Remove all bump mapping and parallax occlusion related code.Lars
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
2020-10-04Add First Person Attachments (#10360)Jordan Snelling
Fixes some other third person camera specific attachments. Implements a single new flag for entities to be forced visible in first person mode. Old mods do not need to be updated to use the new flag and are fully backwards compatible.
2020-10-03Reduce the FPS when the window is unfocused (#8837)HybridDog
2020-08-24Properly handle mod-errors in on_shutdownDesour
2020-08-15Allow binding dig, place actions to keys; remove LMB/RMB hardcodingANAND
Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
2020-07-27Play place_failed sound if occupied or cannot attach (#9486)Wuzzy
2020-07-14Add object crosshair, disable entity selectionboxes by default (#9523)LoneWolfHT
Adds new object crosshair base pack texture
2020-07-14Cleanup ClientLauncher structure (#10160)SmallJoker
Remove duplicated variables and unify the startup data into a new (inherited) struct.
2020-06-13Exposing the zoom key to Lua API (#9903)Lars Müller
Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com>
2020-06-09TouchScreenGUI: fix some bugs, cleanupMoNTE48
2020-05-27Value copy / allocation optimizations mostly in server, SAO and serialize codesfan5
2020-05-14Add chat_log_level setting (#9223)SmallJoker
Log all higher levels in LogOutputBuffer Move StreamLogOutput::logRaw to source file like LogOutputBuffer::logRaw for compiling speed
2020-05-11Add support for statbar “off state” icons (#9462)Wuzzy
This adds support for optional “off state” icons for statbars. “off state icons” can be used to denote the lack of something, like missing hearts or bubbles. Add "off state" textures to the builtin statbars. Co-authored-by: SmallJoker <mk939@ymail.com>
2020-05-07Server class code cleanups (#9769)Loïc Blot
* Server::overrideDayNightRatio doesn't require to return bool There is no sense to sending null player, the caller should send a valid object * Server::init: make private & cleanup This function is always called before start() and loads some variables which can be loaded in constructor directly. Make it private and call it directly in start * Split Server inventory responsibility to a dedicated object This splits permit to found various historical issues: * duplicate lookups on player connection * sending inventory to non related player when a player connects * non friendly lookups on detached inventories ownership This reduce the detached inventory complexity and also increased the lookup performance in a quite interesting way for servers with thousands of inventories.
2020-05-05Fix broken client if openal cannot be opened (#9804)Loïc Blot
2020-05-05Sky API: Rename *_tint to fog_*_tint for consistencySmallJoker
2020-04-25Ensure game is shutdown if server throws exception (#9742)Paul Ouellette
2020-04-25Add server side translations capability (#9733)EvidenceB Kidscode
* Add server side translations capability
2020-04-23Camera: Fix shootline line offsets II (#9730)SmallJoker