Refactored scroll dimensions, fixed a crash were you would click on non existent tiles, editor now displays splash initially until you do new scenario or load a existing one.

This commit is contained in:
Justin Marshall
2020-07-17 20:17:49 -07:00
parent c48fc9723a
commit 8353b2c1dd
12 changed files with 103 additions and 21 deletions
+3
View File
@@ -77,6 +77,9 @@ int MapEditClass::Select_Object(void)
** Get cell for x,y
*/
cell = Click_Cell_Calc(x, y);
if(cell == -1) {
return -1;
}
/*
** Convert x,y to offset from cell upper-left