Fixing issues with very small timeouts in network games.
This commit is contained in:
@@ -31,6 +31,8 @@ MyTimeoutLabel::~MyTimeoutLabel()
|
||||
|
||||
void MyTimeoutLabel::startTimeOutAnimation(int secs, bool beep) {
|
||||
|
||||
if (secs >= 4) // smaller timeouts may lead to errors/endless loops below
|
||||
{
|
||||
isBeepPlayed = FALSE;
|
||||
isBeep = beep;
|
||||
|
||||
@@ -59,9 +61,10 @@ void MyTimeoutLabel::startTimeOutAnimation(int secs, bool beep) {
|
||||
realTimer.reset();
|
||||
realTimer.start();
|
||||
|
||||
// std::cout << timerIntervall << endl;
|
||||
// std::cout << timerIntervall << endl;
|
||||
timeOutAnimation = TRUE;
|
||||
timeOutAnimationTimer->start(timerIntervall);
|
||||
}
|
||||
}
|
||||
|
||||
void MyTimeoutLabel::startTimeOutAnimationNow() {
|
||||
|
||||
Reference in New Issue
Block a user