Spawner updates.

This commit is contained in:
Steve 2016-04-14 11:56:58 +01:00
parent 9c8b7af0d6
commit 7eee4d3d8e
3 changed files with 2 additions and 4 deletions

View File

@ -218,9 +218,9 @@ static void executeNextLine(ScriptRunner *runner)
{
activateNextWaypoint();
}
else if (strcmp(command, "ACTIVATE_SPAWNERS") == 0)
else if (strcmp(command, "ACTIVATE_SPAWNER") == 0)
{
sscanf(line, "%*s %[^;] %d", strParam[0], &intParam[0]);
sscanf(line, "%*s %d %[^\n]", &intParam[0], strParam[0]);
activateSpawner(strParam[0], intParam[0]);
}
else if (strcmp(command, "MSG_BOX") == 0)

View File

@ -116,7 +116,6 @@ void loadSpawners(cJSON *node)
s->types = toTypeArray(cJSON_GetObjectItem(node, "types")->valuestring, &s->numTypes);
s->side = lookup(cJSON_GetObjectItem(node, "side")->valuestring);
s->interval = cJSON_GetObjectItem(node, "interval")->valueint * FPS;
s->limit = getJSONValue(node, "limit", 0);
s->total = getJSONValue(node, "total", 0);
s->step = cJSON_GetObjectItem(node, "step")->valueint;
s->offscreen = getJSONValue(node, "offscreen", 0);

View File

@ -314,7 +314,6 @@ struct Spawner {
int side;
int time;
int interval;
int limit;
int total;
int step;
int offscreen;