summaryrefslogtreecommitdiff
path: root/src/client/game.cpp
Commit message (Collapse)AuthorAge
* Properly handle mod-errors in on_shutdownDesour2020-08-24
|
* Allow binding dig, place actions to keys; remove LMB/RMB hardcodingANAND2020-08-15
| | | | Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
* Play place_failed sound if occupied or cannot attach (#9486)Wuzzy2020-07-27
|
* Add object crosshair, disable entity selectionboxes by default (#9523)LoneWolfHT2020-07-14
| | | | Adds new object crosshair base pack texture
* Cleanup ClientLauncher structure (#10160)SmallJoker2020-07-14
| | | Remove duplicated variables and unify the startup data into a new (inherited) struct.
* Exposing the zoom key to Lua API (#9903)Lars Müller2020-06-13
| | | Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com>
* TouchScreenGUI: fix some bugs, cleanupMoNTE482020-06-09
|
* Value copy / allocation optimizations mostly in server, SAO and serialize codesfan52020-05-27
|
* Add chat_log_level setting (#9223)SmallJoker2020-05-14
| | | | | Log all higher levels in LogOutputBuffer Move StreamLogOutput::logRaw to source file like LogOutputBuffer::logRaw for compiling speed
* Add support for statbar “off state” icons (#9462)Wuzzy2020-05-11
| | | | | | | 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>
* Server class code cleanups (#9769)Loïc Blot2020-05-07
| | | | | | | | | | | | | | | | | | | * 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.
* Fix broken client if openal cannot be opened (#9804)Loïc Blot2020-05-05
|
* Sky API: Rename *_tint to fog_*_tint for consistencySmallJoker2020-05-05
|
* Ensure game is shutdown if server throws exception (#9742)Paul Ouellette2020-04-25
|
* Add server side translations capability (#9733)EvidenceB Kidscode2020-04-25
| | | | * Add server side translations capability
* Camera: Fix shootline line offsets II (#9730)SmallJoker2020-04-23
|
* Camera: Fix shooting line offsets (#9681)SmallJoker2020-04-16
| | | | 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.
* Remove sound menu and show proper msgs if sound is off (#9069)Wuzzy2020-04-13
|
* Play 'player_jump' when player jumps (#9373)Wuzzy2020-04-12
|
* Formspecs: Add state-selection to style elements (#9378)Hugues Ross2020-04-11
|
* A few initialization cleanupssfan52020-04-11
|
* Overall improvements to log messages (#9598)sfan52020-04-08
| | | | Hide some unnecessarily verbose ones behind --trace or disable them entirely. Remove duplicate ones. Improve their contents in some places.
* Add comments for translators (#9510)Wuzzy2020-03-20
| | | | | * Add translator comments for "special" strings * Add translator comments for some "tricky" strings
* set_sky improvements, set_sun, set_moon and set_starsJordach2020-03-05
|
* Add z-index management to HUDPierre-Yves Rollo2019-12-06
|
* Run on_item_use CSM callback even if item is not marked usablesfan52019-11-11
| | | | | Mods may want to to handle item interaction even if the item is not marked usable (= server-side callback exists).
* Fix isDead()/autoforward crash (#9031)Paramat2019-10-09
| | | | Crash occurred in singleplayer when leaving a world with autoforward enabled then re-entering a world.
* Move Quicktune code to util/ (#8871)ANAND2019-09-29
|
* Simple shader fixes. (#8991)lhofhansl2019-09-26
| | | | | 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)
* Move the code for meta formspec into bool Game::nodePlacement(const ↵DS-Minetest2019-09-22
| | | | ItemDefinition &selected_def,
* Add support for per-player FOV overrides and multipliersAnand S2019-09-19
|
* Trigger on_place in many situations even if prediction failedDS-Minetest2019-09-19
|
* Built-in formspecs: Force version 1SmallJoker2019-09-14
|
* Formspecs: Introduce formspec_version to modsSmallJoker2019-09-14
|
* Load CSM environment after the restrictions are knownSmallJoker2019-09-14
| | | | | | | 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
* Inventory: Send dirty lists where appropriate (#8742)SmallJoker2019-08-24
| | | | | 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.
* Disable autoforward if player is deadANAND2019-08-20
|
* Better F6 profiler (#8750)SmallJoker2019-08-13
| | | | | | | 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)
* Merge pull request #8776 from osjc/FixGetNodeJozef Behran2019-08-10
| | | Finish getNode cleanup
* Game: Fix double BS multiplicationSmallJoker2019-08-07
|
* Client::Interact: Use InteractAction enum instead of numeric constantsANAND2019-08-07
| | | | This replaces the magic numbers used as interaction modes both client-side and server-side, primarily for the sake of ease-of-readability.
* Unify wield item handling (#8677)SmallJoker2019-08-07
| | | | This moves the wield item functions to Player and the tool utils for range calculation Also 'local_inventory' was removed due to redundancy in Client
* Hide chat when console is open (#8656)ANAND2019-08-07
|
* Mainmenu: Use textarea in error formspecsSmallJoker2019-08-01
|
* Do predict when sneak-place to node with on_rightclickDS-Minetest2019-07-08
|
* Formspecs: Close on metadata removal (#8348)SmallJoker2019-06-10
| | | | Formspecs will now close as soon the formspec string in the node metadata turns invalid.
* Make autoforward simulate the 'up' key (#8249)DS2019-05-21
|
* Use player as starting point instead of camera when pointing node (#8261)Muhammad Rifqi Priyo Susanto2019-04-27
| | | | Same pointing area on both camera modes. This fix is inapplicable for non-crosshair input.
* Android: Clear chat open flag on cancel or completion (#8478)stujones112019-04-19
|
* Drop GUIConfirmRegistration::m_address unused fieldLoïc Blot2019-03-12
|