private void AutoOrderToTileNow(Caravan c, int tile) { if (tile >= 0 && (tile != c.Tile || c.pather.Moving)) { int num = CaravanUtility.BestGotoDestNear(tile, c); if (num >= 0) { c.pather.StartPath(num, null, repathImmediately: true); c.gotoMote.OrderedToTile(num); SoundDefOf.ColonistOrdered.PlayOneShotOnCamera(); } } }
private void AutoOrderToTileNow(Caravan c, int tile) { if (tile < 0 || (tile == c.Tile && !c.pather.Moving)) { return; } int num = CaravanUtility.BestGotoDestNear(tile, c); if (num >= 0) { c.pather.StartPath(num, null, true, true); c.gotoMote.OrderedToTile(num); SoundDefOf.ColonistOrdered.PlayOneShotOnCamera(null); } }