TechRacer: Fix gears not spawning on turn start when player pressed control right at start
The activationStage was horribly programmed and heavily relied on timer. There was a sweet spot
at turn start that if you managed to push a key right at the start of turn, you skip the Ready
phase and the activationStage would advance, causing the gear spawning code to be skipped.
This fix greatly simplies the spawning phase.
#ifndef MOUSEOVERFILTER_H
#define MOUSEOVERFILTER_H
#include <QObject>
#include "ui_hwform.h"
#include "ui/page/AbstractPage.h"
class MouseOverFilter : public QObject
{
Q_OBJECT
public:
explicit MouseOverFilter(QObject *parent = 0);
void setUi(Ui_HWForm *uiForm);
protected:
bool eventFilter( QObject *dist, QEvent *event );
signals:
public slots:
private:
Ui_HWForm *ui;
};
#endif // MOUSEOVERFILTER_H