chiark / gitweb /
rework seg_clear_stale and fix up
authorian <ian>
Sun, 13 Apr 2008 15:35:12 +0000 (15:35 +0000)
committerian <ian>
Sun, 13 Apr 2008 15:35:12 +0000 (15:35 +0000)
hostside/safety.c

index c01e94022c9464e514b8d2ecf5fb3102db29c0b4..624eb7ef63ac37b404d54546ec7ddc24c5d1946b 100644 (file)
@@ -13,10 +13,8 @@ Train *trains;
 Segment *segments;
 
 static void seg_clear_stale(Segment *seg) {
-  if (!seg->tr_updated) {
-    seg->owner= 0;
-    seg->until_here= seg->until_detect= 0;
-  }
+  seg->owner= 0;
+  seg->until_here= seg->until_detect= 0;
 }
 
 typedef struct {
@@ -61,7 +59,6 @@ static void lay_train_pass(LayTrainState *l,
                                seg->owner->pname);
          return;
        }
-       seg_clear_stale(seg);
       }
     }