5 lines
171 B
Plaintext
5 lines
171 B
Plaintext
|
function c_deleteunit(x, y, target) {
|
||
|
array_remove(global.map[x][y].contents, target);
|
||
|
array_remove(global.units[target.alignment], target);
|
||
|
instance_destroy(target);
|
||
|
}
|