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) {
|
void MyTimeoutLabel::startTimeOutAnimation(int secs, bool beep) {
|
||||||
|
|
||||||
|
if (secs >= 4) // smaller timeouts may lead to errors/endless loops below
|
||||||
|
{
|
||||||
isBeepPlayed = FALSE;
|
isBeepPlayed = FALSE;
|
||||||
isBeep = beep;
|
isBeep = beep;
|
||||||
|
|
||||||
@@ -63,6 +65,7 @@ void MyTimeoutLabel::startTimeOutAnimation(int secs, bool beep) {
|
|||||||
timeOutAnimation = TRUE;
|
timeOutAnimation = TRUE;
|
||||||
timeOutAnimationTimer->start(timerIntervall);
|
timeOutAnimationTimer->start(timerIntervall);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void MyTimeoutLabel::startTimeOutAnimationNow() {
|
void MyTimeoutLabel::startTimeOutAnimationNow() {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user