(svn r1685) - Fix: [newgrf] airplanes from grf sets are not treated as helicopters, as introduced in r1682
authordominik
Wed, 26 Jan 2005 18:39:35 +0000
changeset 1183 a9273fb4d48e
parent 1182 45b34b97753c
child 1184 7f0ac9482dad
(svn r1685) - Fix: [newgrf] airplanes from grf sets are not treated as helicopters, as introduced in r1682
newgrf.c
--- a/newgrf.c	Wed Jan 26 18:18:00 2005 +0000
+++ b/newgrf.c	Wed Jan 26 18:39:35 2005 +0000
@@ -590,14 +590,14 @@
 			FOR_EACH_OBJECT {
 				uint8 heli = grf_load_byte(&buf);
 				avi[i].subtype &= ~0x01; // remove old property
-				avi[i].subtype &= (heli == 0) ? 0 : 1;
+				avi[i].subtype |= (heli == 0) ? 0 : 1;
 			}
 		}	break;
 		case 0x0A: {	/* Large */
 			FOR_EACH_OBJECT {
 				uint8 large = grf_load_byte(&buf);
 				avi[i].subtype &= ~0x02; // remove old property
-				avi[i].subtype &= (large == 1) ? 2 : 0;
+				avi[i].subtype |= (large == 1) ? 2 : 0;
 			}
 		}	break;
 		case 0x0B: {	/* Cost factor */