comparison src/engine.cpp @ 9234:02827bf3dc03 draft

(svn r13100) -Codechange: reduce the amount of parameters passed via AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls.
author rubidium <rubidium@openttd.org>
date Thu, 15 May 2008 13:39:36 +0000 (2008-05-15)
parents 0b8bbdd54e9a
children 9290d63a3ed8
comparison
equal deleted inserted replaced
9233:624106a1977d 9234:02827bf3dc03
466 } 466 }
467 } 467 }
468 468
469 SetDParam(0, GetEngineCategoryName(index)); 469 SetDParam(0, GetEngineCategoryName(index));
470 SetDParam(1, index); 470 SetDParam(1, index);
471 AddNewsItem(STR_NEW_VEHICLE_NOW_AVAILABLE_WITH_TYPE, NM_CALLBACK, NF_NONE, NT_NEW_VEHICLES, DNC_VEHICLEAVAIL, index, 0); 471 AddNewsItem(STR_NEW_VEHICLE_NOW_AVAILABLE_WITH_TYPE, NS_NEW_VEHICLES, index, 0);
472 } 472 }
473 473
474 void EnginesMonthlyLoop() 474 void EnginesMonthlyLoop()
475 { 475 {
476 if (_cur_year < YEAR_ENGINE_AGING_STOPS) { 476 if (_cur_year < YEAR_ENGINE_AGING_STOPS) {