Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BaseClass::Read_INI does not account for MEGAMAPS. #937

Open
OmniBlade opened this issue Sep 27, 2023 · 0 comments
Open

BaseClass::Read_INI does not account for MEGAMAPS. #937

OmniBlade opened this issue Sep 27, 2023 · 0 comments
Labels
bug Something isn't working tiberian dawn Only affects the Tiberian Dawn builds

Comments

@OmniBlade
Copy link
Contributor

The following needs adding after the Coord is read from the ini:

#ifdef MEGAMAPS
        if (Map.MapBinaryVersion != MAP_VERSION_MEGA) {
            int x = Coord_X(node.Coord);
            int y = Coord_Y(node.Coord);
            x >>= 8;
            y >>= 8;
            CELL cell = XY_Cell(x, y);
            cell = Confine_Old_Cell(cell);
            node.Coord = Cell_Coord(cell);
        }
#endif
@OmniBlade OmniBlade added bug Something isn't working tiberian dawn Only affects the Tiberian Dawn builds labels Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tiberian dawn Only affects the Tiberian Dawn builds
Projects
None yet
Development

No branches or pull requests

1 participant