Dennis Felsing
18d2f1a1ff
Merge pull request #7268 from Robyt3/Serverbrowser-Refactoring-Various
...
Various refactoring of the engine server browser, remove game includes from engine, minor performance improvement
2023-09-30 11:56:14 +00:00
Robert Müller
cf35594fa4
Extract UpdateServerFriends
function, cache friends on server
...
Calculate the number of friends on each server when refreshing the friend state of the server info instead of every time the server entry is rendered.
2023-09-30 13:32:36 +02:00
Robert Müller
7e8442d394
Move and rename UpdateFilteredPlayers
function, mark as const
2023-09-30 13:29:28 +02:00
Robert Müller
28d4451057
Add local variable Info
to reduce duplicate code
2023-09-30 13:29:28 +02:00
Robert Müller
034962ae24
Add enum ERankState
to replace magic numbers
2023-09-30 13:29:28 +02:00
Robert Müller
dcff6d92f0
Add name for enum EClientScoreKind
2023-09-30 13:29:28 +02:00
Robert Müller
721a55c603
Remove game menus includes in engine
...
Use config manager to reset `ui_page` to the default, instead of using `CMenus::PAGE_DDNET` directly (which is the default).
Check current type of serverbrowser instead of checking the current `ui_page` against `CMenus::PAGE_DDNET` and `CMenus::PAGE_KOG`.
2023-09-30 13:29:28 +02:00
Robert Müller
6753e37772
Move function definitions to remove and organize includes
2023-09-30 13:29:27 +02:00
Robert Müller
e78305e1cd
Remove unused m_aFilter(Gametype)String
variables
2023-09-30 13:29:27 +02:00
Dennis Felsing
359d9ab00b
Merge pull request #7176 from Marmare314/export-image
...
add export image button
2023-09-30 11:01:26 +00:00
Dennis Felsing
1452b36dc0
Merge pull request #7172 from furo321/render-done-popup
...
Add a popup for when video render is done
2023-09-30 09:38:01 +00:00
Dennis Felsing
3e2893e638
Merge pull request #7182 from dobrykafe/pr-show-direction
...
Ability to show local keypresses only
2023-09-30 09:35:20 +00:00
Dennis Felsing
aacfc9a357
Merge pull request #7241 from Robyt3/UI-LabelStreamed-HighlightedFix
...
Fix mangled highlighted text in server browser
2023-09-30 09:24:58 +00:00
heinrich5991
1beab04464
Merge pull request #7267 from Learath2/pr_fixfixreckon
...
Fix the fix to dead reckoning
2023-09-29 23:54:10 +00:00
Learath
fcffac6fa8
Fix the fix to dead reckoning
2023-09-30 01:29:33 +02:00
heinrich5991
c5ab791540
Merge pull request #7264 from Steinchen99/qol-rcon-tele
...
Quality of life ; rcon tele small changes
2023-09-29 13:15:35 +00:00
Steinchen99
7b58b77c5e
QoL ; Made it so f2 cmd 'tele' resets speed and unfreezes the tee upon teleporting
2023-09-29 14:53:24 +02:00
Dennis Felsing
fb290e4d23
Merge pull request #7265 from Robyt3/Debug-Stress-Cleanup
...
Limit effects of `dbg_stress` to features useful for debugging, remove remains of `dbg_stress` from server
2023-09-28 22:09:01 +00:00
Dennis Felsing
84a4e573a2
Merge pull request #7263 from Robyt3/Windows-Manifest-Compatiblity
...
Add flags for compatibility with Windows 8 - 11
2023-09-28 22:07:10 +00:00
Robert Müller
c64ec0f677
Limit effects of dbg_stress
to features useful for debugging
...
Using `dbg_stress 1` now only does the following (in debug build):
- Randomly send inputs.
- Randomly send chat messages.
- Randomly connect/disconnect to server configured with `dbg_stress_server` (`localhost` by default).
Previously it also did the following, which is not useful for this debugging feature and only complicates the code unnecessarily:
- Cause images and sounds not to be loaded.
- Render only every tenth frame.
- Always use inactive graphics refresh rate.
2023-09-28 20:14:54 +02:00
Robert Müller
06948ddecd
Remove remains of dbg_stress
from server
...
Using `dbg_stress 1` on a server made clients always auto-join team 0 and nothing else, which is not useful on its own for stress testing.
2023-09-28 20:14:23 +02:00
Robert Müller
247ce38094
Remove unused variables m_RenderFrameTimeLow/High
2023-09-28 20:12:55 +02:00
Robert Müller
744434be83
Add flags for compatibility with Windows 8 - 11
...
We previously only defined compatibility with Windows Vista and 7. Now we define compatibility with Windows Vista - 11, which is what we currently support.
This means that Windows 8 - 11 will no longer try to run the client in a compatibility mode for Windows 7 applications. This should effectively not change anything, as we don't directly use any of the [components that function differently depending on the compatibility information](https://learn.microsoft.com/en-us/windows/compatibility/application-executable-manifest#manifestation ).
2023-09-28 18:11:23 +02:00
Dennis Felsing
6a030e1a2b
Merge pull request #7262 from furo321/expire-server-info-afk
...
Expire server info when changing `m_Afk`
2023-09-27 10:44:55 +00:00
Dennis Felsing
5b3738dc17
Merge pull request #7261 from furo321/demo-show-pred
...
Don't show cl_showpred in demos
2023-09-27 10:31:36 +00:00
furo
4f0552a8df
Expire server info when changing m_Afk
2023-09-27 12:12:12 +02:00
furo
23477584d1
Don't show cl_showpred in demos
2023-09-27 11:31:53 +02:00
Dennis Felsing
05efa6870e
Merge pull request #7260 from M0REKZ/infoplist-gamefix
...
Make Gamemode get enabled when playing DDNet in macOS 14
2023-09-27 06:43:23 +00:00
+KZ
03f3994870
Update Info.plist.in
2023-09-26 22:08:59 -03:00
Dennis Felsing
b7faef8239
Merge pull request #7259 from Robyt3/Snapshot-Refactoring-Const
...
Add `CSnapshot::EmptySnapshot`, mark pointer arguments as `const`
2023-09-26 20:49:36 +00:00
Robert Müller
74192b9051
Add CSnapshot::EmptySnapshot
, mark pointer arguments as const
...
Instead of keeping track of a permanently empty `CSnapshot` object in client and server separately, add `CSnapshot::EmptySnapshot` to access a singleton empty `CSnapshot`.
Mark pointer parameters of snapshot functions as `const` when possible.
2023-09-26 20:13:27 +02:00
Robert Müller
92463cfb50
Merge pull request #7255 from rffontenelle/patch-2
...
Update brazilian_portuguese.txt
2023-09-26 17:35:45 +00:00
Dennis Felsing
875c51e28f
Merge pull request #7257 from furo321/votes-command
...
Add votes command to rcon
2023-09-26 11:45:32 +00:00
furo
eabe59b413
Change format of votes
2023-09-26 12:13:49 +02:00
furo
d165f9e8a9
Add votes command to rcon
2023-09-26 02:24:00 +02:00
Jupeyy
958676ae84
Merge pull request #7251 from Robyt3/Graphics-Texture-Index-DoubleFree-Assertion
...
Add assertion when double-freeing texture index, ensure OpenGL texture vectors are large enough
2023-09-25 18:51:04 +00:00
heinrich5991
296d141c0e
Merge pull request #7254 from Robyt3/Windows-File-Buffering
...
Use `FILE *` on Windows again, only use `HANDLE` for opening
2023-09-25 17:41:47 +00:00
Rafael Fontenelle
3023d0b100
Update brazilian_portuguese.txt
2023-09-25 14:23:46 -03:00
Robert Müller
8ebe3c1b35
Use FILE *
on Windows again, only use HANDLE
for opening
...
This mostly reverts #6937 by making our `IOHANDLE` effectively `FILE *` on all systems again. We still use `CreateFileW` to open a `HANDLE` initially so we can specify the necessary flag so the file can be moved/deleted while open, which we can't do with the `FILE *` based `fopen` functions on Windows. This brings back the automatic I/O buffering on Windows, causing significantly less system calls when saving files. Closes #7226 .
2023-09-25 18:24:48 +02:00
Robert Müller
6b8a376810
Merge pull request #7252 from furo321/missing-cmd-desc
...
Add missing descriptions of commands.
2023-09-24 21:46:31 +00:00
furo
25101d2cb0
Add missing descriptions of commands.
2023-09-24 23:21:10 +02:00
Robert Müller
96a68455ca
Ensure OpenGL texture vectors are large enough
...
In the unlikely case that the wanted texture slot is larger than twice the size of the original texture vector.
2023-09-24 22:27:16 +02:00
Robert Müller
99cee23de4
Add assertion when double-freeing texture index
...
Simplify the handling of free texture indices by using `-1` only for indices which are currently in use, whereas the size of the vector is now used to indicate the last free index. Otherwise the assertions incorrectly detect the last texture index always being in use because `-1` was used for both states.
2023-09-24 22:24:51 +02:00
Dennis Felsing
60046c7e18
Merge pull request #7247 from Learath2/pr_reckon
...
Fix dead reckoning
2023-09-24 18:38:53 +00:00
Dennis Felsing
708b263766
Merge pull request #7249 from Robyt3/Gameclient-ConfigManager-Getter
...
Add `IConfigManager` getter to `CGameClient` and `CComponent`
2023-09-24 18:38:29 +00:00
Dennis Felsing
bca21dc640
Merge pull request #7250 from Robyt3/Cleanup-Background-Foreground-Names
...
Rename variables containing `ForeGround` and `BackGround`
2023-09-24 18:38:15 +00:00
Robert Müller
2a17d1b8ac
Rename variables containing ForeGround
and BackGround
...
To `Foreground` and `Background` respectively.
2023-09-24 20:01:36 +02:00
Robert Müller
003d96e1c8
Add IConfigManager
getter to CGameClient
and CComponent
2023-09-24 19:55:20 +02:00
Robert Müller
9933c1350d
Merge pull request #7246 from furo321/register_conchain
...
Configs used in Register OnConfigChange should have Conchain
2023-09-24 17:54:31 +00:00
Learath
ecaded8cce
Fix dead reckoning
2023-09-24 18:14:09 +02:00