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
+8
View File
@@ -61,14 +61,22 @@ class Rect
bool Is_Valid(void) const;
int Size(void) const {return(Width*Height);}
void Clear(void);
void AddPoint(int x, int y);
void AddIsoPoint(int x, int y);
bool ContainsPoint(int x, int y);
// private:
int X;
int Y;
int X2;
int Y2;
int Width;
int Height;
};
#endif