Skip to content

Commit

Permalink
Bugfix for SP AI failing to rebuild buildings on non-megamaps.
Browse files Browse the repository at this point in the history
Don't remap coordinates for base nodes. It's unnecessary. (Also, the original code is buggy.)

See f46a7abfa6754c309b2a7e94e63b18a8568890fb from
https://github.com/ChthonVII/CnC_Remastered_Collection for further
details.
  • Loading branch information
ChthonVII authored and OmniBlade committed Jul 18, 2022
1 parent 36595cc commit c10b51c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tiberiandawn/base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,6 @@ void BaseClass::Read_INI(CCINIClass& ini)
*/
node.Coord = atol(strtok(NULL, ","));

#ifdef MEGAMAPS
/*
** Convert the normal cell position to a new big map position.
*/
if (Map.MapBinaryVersion == MAP_VERSION_NORMAL) {
CELL cell = Confine_Old_Cell(XY_Cell(Coord_X(node.Coord), Coord_Y(node.Coord)));
node.Coord = Cell_Coord(cell);
}
#endif

/*
** Add this node to the Base's list
*/
Expand Down

0 comments on commit c10b51c

Please sign in to comment.