35 Commits

Author SHA1 Message Date
yvt
a0c9a661eb
Remove unused variables 2019-07-20 17:12:45 +09:00
yvt
60fd3191c5
Remove Handle::operator T*(), discouraging conversion to raw pointers
It was replaced by `Handle::GetPointerOrNull()`. Every use of
`GetPointerOrNull` should be reviewed. Some of them were already removed.
2019-07-20 15:47:42 +09:00
yvt
7b3d6bf28d
Change the return type of HotTrackedPlayer 2019-07-17 11:11:52 +09:00
yvt
5db97f7f10
clang-format 2019-07-17 00:31:22 +09:00
yvt
7c3a39e639
Modernize
- Replaced raw pointers with references or smart pointers. Nullable
  references are represented by `stmp::optional<const T&>`. (There are
  many raw pointers still remaining. They should be replaced at some
  point.)
- Added class template specializations `stmp::optional<T &>` and
  `stmp::optional<const T&>`.
- Fixed `stmp::optional`'s various behaviors
- `World::{players, playerPersistents}` are now `std::array`.
- More uses of `stmp::optional` to clarify the semantics
- Renamed `PlayerThrownGrenade` to `PlayerThrewGrenade`
- Replaced old-style `for` loops with range based ones
- Deleted `Player`'s default constructors and `operator =`
- Deleted `TCGameMode`'s default constructor and `operator =`
- Deleted `CTFGameMode`'s default constructor and `operator =`
- Replaced `static_cast` with `dynamic_cast` for down-casting
- `RefCountedObject::operator*()` no longer requires non-constness to
  return `T &`.
- Replaced the uses of `std::vector::operator[]` with `std::vector::at`
  for bounds checking.
- Made some methods of `GameMap` `const`.
- Added some null checks.
2019-07-17 00:31:00 +09:00
yvt
cf2ecb4342
Apply temporal smoothing on the progress bar 2019-05-19 17:20:50 +09:00
yvt
cd3304ef24
Display a progress bar when receiving a map
Replaces the old useless "num-bytes-loaded/16777216" message with a
real progress bar.
2019-05-19 16:25:39 +09:00
yvt
c7fb662f77 Remove dead code 2018-12-31 21:35:37 +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
35bcea5110 Indicate that you carry the intel
Fixes #601.
2017-12-30 23:47:47 +09:00
yvt
28cd9a3c87 clang-format 2017-12-29 20:49:10 +09:00
yvt
2f5a21be1e Prevent a dead player from being first-person spectated
Fixes #679.
2017-12-29 20:15:23 +09:00
yvt
4bd819adcd Fix spectator display and keyboard input
- Fixes #681 (Pressing space while in free-camera mode does not move up).
- Fixes #678 (Have seconday fire cycle through the player list backwards
  in sepctator mode).
- "Stop following a player" is bound to "R" (reload) by default.
- Add help messages displayed on the screen.
2017-12-29 20:06:49 +09:00
yvt
842d34c92f Display more HUD elements in the first-person spectate mode
Fixes #682.
2017-12-29 19:21:44 +09:00
yvt
660066fc2f Rewrite the camera control logic
- Fixes #664
- Fixes #520
2017-12-05 15:42:24 +09:00
yvt
3e4c92bd8c Bring scoreboard to the front so it won’t be covered by center-aligned messages
Fixes #535 (?)
2017-01-12 22:06:16 +09:00
yvt
9f30e9edfc Fix #499 2017-01-08 00:17:51 +09:00
yvt
d935ea6d18 Change the font of ammo count back 2016-12-17 04:26:55 +09:00
yvt
d505bfae91 Expose “FontManager” to the scripting environment 2016-12-16 05:05:23 +09:00
Tomoaki Kawada
2eb9e35c65 Apply clang-format to all non-external source files 2016-12-03 18:23:47 +09:00
Tomoaki Kawada
6a7af96daf Refactor setting variables 2016-11-19 21:27:13 +09:00
Tomoaki Kawada
2bc2bcac26 Water shader: level 3
Screen-space reflections (hybrid w/planar reflections) & refractions!
2016-11-11 02:53:48 +09:00
Tomoaki Kawada
3f7fcee586 Reorganise resource files 2016-07-16 00:14:59 +09:00
Chameleonhider
cae574d972 Configure-able player name drawing
Currently, hottracked player names are drawn on top of crosshair
together with distance to them. Center of screen is important region and
thus it should be configure-able.  This allows you to disable drawing
name on the whole or just disable drawing the distance. Also possible to
position the name wherever you want.
2016-02-10 18:35:55 +02:00
Bridger Maskrey
70f15430cd Server Disconnect Screen
Sources/Client/Client.cpp:
  + Added call to Client::DrawDisconnectScreen() in client destructor

Sources/Client/Client.h:
  + Added new prototype Client::DrawDisconnectScreen()

Sources/Client/Client_Draw.cpp:
  + Added function declaration for Client::DrawDisconnectScreen()
  * New Localization Introduced: "Client":"Disconnecting..."

Resources/de/openspades.po:
  + Added rudimentary German translation for "Client":"Disconnecting..."

Resources/ja/openspades.po:
  + Added rudimentary Japanese translation for "Client":"Disconnecting..."

Resources/ko/openspades.po:
  + Added rudimentary Korean translation for "Client":"Disconnecting..."

Resources/pl_PL/pl_PL:
  + Added rudimentary Polish translation for "Client":"Disconnecting..."

Resources/pot/openspades.pot:
  + Added translation entry for "Client":"Disconnecting..."

Resources/ru/openspades.po:
  + Added rudimentary Russian translation for "Client":"Disconnecting..."
2016-01-09 21:42:44 -05:00
yvt
d856bcadaa Reduce compiler warnings 2014-04-06 22:42:17 +09:00
yvt
0cd1e88583 cg_hideHud now hides centered messages 2014-04-05 23:38:43 +09:00
yvt
f5a8335d9d Hide HUD by cg_hideHud 2014-04-01 02:34:39 +09:00
yvt
817ce53c23 Statistics (fix #202) 2014-03-31 23:09:47 +09:00
yvt
94842c1442 Fix #214
http://www-01.ibm.com/support/docview.wss?uid=swg21391054
2014-03-25 14:43:35 +09:00
Marco Schlumpp
353c8d8df4 Added PNG support for screenshots. 2014-03-16 17:20:20 +01:00
yvt
18f8405aae Support for writing JPEG images (fixing #187) 2014-03-16 00:23:20 +09:00
yvt
7246cf6234 Show alert on screenshot 2014-03-15 23:21:12 +09:00
yvt
cf8d4f3cb0 Alerts 2014-03-11 03:42:04 +09:00
yvt
2599d14900 Refactor 2014-03-09 21:43:38 +09:00