function c_deleteunit(x, y, target) {
array_remove(global.map[x][y].contents, target);
array_remove(global.units[target.alignment], target);
instance_destroy(target);
}