/*
Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
#include "cutscene.h"
+List sceneList;
+
void createSceneList()
{
char sceneLine[1024] = "";
line = strtok(NULL, "\n");
}
- if (strcmp(line, "@none@") != 0)
+ if (scene && strcmp(line, "@none@") != 0)
{
scene->appendText(line);
}
char sceneLine[1024];
if (!engine.loadData(_("data/ending")))
- graphics.showErrorAndExit("Couldn't load cutscene data file (%s)", _("data/ending"));
+ return graphics.showErrorAndExit("Couldn't load cutscene data file (%s)", _("data/ending")), false;
char *line = strtok((char*)engine.dataBuffer, "\n");
int i = 0;