diff options
Diffstat (limited to 'src/core/player.cc')
-rw-r--r-- | src/core/player.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/player.cc b/src/core/player.cc index a642371..6385992 100644 --- a/src/core/player.cc +++ b/src/core/player.cc @@ -42,6 +42,7 @@ void Player::clear() player_ping = 0; player_level = 1; + player_warningtime = 0; } @@ -64,6 +65,12 @@ void Player::send(const std::string text) message(core::Message::Info, text); } +void Player::send_warning(const std::string text) +{ + message(core::Message::Info, text); + player_warningtime = application()->time(); +} + void Player::sound(const std::string name) { application()->notify_sound(name.c_str()); |