aboutsummaryrefslogtreecommitdiff
path: root/src/network (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Deal with compiler warningssfan52022-04-302-3/+3
|
* Clean up some auth packet handling related codesfan52022-04-284-30/+25
|
* Fix password changing getting stuck if wrong password is entered oncesfan52022-04-281-0/+2
|
* Apply disallow_empty_password to password changes toosfan52022-04-281-3/+13
|
* Fix race condition in registration leading to duplicate create_auth callssfan52022-04-281-1/+12
|
* Spacing fixesShadowNinja2022-04-081-2/+2
|
* Add API to control shadow intensity from the game/mod (#11944)x20482022-03-263-1/+15
| | | * Also Disable shadows when sun/moon is hidden. Fixes #11972.
* Clean up ClientReady packet handlingsfan52022-02-171-32/+24
| | | | fixes #12073
* Clean up ClientInterface lockingJude Melton-Houghton2022-02-031-2/+1
|
* Get rid of `basic_debug` last minutesfan52022-01-302-6/+0
| | | This isn't a revert but rather just disables the codepaths. also see #12011
* Bump formspec version (#11980)Vincent Robinson2022-01-231-1/+1
|
* Fix consistency of sky sun/moon texture behavioursfan52022-01-221-7/+5
| | | | Also cleans up related code somewhat.
* Fix local animation not instantly updating after being setsfan52022-01-191-0/+2
|
* Don't call on_dieplayer callback two times (#11874)savilli2022-01-151-2/+1
|
* Restore pass-through of direction keys (#11924)sfan52022-01-091-8/+1
| | | This moves relevant code into the PlayerControl class and gets rid of separate keyPressed variable.
* Socket-related cleanupssfan52021-12-294-142/+100
| | | Improve error handling on Windows and reduce the size of the `Address` class
* Fix check that denies new clients from a singleplayer sessionsavilli2021-12-281-1/+1
|
* Restore GCC 5 compatibility (#11778)JosiahWI2021-12-281-1/+2
|
* Network: Delete copy constructor and use std::move instead (#11642)SmallJoker2021-12-014-520/+562
| | | This is a follow-up change which disables class copies where possible to avoid unnecessary memory movements.
* Fix number of tool uses being off by 1..32767 (#11110)Wuzzy2021-10-311-3/+4
|
* Fix item duplication if player dies during interact callback (alternative) ↵sfan52021-10-251-18/+26
| | | | (#11662)
* Remove broken timeout behavioursfan52021-10-121-23/+4
| | | | | | Code that relies on `resend_count` was added in 7ea4a03 and 247a1eb, but never worked. This was fixed in #11607 which caused the problem to surface. Hence undo the first commit entirely and change the logic of the second.
* Fix player HP desync between client and serversavilli2021-10-121-1/+2
|
* Various code improvementsSmallJoker2021-09-273-36/+28
| | | | | * Camera: Fix division by 0 after view bobbing * Remove ignored constness * Connection: Improve window size range limits
* Fix trivial typossfan52021-09-191-2/+2
|
* Shave off buffer copies in networking code (#11607)sfan52021-09-175-86/+79
|
* Fix broken handling of NodemetaChanged packetssfan52021-09-121-1/+1
| | | | fixes #11610
* Make sure relevant std::stringstreams are set to binarysfan52021-09-111-7/+5
|
* Dynamic_Add_Media v2 (#11550)sfan52021-09-095-59/+122
|
* Remove redundant on_dieplayer callssavilli2021-08-281-16/+0
|
* Joystick sensitivity for player movement (#11262)NeroBurner2021-08-271-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit deprecates the forward, backward, left, and right binary inputs currently used for player movement in the PlayerControl struct. In their place, it adds the movement_speed and movement_direction values, which represents the player movement is a polar coordinate system. movement_speed is a scalar from 0.0 to 1.0. movement_direction is an angle from 0 to +-Pi: FWD 0 _ LFT / \ RGT -Pi/2 | | +Pi/2 \_/ +-Pi BCK Boolean movement bits will still be set for server telegrams and Lua script invocations to provide full backward compatibility. When generating these values from an analog input, a direction is considered active when it is 22.5 degrees away from either orthogonal axis. Co-authored-by: Markus Koch <markus@notsyncing.net> Co-authored-by: sfan5 <sfan5@live.de>
* HUD: Reject and warn on invalid stat types (#11548)SmallJoker2021-08-211-11/+23
| | | | This comes into play on older servers which do not know the "stat" type. Warnings are only logged once to avoid spam within globalstep callbacks
* Add bold, italic and monospace font styling for HUD text elements (#11478)sfan52021-07-271-1/+4
| | | Co-authored-by: Elias Fleckenstein <eliasfleckenstein@web.de>
* Require 'basic_debug' priv to view gameplay-relevant debug info, require ↵Wuzzy2021-06-242-1/+8
| | | | | 'debug' priv to view wireframe (#9315) Fixes #7245.
* Block & report player self-interaction (#11137)Lars Müller2021-03-301-0/+6
|
* Check for duplicate login in TOSERVER_INIT handler (#11017)Elias Fleckenstein2021-03-191-0/+10
| | | i.e. checks for duplicate logins before sending all media data to the client.
* Protect dropping from far node inventoriesSmallJoker2021-03-071-24/+23
| | | | Also changes if/if to switch/case
* Protect per-player detached inventory actionsSmallJoker2021-03-071-1/+5
|
* Clean up ClientEvent hudadd/hudchange internalssfan52021-03-061-27/+26
|
* Fix hud_change and hud_remove after hud_add (#10997)savilli2021-02-261-23/+14
|
* Server-side authority for attached players (#10952)SmallJoker2021-02-151-2/+6
| | | The server must have authority about attachments. This commit ignores any player movement packets as long they're attached.
* Encode high codepoints as surrogates to safely transport wchar_t over networksfan52021-02-023-24/+42
| | | | fixes #7643
* Drop wide/narrow conversion functionssfan52021-02-021-5/+3
| | | | | | | | | 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.
* Server GotBlocks(): Lock clients to avoid multithreading issuesSmallJoker2021-02-021-2/+4
|
* Cache client IP in RemoteClient so it can always be retrieved (#10887)sfan52021-01-311-5/+6
| | | specifically: after the peer has already disappeared
* Remove dead code (#10845)rubenwardy2021-01-221-7/+1
|
* Fix some minor code issues all over the placesfan52020-12-241-1/+1
|
* Documentation for highest formspec_version[] and changelog (#10592)DS2020-12-181-16/+1
|
* serverpackethandler: Minor log message fixessfan52020-11-121-7/+6
| | | | closes #10434
* Fix object interaction distance not being checked (#10547)rubenwardy2020-11-091-6/+7
|