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