(svn r166) -Codechange: change 74 for constant DAY_TICKS

This commit is contained in:
darkvater
2004-09-06 18:22:25 +00:00
parent bf0652d3fc
commit aa02125158
4 changed files with 8 additions and 9 deletions

View File

@@ -667,7 +667,7 @@ static void PerformanceRatingDetailWndProc(Window *w, WindowEvent *e)
if (p2->is_active)
UpdateCompanyRatingAndValue(p2, false);
w->custom[0] = 74;
w->custom[0] = DAY_TICKS;
w->custom[1] = 5;
w->click_state = 1 << 13;
@@ -679,7 +679,7 @@ static void PerformanceRatingDetailWndProc(Window *w, WindowEvent *e)
{
// Update the player score every 5 days
if (--w->custom[0] == 0) {
w->custom[0] = 74;
w->custom[0] = DAY_TICKS;
if (--w->custom[1] == 0) {
Player *p2;
w->custom[1] = 5;