(svn r2470) - Fix: Display station signs correctly in smallest zoom level in transparent buildings or tranparant station signs mode. (Peter1138)
This commit is contained in:
		@@ -1699,7 +1699,7 @@ STR_305AA_LARGE                                                 :{BLACK}Metropol
 | 
			
		||||
STR_305AB_LARGE                                                 :{BLACK}International airport
 | 
			
		||||
STR_305B_SIZE                                                   :{BLACK}Size
 | 
			
		||||
STR_305C_0                                                      :{STATION} {STRINL 0x30D1}
 | 
			
		||||
STR_305D_0                                                      :{TINYFONT}{BLACK}{STATION} {STRINL 0x30D1}
 | 
			
		||||
STR_STATION_SIGN_TINY                                           :{TINYFONT}{STATION} {STRINL 0x30D1}
 | 
			
		||||
STR_305E_RAILROAD_STATION                                       :Railway station
 | 
			
		||||
STR_305F_AIRCRAFT_HANGAR                                        :Aircraft hangar
 | 
			
		||||
STR_3060_AIRPORT                                                :Airport
 | 
			
		||||
 
 | 
			
		||||
@@ -896,7 +896,7 @@ static void ViewportAddStationNames(DrawPixelInfo *dpi)
 | 
			
		||||
					right > st->sign.left &&
 | 
			
		||||
					left < st->sign.left + st->sign.width_2*4) {
 | 
			
		||||
 | 
			
		||||
				sstd=AddStringToDraw(st->sign.left + 1, st->sign.top + 1, STR_305D_0, st->index, st->facilities, 0);
 | 
			
		||||
				sstd=AddStringToDraw(st->sign.left + 1, st->sign.top + 1, STR_STATION_SIGN_TINY, st->index, st->facilities, 0);
 | 
			
		||||
				if (sstd != NULL) {
 | 
			
		||||
					sstd->color = (st->owner == OWNER_NONE || !st->facilities) ? 0xE : _player_colors[st->owner];
 | 
			
		||||
					sstd->width = st->sign.width_2 | 0x8000;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user