Loading

Paste #po4jrn9sr

  1. diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp
  2. index 660b7e476..3db7a92c0 100644
  3. --- a/src/newgrf_engine.cpp
  4. +++ b/src/newgrf_engine.cpp
  5. @@ -693,6 +693,12 @@ static uint32 VehicleGetVariable(Vehicle *v, const VehicleScopeResolver *object,
  6.             return ret;
  7.         }
  8.  
  9. +       case 0x6A: {
  10. +           if (v->type != VEH_TRAIN) return 0;
  11. +           RailType rt = GetTileRailType(v->tile);
  12. +           return (HasPowerOnRail((RailType)parameter, rt) ? 0x100 : 0) | GetReverseRailTypeTranslation(rt, object->ro.grffile);
  13. +       }
  14. +
  15.         case 0xFE:
  16.         case 0xFF: {
  17.             uint16 modflags = 0;

Comments