587 if (!HASBIT(1<<0|1<<3|1<<6|1<<9, _cur_month)) |
587 if (!HASBIT(1<<0|1<<3|1<<6|1<<9, _cur_month)) |
588 return; |
588 return; |
589 |
589 |
590 FOR_ALL_PLAYERS(p) { |
590 FOR_ALL_PLAYERS(p) { |
591 if (p->is_active) { |
591 if (p->is_active) { |
592 memmove(&p->old_economy, &p->cur_economy, sizeof(p->old_economy)); |
592 memmove(&p->old_economy[1], &p->old_economy[0], sizeof(p->old_economy) - sizeof(p->old_economy[0])); |
|
593 p->old_economy[0] = p->cur_economy; |
593 memset(&p->cur_economy, 0, sizeof(p->cur_economy)); |
594 memset(&p->cur_economy, 0, sizeof(p->cur_economy)); |
594 |
595 |
595 if (p->num_valid_stat_ent != 24) |
596 if (p->num_valid_stat_ent != 24) p->num_valid_stat_ent++; |
596 p->num_valid_stat_ent++; |
|
597 |
597 |
598 UpdateCompanyRatingAndValue(p, true); |
598 UpdateCompanyRatingAndValue(p, true); |
599 PlayersCheckBankrupt(p); |
599 PlayersCheckBankrupt(p); |
600 |
600 |
601 if (p->block_preview != 0) |
601 if (p->block_preview != 0) p->block_preview--; |
602 p->block_preview--; |
|
603 } |
602 } |
604 } |
603 } |
605 |
604 |
606 InvalidateWindow(WC_INCOME_GRAPH, 0); |
605 InvalidateWindow(WC_INCOME_GRAPH, 0); |
607 InvalidateWindow(WC_OPERATING_PROFIT, 0); |
606 InvalidateWindow(WC_OPERATING_PROFIT, 0); |