mirror of https://github.com/OpenRCT2/OpenRCT2.git
Remove implicit conversion constructor
This commit is contained in:
parent
7193ba1bb7
commit
121585578e
|
@ -253,15 +253,21 @@ private:
|
|||
|
||||
if (td->type == RIDE_TYPE_MAZE)
|
||||
{
|
||||
rct_td46_maze_element mazeElement{};
|
||||
mazeElement.all = !0;
|
||||
while (mazeElement.all != 0)
|
||||
rct_td46_maze_element t4MazeElement{};
|
||||
t4MazeElement.all = !0;
|
||||
while (t4MazeElement.all != 0)
|
||||
{
|
||||
_stream.Read(&mazeElement, sizeof(rct_td46_maze_element));
|
||||
if (mazeElement.all != 0)
|
||||
_stream.Read(&t4MazeElement, sizeof(rct_td46_maze_element));
|
||||
if (t4MazeElement.all != 0)
|
||||
{
|
||||
TrackDesignMazeElement mazeElement{};
|
||||
mazeElement.x = t4MazeElement.x;
|
||||
mazeElement.y = t4MazeElement.y;
|
||||
mazeElement.direction = t4MazeElement.direction;
|
||||
mazeElement.type = t4MazeElement.type;
|
||||
td->maze_elements.push_back(mazeElement);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -138,13 +138,18 @@ public:
|
|||
|
||||
if (td->type == RIDE_TYPE_MAZE)
|
||||
{
|
||||
rct_td46_maze_element mazeElement{};
|
||||
mazeElement.all = !0;
|
||||
while (mazeElement.all != 0)
|
||||
rct_td46_maze_element t4MazeElement{};
|
||||
t4MazeElement.all = !0;
|
||||
while (t4MazeElement.all != 0)
|
||||
{
|
||||
_stream.Read(&mazeElement, sizeof(rct_td46_maze_element));
|
||||
if (mazeElement.all != 0)
|
||||
_stream.Read(&t4MazeElement, sizeof(rct_td46_maze_element));
|
||||
if (t4MazeElement.all != 0)
|
||||
{
|
||||
TrackDesignMazeElement mazeElement{};
|
||||
mazeElement.x = t4MazeElement.x;
|
||||
mazeElement.y = t4MazeElement.y;
|
||||
mazeElement.direction = t4MazeElement.direction;
|
||||
mazeElement.type = t4MazeElement.type;
|
||||
td->maze_elements.push_back(mazeElement);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -74,12 +74,6 @@ struct TrackDesignMazeElement
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
TrackDesignMazeElement() = default;
|
||||
TrackDesignMazeElement(const rct_td46_maze_element& formerMazeElement)
|
||||
: all(formerMazeElement.all)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
struct TrackDesign
|
||||
|
|
Loading…
Reference in New Issue