aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r--src/gameplay.cpp25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
index 2b540d9..00faf70 100644
--- a/src/gameplay.cpp
+++ b/src/gameplay.cpp
@@ -196,6 +196,8 @@ void commonTriggerFunc(Mob *callee){
XMLDocument xml;
XMLElement *exml;
+ char *text,*pch;
+
if(!lock){
lock = true;
@@ -206,16 +208,23 @@ void commonTriggerFunc(Mob *callee){
exml = exml->NextSiblingElement();
player->vel.x = 0;
-
- std::cout<<"1\n";
+
ui::toggleBlackFast();
- std::cout<<"2\n";
ui::waitForCover();
- std::cout<<"3\n";
- ui::importantText(exml->GetText());
- std::cout<<"4\n";
- ui::waitForDialog();
- std::cout<<"5\n";
+
+ text = new char[256];
+ strcpy(text,exml->GetText());
+ pch = strtok(text,"\n");
+
+ while(pch){
+ ui::importantText(pch);
+ ui::waitForDialog();
+
+ pch = strtok(NULL,"\n");
+ }
+
+ delete[] text;
+
ui::toggleBlackFast();
callee->alive = false;