From 104b8b4bbcf97809354541ce2f7440b3268e314d Mon Sep 17 00:00:00 2001 From: Faerbit Date: Mon, 15 Dec 2014 23:36:22 +0100 Subject: [PATCH] Made trigger more presentation friendly. --- Levels/ObjectSetups/Level1.xml | 6 +++--- level.cc | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Levels/ObjectSetups/Level1.xml b/Levels/ObjectSetups/Level1.xml index cf342cb..3c74fa3 100644 --- a/Levels/ObjectSetups/Level1.xml +++ b/Levels/ObjectSetups/Level1.xml @@ -97,10 +97,10 @@ bla - 15.0 + 25.0 14.0 - 0.0 - 4.0 + 5.5 + 5.0 false 1 5 diff --git a/level.cc b/level.cc index b5ee2bc..ecda283 100644 --- a/level.cc +++ b/level.cc @@ -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() {