From: ian Date: Sun, 27 Jul 2008 13:55:23 +0000 (+0000) Subject: increase headroom X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=9a43b80724270d5d59b936e4e41a7ca12aefe251;p=trains.git increase headroom --- diff --git a/hostside/safety.c b/hostside/safety.c index bea01b3..2df7bb6 100644 --- a/hostside/safety.c +++ b/hostside/safety.c @@ -1015,7 +1015,7 @@ static int report_nextseg(TrackLocation *t, struct TrackAdvanceContext *c, int r; u->lookahead++; - if (u->lookahead > (int)(NUM_SEGMENTS * 1.5)) { + if (u->lookahead > NUM_SEGMENTS * 2) { ouprintf(" [... infinite loop!]\n"); abort(); }