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
+7
View File
@@ -534,6 +534,13 @@ void MapEditClass::AI(KeyNumType & input, int x, int y)
/*
** Check for mouse motion while left button is down.
*/
//Draw mouse cell position (CellX/CellY)
//CELL template_cell = (ZoneCell + ZoneOffset);
//char tmp[12];
//sprintf(tmp, "%d , %d", Cell_X(template_cell), Cell_Y(template_cell));
//GL_DrawText(6, 64, 64, tmp);
rc = Mouse_Moved();
if (Keyboard->Down(KN_LMOUSE) && rc) {