src/ship_gui.cpp
branchgamebalance
changeset 9903 dc85aaa556ae
parent 6524 44e22a9b2c97
child 9908 0fa543611bbe
equal deleted inserted replaced
9902:ed8f92929297 9903:dc85aaa556ae
    46 
    46 
    47 			SetDParam(1, year);
    47 			SetDParam(1, year);
    48 
    48 
    49 			SetDParam(0, (v->age + 365 < v->max_age) ? STR_AGE : STR_AGE_RED);
    49 			SetDParam(0, (v->age + 365 < v->max_age) ? STR_AGE : STR_AGE_RED);
    50 			SetDParam(2, v->max_age / 366);
    50 			SetDParam(2, v->max_age / 366);
    51 			SetDParam(3, ShipVehInfo(v->engine_type)->running_cost * _price.ship_running >> 8);
    51 			SetDParam(3, ShipVehInfo(v->engine_type)->running_cost * _eco->GetPrice(CEconomy::SHIP_RUNNING) >> 8);
    52 			DrawString(2, 15, STR_9812_AGE_RUNNING_COST_YR, 0);
    52 			DrawString(2, 15, STR_9812_AGE_RUNNING_COST_YR, 0);
    53 		}
    53 		}
    54 
    54 
    55 		/* Draw max speed */
    55 		/* Draw max speed */
    56 		{
    56 		{