305 Commits

Author SHA1 Message Date
yvt
797dbd755f
Do not initialize 3D before displaying "NOW LOADING"
Fixes the regression introduced by `ConsoleScreen`.
2019-07-15 00:22:30 +09:00
yvt
abcf65d536
Add clearsfxcache console command 2019-07-15 00:08:02 +09:00
yvt
2a1c28d7d1
Add cleargfxcache console command 2019-07-14 23:58:46 +09:00
yvt
bb4675ca00
Add help console command 2019-07-14 23:34:40 +09:00
yvt
a9561991c3
Add savemap console command 2019-07-14 22:29:15 +09:00
yvt
d0dfb188f0
Remove unnecessary code 2019-07-14 22:06:58 +09:00
yvt
8f12984882
Hide unrecognized config variables from autocompletion 2019-07-14 21:31:26 +09:00
yvt
8616b5b509
Get the config variable autocompletion working 2019-07-14 20:36:56 +09:00
yvt
dd071637d6
Fix MergeConsoleCommandCandidates 2019-07-14 20:36:27 +09:00
yvt
1634c61512
Expose the command name autocompletion to the script 2019-07-14 19:51:30 +09:00
yvt
e4efc8b5fc
Autocomplete config variables 2019-07-14 19:15:30 +09:00
yvt
bfe746abca
Remove C++20 constructs 2019-07-14 18:41:13 +09:00
yvt
e57e9655dd
Implement console-related methods on MainScreen 2019-07-14 18:32:42 +09:00
yvt
93cccdecf9
Add View::AutocompleteCommandName 2019-07-14 18:29:50 +09:00
yvt
0ade4b6356
Add console commands for accessing config variables 2019-07-14 17:43:04 +09:00
yvt
f4f9dce529
Add #pragma once 2019-07-14 17:26:19 +09:00
yvt
6b415aa7d4
Redirect SPLog to the console window 2019-07-14 16:02:07 +09:00
yvt
cacec5b470
Invoke View::ExecCommand from the console window 2019-07-14 14:59:58 +09:00
yvt
bb7c84b2c2
Add View::ExecCommand 2019-07-14 14:31:51 +09:00
yvt
1f10dc82ca
Add SPADES_MARK_FUNCTION() 2019-07-14 14:14:04 +09:00
yvt
070707c892
Implement the script side of the console window 2019-07-14 14:13:34 +09:00
yvt
d6f5370581
Add the console window (WIP) 2019-07-14 01:38:28 +09:00
yvt
b02ad53109 Add View::RunFrameLate
`IRenderer::{FrameDone, Flip}` are now called in `RunFrameLate` instead.
This makes it possible to create a `View` wrapping another `View` to
insert a new 2D drawing pass, which is necessary to render the system
console.
2019-07-14 00:29:36 +09:00
yvt
c910bd4846
Remove Mutex, replacing their uses with std::{mutex, recursive_mutex} 2019-05-25 15:00:32 +09:00
yvt
3cd581260a Fix a bug causing the program not to start
This bug was introduced in ac4799abafbeb1d44d1b7166913406cd3a46b560.

This bug apparently only affected MSVC since the evaluation order of function
call parameters respect to other parameters is unspecified by the C++
specification.

Fixes #785.
2018-10-31 16:16:51 +09:00
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