src/subsidy_gui.cpp
changeset 9362 ee98b0755c52
parent 9333 2da01b3b71d8
child 9448 1c58609bae95
equal deleted inserted replaced
9361:7a213ee7ee5b 9362:ee98b0755c52
   116 			if (s->cargo_type != CT_INVALID && s->age < 12) {
   116 			if (s->cargo_type != CT_INVALID && s->age < 12) {
   117 				int x2;
   117 				int x2;
   118 
   118 
   119 				/* Displays the two offered towns */
   119 				/* Displays the two offered towns */
   120 				SetupSubsidyDecodeParam(s, 1);
   120 				SetupSubsidyDecodeParam(s, 1);
   121 				x2 = DrawStringTruncated(x + 2, y, STR_2027_FROM_TO, TC_FROMSTRING, width);
   121 				x2 = DrawStringTruncated(x + 2, y, STR_2027_FROM_TO, TC_FROMSTRING, width - 2);
   122 
   122 
   123 				/* Displays the deadline before voiding the proposal */
   123 				if (width - x2 > 10) {
   124 				SetDParam(0, _date - ymd.day + 384 - s->age * 32);
   124 					/* Displays the deadline before voiding the proposal */
   125 				DrawStringTruncated(x2, y, STR_2028_BY, TC_FROMSTRING, width - x2);
   125 					SetDParam(0, _date - ymd.day + 384 - s->age * 32);
       
   126 					DrawStringTruncated(x2, y, STR_2028_BY, TC_FROMSTRING, width - x2);
       
   127 				}
       
   128 
   126 				y += 10;
   129 				y += 10;
   127 				num++;
   130 				num++;
   128 			}
   131 			}
   129 		}
   132 		}
   130 
   133