Made trigger more presentation friendly.

This commit is contained in:
Faerbit 2014-12-15 23:36:22 +01:00
parent 13c9893a47
commit 70aab2a58f
2 changed files with 9 additions and 5 deletions

View File

@ -97,10 +97,10 @@
<trigger>
<name>bla</name>
<xPosition>15.0</xPosition>
<xPosition>25.0</xPosition>
<yPosition>14.0</yPosition>
<zPosition>0.0</zPosition>
<distance>4.0</distance>
<zPosition>5.5</zPosition>
<distance>5.0</distance>
<isBiggerThan>false</isBiggerThan>
<idGreen>1</idGreen>
<idBlue>5</idBlue>

View File

@ -316,7 +316,7 @@ void Level::load() {
functionPointer = &trigger_function_4;
break;
default:
printf("Trigger function could not be found.");
printf("Trigger function could not be found.\n");
}
if (object != 0) {
Trigger trigger = Trigger(position, distance, isBigger, object, functionPointer);
@ -418,7 +418,11 @@ void Level::setSkydomeSize(float size) {
}
void Level::trigger_function_0() {
exit(0);
static bool triggered = false;
if (!triggered) {
printf("Trigger 0 triggered.\n");
}
triggered = true;
}
void Level::trigger_function_1() {