aboutsummaryrefslogtreecommitdiff
path: root/src/client/game.cpp
AgeCommit message (Collapse)Author
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
2020-04-16Camera: Fix shooting line offsets (#9681)SmallJoker
Removes duplicated offset calculations from Game and use whatever the Camera class returns. This keeps the eye position nicely in sync, and gets rid of duplicated code.
2020-04-13Remove sound menu and show proper msgs if sound is off (#9069)Wuzzy
2020-04-12Play 'player_jump' when player jumps (#9373)Wuzzy
2020-04-11Formspecs: Add state-selection to style elements (#9378)Hugues Ross
2020-04-11A few initialization cleanupssfan5
2020-04-08Overall improvements to log messages (#9598)sfan5
Hide some unnecessarily verbose ones behind --trace or disable them entirely. Remove duplicate ones. Improve their contents in some places.
2020-03-20Add comments for translators (#9510)Wuzzy
* Add translator comments for "special" strings * Add translator comments for some "tricky" strings
2020-03-05set_sky improvements, set_sun, set_moon and set_starsJordach
2019-12-06Add z-index management to HUDPierre-Yves Rollo
2019-11-11Run on_item_use CSM callback even if item is not marked usablesfan5
Mods may want to to handle item interaction even if the item is not marked usable (= server-side callback exists).
2019-10-09Fix isDead()/autoforward crash (#9031)Paramat
Crash occurred in singleplayer when leaving a world with autoforward enabled then re-entering a world.
2019-09-29Move Quicktune code to util/ (#8871)ANAND
2019-09-26Simple shader fixes. (#8991)lhofhansl
1. Pass current camera offset to shader, so shader have access to the global coordinates 2. Pass animation timer to fragment shader. C++ code is already there, just wasn't declared in the shader 3. Delay animation timer wrap-around (from 100s to about 16 minutes)
2019-09-22Move the code for meta formspec into bool Game::nodePlacement(const ↵DS-Minetest
ItemDefinition &selected_def,
2019-09-19Add support for per-player FOV overrides and multipliersAnand S
2019-09-19Trigger on_place in many situations even if prediction failedDS-Minetest
2019-09-14Built-in formspecs: Force version 1SmallJoker
2019-09-14Formspecs: Introduce formspec_version to modsSmallJoker
2019-09-14Load CSM environment after the restrictions are knownSmallJoker
Safety-guards for CSM callbacks to abort on a bad implementation Only run callbacks when the mods are loaded (and with it: builtin) Duplication checks inside constructors
2019-08-24Inventory: Send dirty lists where appropriate (#8742)SmallJoker
This change reduces the amount of sent data towards clients. Inventory lists that are already known to the player are skipped, saving quite some data over time. Raises protocol version to 38 to ensure correct backwards-compatible code.
2019-08-20Disable autoforward if player is deadANAND
2019-08-13Better F6 profiler (#8750)SmallJoker
Update the profiler names to make more sense of what they actually represent Move the profiler code from header to its source file Use monospace font to align lines Format the statistics line to align better with surrounding values Refresh the profiler each 3 seconds (roughly)
2019-08-10Merge pull request #8776 from osjc/FixGetNodeJozef Behran
Finish getNode cleanup
2019-08-07Game: Fix double BS multiplicationSmallJoker