Loading

Paste #pjab8cqwd

  1. diff --git a/src/road.h b/src/road.h
  2. index dbc8be6..3ca4c14 100644
  3. --- a/src/road.h
  4. +++ b/src/road.h
  5. @@ -215,8 +215,16 @@ struct RoadTypeIdentifier {
  6.         bool IsRoad();
  7.         bool IsTram();
  8.  
  9. +       static RoadTypeIdentifier Unpack(uint8 data)^M
  10. +       {^M
  11. +               RoadTypeIdentifier rti;^M
  12. +               bool ret = rti.Unpack(data);^M
  13. +               assert(ret);^M
  14. +               return rti;^M
  15. +       }^M
  16. +^M
  17.         RoadTypeIdentifier(RoadType basetype, RoadSubType subtype) : basetype(basetype), subtype(subtype) {}
  18. -       explicit RoadTypeIdentifier(uint8 data);
  19. +       RoadTypeIdentifier() : basetype(INVALID_ROADTYPE), subtype(INVALID_ROADSUBTYPE) {}^M
  20.  };
  21.  
  22.  /**

Comments