Changeset - r1180:3b97c8d55b70
[Not reviewed]
master
0 1 0
dominik - 19 years ago 2005-01-26 17:36:59
dominik@openttd.org
(svn r1682) - Fix: [newgrf] Helicopters from grf sets are now correctly recognized
1 file changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
newgrf.c
Show inline comments
 
@@ -589,15 +589,15 @@ static bool AircraftVehicleChangeInfo(ui
 
		case 0x09: {	/* Helicopter */
 
			FOR_EACH_OBJECT {
 
				uint8 heli = grf_load_byte(&buf);
 

	
 
				avi[i].subtype = (heli == 0) ? 0 : 1;
 
				avi[i].subtype &= ~0x01; // remove old property
 
				avi[i].subtype &= (heli == 0) ? 0 : 1;
 
			}
 
		}	break;
 
		case 0x0A: {	/* Large */
 
			FOR_EACH_OBJECT {
 
				uint8 large = grf_load_byte(&buf);
 

	
 
				avi[i].subtype = (large == 1) ? 3 : 1;
 
				avi[i].subtype &= ~0x02; // remove old property
 
				avi[i].subtype &= (large == 1) ? 2 : 0;
 
			}
 
		}	break;
 
		case 0x0B: {	/* Cost factor */
0 comments (0 inline, 0 general)