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:
nev6502
2020-07-08 00:58:13 -06:00
parent c3ba2033ca
commit cd6446d58a
4 changed files with 41 additions and 25 deletions
+2 -1
View File
@@ -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();
}