equal
deleted
inserted
replaced
698 #ifdef ENABLE_NETWORK |
698 #ifdef ENABLE_NETWORK |
699 if (_network_server) |
699 if (_network_server) |
700 NetworkServerYearlyLoop(); |
700 NetworkServerYearlyLoop(); |
701 #endif /* ENABLE_NETWORK */ |
701 #endif /* ENABLE_NETWORK */ |
702 |
702 |
|
703 /* check if we reached 2090, that's the maximum year. */ |
|
704 if (_cur_year == 131) { // end of game on 31 dec 2050 |
|
705 ShowEndGameChart(); |
703 /* check if we reached 2090 (MAX_YEAR_END_REAL), that's the maximum year. */ |
706 /* check if we reached 2090 (MAX_YEAR_END_REAL), that's the maximum year. */ |
704 if (_cur_year == (MAX_YEAR_END + 1)) { |
707 } else if (_cur_year == (MAX_YEAR_END + 1)) { |
705 Vehicle *v; |
708 Vehicle *v; |
706 _cur_year = MAX_YEAR_END; |
709 _cur_year = MAX_YEAR_END; |
707 _date = 62093; |
710 _date = 62093; |
708 FOR_ALL_VEHICLES(v) { |
711 FOR_ALL_VEHICLES(v) { |
709 v->date_of_last_service -= 365; // 1 year is 365 days long |
712 v->date_of_last_service -= 365; // 1 year is 365 days long |