/*
-Copyright (C) 2004-2010 Parallel Realities
+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
if (!line[i])
{
- graphics.showErrorAndExit("Malformed Intro Data", "");
+ return graphics.showErrorAndExit("Malformed Intro Data", "");
}
text[i] = NULL;
graphics.updateScreen();
engine.getInput();
config.populate();
- if (engine.keyState[SDLK_ESCAPE])
+ if (engine.keyState[SDL_SCANCODE_ESCAPE])
break;
SDL_Delay(16);
}
audio.playMusic();
- char *line = strtok((char*)engine.dataBuffer, "\n");
+ strtok((char*)engine.dataBuffer, "\n");
while (true)
{
- line = strtok(NULL, "\n");
+ char *line = strtok(NULL, "\n");
sscanf(line, "%d %d %d", &x, &y, &delay);
if (delay == -1)