From: ian Date: Tue, 15 Jul 2008 00:27:41 +0000 (+0000) Subject: allow stastate to override picion on even if they come in different order (eg due... X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=f7c44acdebeb6a9703633c92082110214bae5caf;p=trains.git allow stastate to override picion on even if they come in different order (eg due to replay) --- diff --git a/hostside/gui-plan.c b/hostside/gui-plan.c index 088f57e..940d009 100644 --- a/hostside/gui-plan.c +++ b/hostside/gui-plan.c @@ -517,7 +517,7 @@ static void mx_redraw_feat(int s, int f) { SegState *ss= &state[s]; SegmovfeatState *fs= &ss->mfs[f]; fs->flags= ss->flags; - fs->flags.on= poweron; + fs->flags.on= stastate > Sta_Off && poweron; if (stastate==Sta_Resolving) fs->flags.trainown= ss->flags.resolution_problem ? 2 : 0; redraw_mark(fs); @@ -687,9 +687,6 @@ static void si_stastate(ParseState *ps) { state[s].owner= 0; } } - if (stastate <= Sta_Off) { - poweron= 0; - } mx_redraw_all(); }