[openjk] 16/24: Revert "Shared: Probable fix for Sys_QueEvent overflow spam"
Simon McVittie
smcv at debian.org
Sat Jan 21 21:44:02 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository openjk.
commit 7613c10787fc9a3da2b5acd9a79f0ca7ec261312
Author: Ensiform <ensiform at gmail.com>
Date: Sat Dec 24 17:09:09 2016 -0600
Revert "Shared: Probable fix for Sys_QueEvent overflow spam"
This reverts commit 6161dac1bfc40fdc8689431b5376250740651f5b.
---
shared/sys/sys_event.cpp | 25 -------------------------
1 file changed, 25 deletions(-)
diff --git a/shared/sys/sys_event.cpp b/shared/sys/sys_event.cpp
index 268a772..39dc5c5 100644
--- a/shared/sys/sys_event.cpp
+++ b/shared/sys/sys_event.cpp
@@ -91,31 +91,6 @@ void Sys_QueEvent( int time, sysEventType_t type, int value, int value2, int ptr
static bool printedWarning = false;
#endif
- // try to combine all sequential mouse moves in one event
- if ( type == SE_MOUSE )
- {
- // get previous event from queue
- ev = &eventQue[ ( eventHead + MASK_QUED_EVENTS - 1 ) & MASK_QUED_EVENTS ];
- if ( ev->evType == SE_MOUSE )
- {
- if ( eventTail == eventHead && eventTail )
- {
- ev->evValue = 0;
- ev->evValue2 = 0;
- eventTail--;
- }
-
- if ( time == 0 )
- time = Sys_Milliseconds();
-
- ev->evValue += value;
- ev->evValue2 += value2;
- ev->evTime = time;
-
- return;
- }
- }
-
ev = &eventQue[ eventHead & MASK_QUED_EVENTS ];
if ( eventHead - eventTail >= MAX_QUED_EVENTS ) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/openjk.git
More information about the Pkg-games-commits
mailing list