summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/errorstateplugins
diff options
context:
space:
mode:
Diffstat (limited to 'examples/statemachine/errorstateplugins')
-rw-r--r--examples/statemachine/errorstateplugins/random_ai/random_ai_plugin.cpp2
-rw-r--r--examples/statemachine/errorstateplugins/random_ai/random_ai_plugin.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/statemachine/errorstateplugins/random_ai/random_ai_plugin.cpp b/examples/statemachine/errorstateplugins/random_ai/random_ai_plugin.cpp
index 429e3ca..135c7b6 100644
--- a/examples/statemachine/errorstateplugins/random_ai/random_ai_plugin.cpp
+++ b/examples/statemachine/errorstateplugins/random_ai/random_ai_plugin.cpp
@@ -17,7 +17,7 @@ QState *RandomAiPlugin::create(QState *parentState, Tank *tank)
topLevel->setInitialState(selectNextActionState);
QState *fireState = new RandomDistanceState(topLevel);
- connect(fireState, SIGNAL(distanceComputed(qreal)), tank, SLOT(fireCannon(qreal)));
+ connect(fireState, SIGNAL(distanceComputed(qreal)), tank, SLOT(fireCannon()));
selectNextActionState->addTransition(selectNextActionState, SIGNAL(fireSelected()), fireState);
QState *moveForwardsState = new RandomDistanceState(topLevel);
diff --git a/examples/statemachine/errorstateplugins/random_ai/random_ai_plugin.h b/examples/statemachine/errorstateplugins/random_ai/random_ai_plugin.h
index 27c9b92..758b3e8 100644
--- a/examples/statemachine/errorstateplugins/random_ai/random_ai_plugin.h
+++ b/examples/statemachine/errorstateplugins/random_ai/random_ai_plugin.h
@@ -47,7 +47,7 @@ signals:
protected:
void onEntry()
{
- emit distanceComputed(qreal(qrand() % 10));
+ emit distanceComputed(qreal(qrand() % 180));
}
};