1635 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
6a6e771478 Add utilities and static checks to Handle 2018-10-13 16:07:24 +09:00
yvt
5dd26e3ce0 Use SPUnreachable() in place of SPAssert(false) 2018-10-13 16:07:04 +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
176b217cd4
Merge pull request #778 from yvt/fix-777
README.md: mention imagemagick dependency
2018-10-09 13:39:51 +09:00
Flávio Monteiro
a83b267eea
README.md: mention imagemagick dependency
It's required as a build dependency for generating the icon(s).
The wiki page was also updated too. 

Fixes #777.
2018-10-09 01:37:58 -03:00
YVT
49f0bbe6f4
Merge pull request #774 from yvt/patch-rng
Improve/fix random number generation
2018-10-08 14:39:38 +09:00
yvt
5e03526fe4 Fix to compile with MSVC 2017 2018-10-08 14:35:10 +09:00
yvt
888253a691 Remove an unnecessary constructor of stmp::optional 2018-10-08 01:22:29 +09:00
yvt
6bde199bea Do not use empty shaders
Some (old?) video drivers are unhappy about shaders containing no
executable lines and cause link errors.

This commit fixes #741.
2018-10-08 01:22:29 +09:00
yvt
5376c1c0c4 Get rid of the non-standard typeof operator 2018-09-18 22:33:48 +09:00
yvt
30e49b68aa Implement thread-local random number generator 2018-09-18 22:18:54 +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
4863135714
Merge pull request #770 from devnexen/build_fix
modern gcc and clang build fix
2018-09-18 00:12:15 +09:00
yvt
6982134ed7 Fix to build with GCC 4.9 2018-09-17 23:57:35 +09:00
yvt
585cbfce1c Improve random number generation
The global RNG state is now protected from simultaneous accesses by
employing a mutex.

Performance sensitive code requiring generation of a large number of
random numbers can utilize `LocalRNG`. This is not thread-safe but
provides a much greater throughput. `LocalRNG` is seeded by the global
RNG only at construction time.
2018-09-17 23:48:38 +09:00
David Carlier
6e3ee7df68 modern gcc and clang build fix
putting constraints on g rather than r as well.
2018-09-02 19:27:23 +01:00
YVT
995e7f2ffc
Merge pull request #755 from davicr/issue-731
Flashlight fixes
2018-08-02 16:26:36 +09:00
Davi
358800f260 Flashlight fixes: dead players and spectators may no longer toggle the flashlight, spectating other players while dead will keep your flashlight off 2018-07-15 16:07:34 -03:00
YVT
3143e561c0
Merge pull request #753 from BR-/issue-752
make palette hotkeys configurable (closes #752)
2018-07-09 13:15:35 +09:00
Benjamin
1bd5cd7cc5 make palette hotkeys configurable (closes #752) 2018-07-04 09:22:19 -07:00
YVT
399e24090d
Merge pull request #654 from NotAFile/scoreboard-show-dead-players
Show Dead players in gray on scoreboard
2018-02-21 16:18:50 +09:00
YVT
8991f9d819
Merge pull request #728 from godwhoa/master
Fix input for ThirdPersonLocal
2018-02-21 16:17:17 +09:00
Godwhoa
474f5cbf69 Fix input for ThirdPersonLocal
Closes: #717
2018-02-19 23:48:53 +05:30
YVT
ccc1c79d07
Merge pull request #726 from feikname-forks/update-readme
Update README.md to have VS2017 as a supported version
2018-02-15 16:59:19 +09:00
feikname
9da4ea4c23 Update README.md to have VS2017 as a supported version 2018-02-14 15:27:32 -02:00
YVT
2f501dbeca
Create uk.json 2018-02-02 23:43:58 +09:00
NotAFile
4ea1e50ae0 Add Counter for world updates per Second (#707)
* Add Counter for world updates per Second

This work was just done for personal testing and is probably not up to the
required code standards. Nonetheless, I have decided to send a PR as it is very
useful information and a good starting point.

* add MarkWorldUpdate method
2018-01-06 19:38:14 +09:00
YVT
d45678b3c8
Merge pull request #700 from fantoro/patch-1
Update README.md
2018-01-01 17:10:07 +09:00
fantoro
97a28cff10
Update README.md
I removed the PPA because I gave up, debian packaging is a fucking nightmare.
2018-01-01 02:37:58 +01:00
yvt
b535d4879e Update OpenSpades.h 2018-01-01 00:15:03 +09:00
yvt
c04f7e257d Change the version for real (oopsie!) 2017-12-31 22:32:25 +09:00
yvt
009b0c718e Bump version to 0.1.2 2017-12-31 19:15:21 +09:00
yvt
0eded302cc Update translations 2017-12-31 19:02:26 +09:00
yvt
03cfbdee12 Fix the wrong reference to a config variable 2017-12-31 18:35:12 +09:00
yvt
35bcea5110 Indicate that you carry the intel
Fixes #601.
2017-12-30 23:47:47 +09:00
yvt
c654b7074b TextViewer: Support text selection and the copy operation
Fixes #417.
2017-12-30 23:23:07 +09:00
yvt
8e7cf01492 Refactor AngelScript code
Split huge source files
2017-12-30 22:06:38 +09:00
yvt
604d82eee4 Fix #592 2017-12-30 21:19:21 +09:00
yvt
5948ef1a2a Exclude unknown configs in the in-game config editor
Fixes #693.
2017-12-30 21:02:36 +09:00
yvt
4b4e8ec217 Eliminate an undefined behavior 2017-12-30 20:44:57 +09:00
yvt
f702eca1d8 Fix crash on server connection 2017-12-30 04:28:50 +09:00
yvt
c2b00aa464 Update openspades.pot 2017-12-29 21:07:01 +09:00
yvt
28cd9a3c87 clang-format 2017-12-29 20:49:10 +09:00
yvt
4cb5c578c5 Eliminate compiler warning 2017-12-29 20:47:20 +09:00
yvt
3086f03cf9 Accept handshake packets anytime
Fixes #644.
2017-12-29 20:46:35 +09:00
yvt
77dfedb533 Fix #678 for real 2017-12-29 20:35:32 +09:00
yvt
336d476e8d Attempt to enable follow cam when no one's there no longer leaves you in an invalid state 2017-12-29 20:34:31 +09:00
yvt
a8dbe92423 Rename a config variable to follow the naming convention 2017-12-29 20:17:43 +09:00