1191 Commits

Author SHA1 Message Date
yvt
4fbe5ee5ce
Reset intels and team scores after receiving winning IntelCapture
This problem was originally reported in:
<https://github.com/piqueserver/piqueserver/issues/586>

Upon receiving `IntelCapture` with `winning = 1`, the voxlap client
resets both team scores and the holding status of both teams' intels,
but OpenSpades didn't do that, resulting in a weird behavior described
in piqueserver/piqueserver#586. This commit changes OpenSpades' behavior
to be congruent with the voxlap client's behavior.

Fixes #890.
2020-04-20 13:38:57 +09:00
Tomoaki Kawada
a455307017
Merge pull request #877 from goleo108/patch-1
AngelScript: fix build on DragonFly BSD, NetBSD and sparc64
2020-04-20 01:51:24 +09:00
Tomoaki Kawada
470c62d5b7
Merge pull request #884 from devnexen/mem_range_overlap_in_scripting_fix
Memory overlap fix proposal.
2020-04-20 01:51:02 +09:00
hourai-dev
a0aa55b24a
Removed unnecessary call to GetHorizontalLength(). 2020-04-16 12:46:13 -05:00
David Carlier
393865b750 Recognises NetBSD too 2020-04-05 13:54:53 +01:00
David Carlier
8f0ac7ceee Memory overlap fix proposal. 2020-03-01 11:15:37 +00:00
Leonid Bobrov
e12db75f2e
Sources/AngelScript/source/as_memory.cpp: fix build on NetBSD and DragonFly BSD 2020-01-11 14:28:36 +02:00
Leonid Bobrov
5deeb88ffb
Sources/AngelScript/source/as_config.h: fix build on NetBSD and sparc64 2020-01-11 14:17:47 +02:00
yvt
b36efa4ef4
Update macOS library dependencies
`OpenSpades-Externals-Darwin-5.zip` updates SDL2 from 2.0.9 to 2.0.10.
2019-12-09 01:09:02 +09:00
yvt
786d9884c9
Fix typo 2019-12-09 01:07:31 +09:00
yvt
ada518be9d
Merge branch 'gunplayfix' of https://github.com/BR-/openspades into BR--gunplayfix 2019-12-09 00:25:36 +09:00
dtomlinson-ga
fefce1b4e0 Fix use after free in Main.cpp (issue #846) (#871)
* Fix use after free in Main.cpp (issue #846)

Create c-string to store filepath before concatenating with output message.

* Fix use after free in Main.cpp

Changed variable type to std::string and moved c_str() call

* Fix use after free in Main.cpp

Removed reference to directory variable
2019-11-30 00:56:45 +09:00
dtomlinson-ga
4ce8546df8 Fix typo in Player::GetVelocity()
Corrected GetVelocty() to GetVelocity() everywhere it occurs.
2019-11-28 22:10:38 +09:00
Anthony Som
08e792e7fa Fix aim-down-sight sound when ammo count is zero (#858)
* Fix aim-down-sight sound when ammo count is zero

Fixes #858.

* Delete settings.json
2019-10-08 08:51:47 +09:00
YVT
51f34fee0c
Latch r_softParticles
Fix #856
2019-10-06 20:31:07 +09:00
YVT
33d920a540
Fix compilation issue with MSVC
This commit fixes a compilation issue caused by the use of an incomplete type
`FontManager` in an instantiation of `Handle<FontManager>::~Handle()`.

Fixes #852.
2019-10-04 00:13:05 +09:00
YVT
ffb3f33abe
Remove a redundant assignment
Reported by Clang's static analysis.
2019-07-24 18:12:08 +09:00
YVT
d92149713a
Add a missing call to CheckError 2019-07-24 18:11:04 +09:00
YVT
d467f3cf5a
Delete BdfToOSFont.cpp 2019-07-20 16:14:30 +09:00
YVT
989fc1e211
Remove out-dated comment 2019-07-17 10:30:36 +09:00
yvt
18911042e7
Merge remote-tracking branch 'origin/master' into feature-system-console 2019-07-15 09:08:09 +09:00
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
ed508fadd5
Add IRenderer::ClearCache 2019-07-14 23:53:10 +09:00
yvt
37982aa020 Replace std::map with std::unordered_map
Because we do not support MSVC 2010 anymore.
2019-07-14 23:48:06 +09:00
YVT
33b6aa370c
Remove unnecessary code 2019-07-14 23:45:13 +09:00
yvt
bb4675ca00
Add help console command 2019-07-14 23:34:40 +09:00
yvt
008c687e83
Raise the buffer size limit of BoundedLogBuffer 2019-07-14 23:22:20 +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
5794acbc18
Register the assignment behavior of ConsoleCommandCandidate 2019-07-14 20:36:12 +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
3ca9948d50 Fix CScriptArray::RemoveRange
- The count parameters of `memmove` was incorrectly calculated.
- The use of `memmove` would be UB here because of region overlap.
2019-07-14 13:20:33 +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