[Add] noidle state.

This commit is contained in:
Allanis 2013-11-28 02:46:45 +00:00
parent 8716d14016
commit 66c0ef8d9f
3 changed files with 6 additions and 1 deletions

View File

5
scripts/ai/noidle.lua Normal file
View File

@ -0,0 +1,5 @@
include("../scripts/ai/tpl/generic.lua")
-- No idle function, ship won't react until it detects enemies.
function idle()
end

View File

@ -548,7 +548,7 @@ static void data_name(void) {
strncpy(dataname, xml_get(node), DATA_NAME_LEN);
dataname[DATA_NAME_LEN-1] = '\0';
}
} while((node = node->next));
} while(xml_nextNode(node));
xmlFreeDoc(doc);
free(buf);