mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 09:54:10 +03:00
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:
@@ -5,7 +5,6 @@
|
||||
|
||||
#include "Finalclass.h"
|
||||
#include "Labclass.h"
|
||||
#include "Maths.h"
|
||||
#include "Otherlevel.h"
|
||||
#include "Spacestation2.h"
|
||||
#include "Tower.h"
|
||||
@@ -154,8 +153,8 @@ public:
|
||||
int final_colorframe, final_colorframedelay;
|
||||
|
||||
//Teleporters and Trinkets on the map
|
||||
std::vector<point> teleporters;
|
||||
std::vector<point> shinytrinkets;
|
||||
std::vector<SDL_Point> teleporters;
|
||||
std::vector<SDL_Point> shinytrinkets;
|
||||
|
||||
bool showteleporters, showtargets, showtrinkets;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user