forked from electronicarts/CnC_Generals_Zero_Hour
-
Notifications
You must be signed in to change notification settings - Fork 176
Double tab unit centering is frame based #2531
Copy link
Copy link
Open
Labels
BugSomething is not working right, typically is user facingSomething is not working right, typically is user facingInputMinorSeverity: Minor < Major < Critical < BlockerSeverity: Minor < Major < Critical < Blocker
Description
This needs to be changed to time based double tab.
DEBUG_LOG(("META: select team %d",group));
UnsignedInt now = TheGameLogic->getFrame(); // <---- bad
if ( m_lastGroupSelTime == 0 )
{
m_lastGroupSelTime = now;
}
Bool performSelection = TRUE;
// check for double-press to jump view
if ( now - m_lastGroupSelTime < 20 && group == m_lastGroupSelGroup )
{
DEBUG_LOG(("META: DOUBLETAP select team %d",group));Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugSomething is not working right, typically is user facingSomething is not working right, typically is user facingInputMinorSeverity: Minor < Major < Critical < BlockerSeverity: Minor < Major < Critical < Blocker