equal
deleted
inserted
replaced
1045 vl->flags = VL_REBUILD; |
1045 vl->flags = VL_REBUILD; |
1046 vl->sort_type = SORT_BY_UNSORTED; |
1046 vl->sort_type = SORT_BY_UNSORTED; |
1047 vl->resort_timer = DAY_TICKS * PERIODIC_RESORT_DAYS; |
1047 vl->resort_timer = DAY_TICKS * PERIODIC_RESORT_DAYS; |
1048 break; |
1048 break; |
1049 |
1049 |
|
1050 case WE_DESTROY: |
|
1051 free(vl->sort_list); |
|
1052 break; |
|
1053 |
1050 case WE_TICK: /* resort the list every 20 seconds orso (10 days) */ |
1054 case WE_TICK: /* resort the list every 20 seconds orso (10 days) */ |
1051 if (--vl->resort_timer == 0) { |
1055 if (--vl->resort_timer == 0) { |
1052 DEBUG(misc, 1) ("Periodic resort ships list player %d station %d", |
1056 DEBUG(misc, 1) ("Periodic resort ships list player %d station %d", |
1053 owner, station); |
1057 owner, station); |
1054 vl->resort_timer = DAY_TICKS * PERIODIC_RESORT_DAYS; |
1058 vl->resort_timer = DAY_TICKS * PERIODIC_RESORT_DAYS; |