mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
Improved Scrolling, Large Map Handling
- Bugfix in MapClass::Overpass when placing objects while scrolled all the way up / left on a larger map - Disabled a check in DisplayClass::Set_Cursor_Pos preventing mouse cell coordinates from being updated while scrolled all the way up / left on a larger map - Added (disabled) function to display mouse/cell position - Improved mouse scroll region (but still work to be done)
This commit is contained in:
@@ -880,7 +880,8 @@ long MapClass::Overpass(void)
|
||||
*/
|
||||
for (int y = 0; y < MapCellHeight; y++) {
|
||||
for (int x = 0; x < MapCellWidth; x++) {
|
||||
CELL cell = (MapCellY+y) * MAP_CELL_W + (MapCellX+x);
|
||||
//CELL cell = (MapCellY+y) * MAP_CELL_W + (MapCellX+x);
|
||||
CELL cell = XY_Cell(x,y); // Replaced because a crash was being caused
|
||||
value += (*this)[cell].Tiberium_Adjust(true);
|
||||
(*this)[cell].Recalc_Attributes();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user