Skip to content

Commit

Permalink
only return terminal when arrived
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriopass committed Apr 3, 2021
1 parent 6856d89 commit bb91d65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions egregoria/src/map_dynamic/itinerary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ impl Itinerary {
}

pub fn get_terminal(&self) -> Option<Vec2> {
if !self.is_terminal() {
return None;
}
match &self.kind {
ItineraryKind::None
| ItineraryKind::WaitUntil(_)
Expand Down

0 comments on commit bb91d65

Please sign in to comment.