280 Commits

Author SHA1 Message Date
yvt
c50906d16b Fix to build with GCC 4.9 2018-10-27 18:19:38 +09:00
yvt
ea0088ddd4 Explicitly delete a reference to SDL surface when a window is closed
This issue was identified by #775. (Hopefully) fixes #779.
2018-10-13 16:09:15 +09:00
yvt
cfb972f944 Improve code quality
- Overriding methods are clearly indicated with `override` keywords
- Remove redundant `virtual` keywords from destructors of subclasses
- Introduce `SPUnsupported()`, replacing most uses of
  `SPNotImplemented()`, which now serves as a dynamic "TODO" marker
2018-10-13 14:43:49 +09:00
yvt
5ec968ecf5 Call SDL_GL_SetSwapInterval after a GL context was created
Fixes #763.
2018-09-18 00:36:34 +09:00
yvt
36fa59fe01 Refactor MainScreenHelper
- Rename methods to follow the general naming convention
- Use glorious lambdas in place of a 😱functor😱
- Make other minor modifications
- Use a smart pointer
- clang-format
- Remove an unused variable
- Remove redundant copies
- Use atomics in place of a heavy-weight mutex
2017-12-22 22:00:52 +09:00
yvt
49cc61c573 Use more smart pointers and modern language constructs 2017-12-15 23:05:08 +09:00
David Carlier
4864f07937 Reducing some compilation warnings. 2017-11-18 21:15:07 +00:00
yvt
228f1b1ee5 Remove C++ definitions of some config variables
The following config variables are no longer accessed by the C++ code
directly:

- cg_lastQuickConnectHost
- cg_playerName (not to be confused with cg_playerNames)

The AngelScript code still uses them, though.
2017-09-11 21:03:18 +09:00
yvt
7d0d8e3704 Create Weapon instances based on the current GameProperties, not a cvar 2017-09-11 20:59:39 +09:00
Teodor
0cb053c15d Add a headshot bang sound like in classic (#648)
* Add satisfying headshot bangs like in classic

* add whack sound

* Update Client_Update.cpp

* Add files via upload

* Moved to Resources/Sounds/Feedback

* Play only if inflicted by LocalPlayer

Also lowered volume

* Update AUTHORS

* Update Credits.inc
2017-09-05 18:27:05 +09:00
yvt
ca892698e3 Minor fixes
- Remove unnecessary `volatile`
- Replace some operations with atomic ones for soundness
- Clean up
- Avoid certain UBs
- Typo
2017-06-25 21:15:27 +09:00
roboman2444
08add66f94 added geometry shader support. Untested, and i dunno if there is any real use for it 2017-05-21 21:01:32 -04:00
YVT
8dae5eb1a7 Merge pull request #595 from devnexen/leaks
Fixing few memory leaks + fixing pthread symbol missing
2017-03-04 22:25:06 +09:00
YVT
05ac2cf4a8 Merge pull request #594 from devnexen/identify_bsd_screen_help
Identify *BSD for the startup screen
2017-03-04 22:24:10 +09:00
David Carlier
657f765542 Fixing few memory leaks + fixing pthread symbol missing 2017-03-04 11:18:12 +00:00
yvt
f5507b78f9 Fix to compile on Windows 2017-03-04 02:06:53 -08:00
yvt
28be55615a Add a “portable” configuration for the Windows version 2017-03-04 17:05:45 +09:00
David Carlier
67e2465b6e Identify *BSD for the startup screen 2017-03-03 19:34:13 +00:00
yvt
146c5ead24 clang-format 2017-03-04 03:32:21 +09:00
yvt
aaa3bc2656 Fix #582 2017-03-04 03:32:14 +09:00
yvt
d78b91a92f Fix for MSVC 2017-02-25 10:51:47 -08:00
yvt
298c1ecf0a FPS limiter (cl_fps) 2017-02-20 03:45:50 +09:00
yvt
9a1a883539 Update credits 2017-02-11 18:17:38 +09:00
yvt
2e105e7e62 Fix to compile with GCC 2017-01-30 01:14:44 +09:00
yvt
7272c067a7 Automatic update check
Fixes #526.
2017-01-30 01:02:40 +09:00
yvt
51193c07f1 Update PackageUpdateManager
GetUpdateInfoReadyState() now returns Unavailable if the update feed is not specified in PackageInfo.json
2017-01-29 23:56:44 +09:00
yvt
cca0a4c938 Add PackageUpdateManager 2017-01-29 23:27:54 +09:00
Bruno Díaz
4a36ac600f Add translator to "AUTHORS" (#550)
* Add Spanish translation

*  "Brunodiazu" - Spanish translation

* Add translator to "Authors"

* "BrunoDiazU" - Spanish translation

* Add translator to "Credits.inc"

* "BrunoDiazU" - Spanish translation
2017-01-15 16:58:26 +09:00
yvt
54d9f41643 GLWaterRenderer: use EXT_texture_array to save texture units 2017-01-14 21:31:49 +09:00
yvt
0eecce02a8 GLProfiler: GPU time 2017-01-08 06:23:40 +09:00
yvt
8c4b0738b2 Minor fixes 2017-01-08 02:06:48 +09:00
yvt
05156b53d1 Support toggling full-screen mode (#531) 2017-01-08 01:39:35 +09:00
yvt
65752b4198 Remove cg_smp 2017-01-08 01:30:24 +09:00
yvt
88f03f01e9 Refactoring
- Mark overriding virtual functions with `override`
- Get rid of warnings
2017-01-05 03:48:11 +09:00
yvt
b4430338f0 Refactoring 2017-01-05 03:24:22 +09:00
yvt
a7b9909b2e Refactoring 2017-01-05 03:03:39 +09:00
yvt
7197cb3d1f Update credits 2016-12-24 23:09:55 +09:00
yvt
d505bfae91 Expose “FontManager” to the scripting environment 2016-12-16 05:05:23 +09:00
YVT
2d0ae3b817 FreeType2 font renderer (#484)
* Backport ngspades’s FreeType2 font renderer

* Change system fonts

* Fix SWImage::Update

* Preliminary custom TTF/OTF font support

* Fix font rendering

* Adjust design

* Update devpak

* Fix to compile on Linux

* Update .travis.yml

* Update external libraries

* Update .travis.yml

* Attempt to fix Travis CI build

* Add missing sudo to travis.yml

* Nevermind the changes, it didn't work

* Update .travis.yml

* Update .travis.yml and CMakeLists.txt
2016-12-11 23:18:16 +09:00
YVT
5b887ddb96 Provide an option to browse the config directory (#481)
Fixes #268.
2016-12-08 04:40:33 +09:00
yvt
de10fa8f78 Remove unused configs 2016-12-08 01:35:53 +09:00
yvt
7c615bd259 Provide an option to reset all settings
Can be found in Startup configuration window -> Generic tab.
Fixes #360.
2016-12-08 01:29:41 +09:00
yvt
a7e64908ea Fix a comment 2016-12-08 00:52:04 +09:00
David Carlier
1d970ec34d make the build possible on OpenBSD.
modified version of the pk download script.
isnan belongs to std namespace in C++11 standard.
2016-12-04 20:01:37 +00:00
Marco Schlumpp
eb65b2f33b
Remove wrong return type. 2016-12-04 12:54:13 +01:00
Marco Schlumpp
0f4f426176
Check whether a entry was found before trying to access it. 2016-12-03 20:20:22 +01:00
Marco Schlumpp
986e27436b
Implement simple favorite system. 2016-12-03 20:04:11 +01:00
Tomoaki Kawada
2be6524d02 Implement language switcher
Fixes #445.
2016-12-04 00:22:05 +09:00
Tomoaki Kawada
624d291f79 Update #includes
- Reorder them so that system libraries come first
- Use C++-style headers (`<cmath>`) instead of C-style headers (`<math.h>`)
2016-12-03 19:04:58 +09:00
Tomoaki Kawada
ebd79c0099 Change #include style
All `#include`s to other subsystem now use angle brackets, e.g., `#include <Core/Math.h>`.
2016-12-03 18:49:07 +09:00