Use SDL_Point instead of rolling our own point struct

The `point` struct was a relic of ActionScript and was added because of
the Flash 'point' object. However, it seems like Simon Roth didn't
realize that SDL has its own point struct.

With this, `Maths.h` can be un-included from a couple headers, which
exposes the fact that `preloader.cpp` was relying on `Maths.h` being
transitively included from `Graphics.h`.
This commit is contained in:
Misa
2023-01-28 23:32:14 -08:00
parent c7098f84e5
commit fbc9b3ddd7
9 changed files with 17 additions and 21 deletions

View File

@@ -7,7 +7,6 @@
#include "Game.h"
#include "GraphicsResources.h"
#include "Maths.h"
#include "Textbox.h"
#include "TowerBG.h"
@@ -246,7 +245,7 @@ public:
void renderfixedpre(void);
void renderfixedpost(void);
bool Hitest(SDL_Surface* surface1, point p1, SDL_Surface* surface2, point p2);
bool Hitest(SDL_Surface* surface1, SDL_Point p1, SDL_Surface* surface2, SDL_Point p2);
void drawentities(void);