Commit Graph

18 Commits

Author SHA1 Message Date
a1batross 808be9442f
Use filtered command buffer when string came from network (#241)
* cdll_int: add undocumented FilteredClientCmd function to client interface

* client: use filtered command buffer where we have to execute command from server

* client: use normal pfnClientCmd in place of pfnFilteredClientCmd in case of engine doesn't supports it

* client: don't read out of bounds if engine interface is old and don't have pfnFilteredClientCmd

* client: fix incorrect cvar pointer comparison
2022-04-24 03:43:45 +05:00
Roman Chistokhodov ba2cab60df
Get VGUI back (optionally) (#194)
* Get VGUI back (optionally)

* Add some missing VGUI invocations

* Update CMakeLists.txt to build with vgui for Windows

* Move windows.h inclusions only to those places where it's really needed

* Try fix mingw build

* Update hud_spectator

* Merge nekonomicon's vgui branch

* Don't include vgui panel and app in cdll_int.cpp if vgui is real

* Deduplicate scoreboard global variables

* Add options to prefer non-vgui motd and scoreboard when vgui is enabled

* Add vgui-dev as a submodule. Add building vith vgui to CI

* Fix artifact uploading

* Don't use global variable when not necessary

* char* to const char* in CMenuHandler_StringCommand constructor

* Fix 'format string is not a literal string' warnings

* Fix 'always evaluate to true' warnings

* Team Fortress classes to const char*

* CreateCommandMenu accepts const char*

* Fix printf formats. Turn some unsigned longs into unsigned ints since they use only 32 bits anyway

* Explicit assignment result as condition

* Prevent memory leak on menu reading

* Localize button text

* Create FileInputStream on stack avoiding the leak

* Remove Servers Browser code

* Arrow file names to const char*

* Fix assignment to the wrong variable
2021-10-27 01:35:11 +00:00
Andrey Akhmichin 5dd184da23 Fix memory leaks when parsing files. 2021-03-26 04:08:05 +05:00
Andrey Akhmichin 0324eb0431 Fix possible memory leak. 2020-07-25 09:28:02 +05:00
Andrey Akhmichin ec9bffedaf Partially fix double promotion. 2019-10-13 16:49:25 +05:00
iZarif a0ccf2d0a1 size of arrays are now a power of two 2019-10-03 00:24:27 +04:00
iZarif 04a31f4a1a fix gcc 8.3.0 format-overflow warnings 2019-10-02 23:15:53 +04:00
Andrey Akhmichin c9fdcd91e8 A little optimizations. 2019-09-24 03:00:37 +05:00
Roman Chistokhodov 48733fd1a1 All copyright symbols to (c) 2018-01-19 20:00:32 +03:00
Roman Chistokhodov 8dc9245fe3 Copyright symbol to utf-8 2018-01-18 22:36:32 +03:00
Night Owl d1fbb99574 Fix some warnings yet. 2017-07-20 23:32:06 +05:00
mittorn 5da21e38d2 Fix client visual studio build 2017-01-10 16:45:52 +07:00
Night Owl 9e7debbb34 Client format. 2016-07-03 18:39:55 +05:00
Night Owl 4304846337 CRLF to LF all. 2016-06-04 18:24:23 +05:00
Night Owl 0549ead5ab Rework initialization. 2016-04-23 20:18:48 +05:00
Night Owl 0adbd65d8a Fix build clang. Fix UB. 2016-04-18 01:30:05 +05:00
mittorn d254f1bd0e Improve client 2016-03-01 20:18:42 +00:00
mittorn 0f599684c5 Upload first port 2016-02-24 21:26:16 +00:00