From b1edcc822f95bdf619e1164e0d42325a71073452 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sat, 22 Sep 2012 17:36:10 +0200 Subject: Various fixes - disabled UserDir() in path lookup - fixed crashes on loading missions in CObject - fixed texture bug in CTerrain - changed mouse move event handling to avoid flooding event queue - enabled all missions for testing --- src/common/event.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/common') diff --git a/src/common/event.cpp b/src/common/event.cpp index 87c8a5c..4e5ec1a 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -14,10 +14,10 @@ // * You should have received a copy of the GNU General Public License // * along with this program. If not, see http://www.gnu.org/licenses/. -// event.cpp #include "common/event.h" #include "common/iman.h" +#include "common/logger.h" static EventType g_uniqueEventType = EVENT_USER; @@ -54,7 +54,11 @@ void CEventQueue::Flush() Else, adds the event to the queue and returns \c true. */ bool CEventQueue::AddEvent(const Event &event) { - if ( m_total >= MAX_EVENT_QUEUE ) return false; + if ( m_total >= MAX_EVENT_QUEUE ) + { + GetLogger()->Warn("Event queue flood!\n"); + return false; + } m_fifo[m_head++] = event; if ( m_head >= MAX_EVENT_QUEUE ) m_head = 0; -- cgit v1.2.3-1-g7c22