chiark / gitweb /
allow stastate to override picion on even if they come in different order (eg due...
authorian <ian>
Tue, 15 Jul 2008 00:27:41 +0000 (00:27 +0000)
committerian <ian>
Tue, 15 Jul 2008 00:27:41 +0000 (00:27 +0000)
hostside/gui-plan.c

index 088f57e7cc69d22eb3860c05f466fc6f5f28a2a3..940d00900430228eeda2a0306d007458df8545bf 100644 (file)
@@ -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();
 }