equal
deleted
inserted
replaced
665 // (this is because _score_info is not saved to a savegame) |
665 // (this is because _score_info is not saved to a savegame) |
666 FOR_ALL_PLAYERS(p2) |
666 FOR_ALL_PLAYERS(p2) |
667 if (p2->is_active) |
667 if (p2->is_active) |
668 UpdateCompanyRatingAndValue(p2, false); |
668 UpdateCompanyRatingAndValue(p2, false); |
669 |
669 |
670 w->custom[0] = 74; |
670 w->custom[0] = DAY_TICKS; |
671 w->custom[1] = 5; |
671 w->custom[1] = 5; |
672 |
672 |
673 w->click_state = 1 << 13; |
673 w->click_state = 1 << 13; |
674 |
674 |
675 SetWindowDirty(w); |
675 SetWindowDirty(w); |
677 break; |
677 break; |
678 case WE_TICK: |
678 case WE_TICK: |
679 { |
679 { |
680 // Update the player score every 5 days |
680 // Update the player score every 5 days |
681 if (--w->custom[0] == 0) { |
681 if (--w->custom[0] == 0) { |
682 w->custom[0] = 74; |
682 w->custom[0] = DAY_TICKS; |
683 if (--w->custom[1] == 0) { |
683 if (--w->custom[1] == 0) { |
684 Player *p2; |
684 Player *p2; |
685 w->custom[1] = 5; |
685 w->custom[1] = 5; |
686 FOR_ALL_PLAYERS(p2) |
686 FOR_ALL_PLAYERS(p2) |
687 // Skip if player is not active |
687 // Skip if player is not active |