chiark / gitweb /
Obsolete playing_isscratch. The constant still exists as a transition
[disorder] / server / server-queue.c
index 779e5e175b6bd318f0bb06ca547344bdd8970129..e65477ce6349ff7007e0f02c4f8eeb250c96f7a8 100644 (file)
@@ -85,9 +85,12 @@ static void queue_do_read(struct queue_entry *head, const char *path) {
       /* Fix up origin field as best we can; will be wrong in some cases but
        * hopefully not too horribly so. */
       q->origin = q->submitter ? origin_picked : origin_random;
+      /* Eliminated obsolete states, since they are assumed elsewhere not to be
+       * set. */
       switch(q->state) {
       case playing_isscratch:
         q->origin = origin_scratch;
+        q->state = playing_unplayed;
         break;
       case playing_random:
         q->state = playing_unplayed;