player_gui.c
changeset 4293 2c24234a7aec
parent 4286 a040bf5c203d
child 4299 b86602eaaff1
equal deleted inserted replaced
4292:3b8a1536c1ed 4293:2c24234a7aec
    44 		year = _cur_year - 2;
    44 		year = _cur_year - 2;
    45 		j = 3;
    45 		j = 3;
    46 		x = 215;
    46 		x = 215;
    47 		tbl = p->yearly_expenses + 2;
    47 		tbl = p->yearly_expenses + 2;
    48 		do {
    48 		do {
    49 			if (year >= p->inaugurated_year) {
    49 			if (year >= BASE_YEAR + p->inaugurated_year) {
    50 				SetDParam(0, BASE_YEAR + year);
    50 				SetDParam(0, year);
    51 				DrawStringCenterUnderline(x-17, 15, STR_7010, 0);
    51 				DrawStringCenterUnderline(x-17, 15, STR_7010, 0);
    52 				sum = 0;
    52 				sum = 0;
    53 				for (i = 0; i != 13; i++) {
    53 				for (i = 0; i != 13; i++) {
    54 					/* draw one row in the price column */
    54 					/* draw one row in the price column */
    55 					cost = (*tbl)[i];
    55 					cost = (*tbl)[i];