- 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.
* 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
- 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.
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.
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..."