[Add] noidle state.
This commit is contained in:
parent
8716d14016
commit
66c0ef8d9f
0
dat/missions/emp_collective05.lua
Normal file
0
dat/missions/emp_collective05.lua
Normal file
5
scripts/ai/noidle.lua
Normal file
5
scripts/ai/noidle.lua
Normal 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
|
@ -548,7 +548,7 @@ static void data_name(void) {
|
|||||||
strncpy(dataname, xml_get(node), DATA_NAME_LEN);
|
strncpy(dataname, xml_get(node), DATA_NAME_LEN);
|
||||||
dataname[DATA_NAME_LEN-1] = '\0';
|
dataname[DATA_NAME_LEN-1] = '\0';
|
||||||
}
|
}
|
||||||
} while((node = node->next));
|
} while(xml_nextNode(node));
|
||||||
|
|
||||||
xmlFreeDoc(doc);
|
xmlFreeDoc(doc);
|
||||||
free(buf);
|
free(buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user