From: Ian Jackson Date: Mon, 3 Jan 2011 23:23:33 +0000 (+0000) Subject: realtime: do not panic if we consider an unknown movposcomb - just predict a problem X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=6824b31ede052d0b1d142191a7470b5534ccf290;p=trains.git realtime: do not panic if we consider an unknown movposcomb - just predict a problem --- diff --git a/hostside/safety.c b/hostside/safety.c index 2780bc0..9214599 100644 --- a/hostside/safety.c +++ b/hostside/safety.c @@ -414,8 +414,8 @@ static int pred_getmovpos(TrackLocation *t, TrackAdvanceContext *c, !t->seg->now_present && t->seg->motion_newplan) *use_io= movpos_change_intent(t->seg->motion_newplan); - if (*use_io<0) safety_panic(u->train, t->seg, - "track route unexpectedly not known"); + if (*use_io<0) + return predict_problem(u, t->seg, "track route not known"); return 0; }