src/newgrf_engine.cpp
changeset 8427 143b0be22af1
parent 8424 4a488a90ccab
child 8626 440dfcd14c4a
equal deleted inserted replaced
8426:89570a8b6ed0 8427:143b0be22af1
   658 			 *   bit 5: Whether the rail vehicle is powered or not (mostly useful for wagons).
   658 			 *   bit 5: Whether the rail vehicle is powered or not (mostly useful for wagons).
   659 			 *   bit 6: This is an electrically powered rail vehicle which is running on normal rail.
   659 			 *   bit 6: This is an electrically powered rail vehicle which is running on normal rail.
   660 			 *   bit 8: (Maybe?) Toggled whenever the train reverses.
   660 			 *   bit 8: (Maybe?) Toggled whenever the train reverses.
   661 			 */
   661 			 */
   662 
   662 
   663 			if (HasBit(v->vehicle_flags, VF_BUILT_AS_PROTOTYPE)) SETBIT(modflags, 10);
   663 			if (HasBit(v->vehicle_flags, VF_BUILT_AS_PROTOTYPE)) SetBit(modflags, 10);
   664 
   664 
   665 			return variable == 0xFE ? modflags : GB(modflags, 8, 8);
   665 			return variable == 0xFE ? modflags : GB(modflags, 8, 8);
   666 		}
   666 		}
   667 	}
   667 	}
   668 
   668