diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-22 17:36:10 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-22 17:36:10 +0200 |
commit | b1edcc822f95bdf619e1164e0d42325a71073452 (patch) | |
tree | be8c39560b809ab0f75143df3960323b135cca6b /src/common | |
parent | fd09071c29452bdfea2c519f0defbffebee42f4c (diff) | |
download | colobot-b1edcc822f95bdf619e1164e0d42325a71073452.tar.gz colobot-b1edcc822f95bdf619e1164e0d42325a71073452.tar.bz2 colobot-b1edcc822f95bdf619e1164e0d42325a71073452.zip |
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
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/event.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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; |