From 4a62b4f1eed406d74a998a158d442ad4cc04e5b9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 13 Feb 2011 17:51:32 +0200 Subject: Set weight notice message not modal and hide it after 10 seconds. --- src/localplayer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/localplayer.cpp') diff --git a/src/localplayer.cpp b/src/localplayer.cpp index df4cad26f..b41f1d971 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -89,6 +89,8 @@ const short awayLimitTimer = 60; LocalPlayer *player_node = NULL; extern std::list beingInfoCache; +extern OkDialog *weightNotice; +extern int weightNoticeTime; LocalPlayer::LocalPlayer(int id, int subtype): Being(id, PLAYER, subtype, 0), @@ -235,6 +237,13 @@ void LocalPlayer::logic() } } + if (weightNotice && weightNoticeTime < cur_time) + { + weightNotice->scheduleDelete(); + weightNotice = 0; + weightNoticeTime = 0; + } + // Show XP messages if (!mMessages.empty()) { -- cgit v1.2.3-70-g09d2