mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +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:
@@ -10,6 +10,7 @@
|
||||
#include "Graphics.h"
|
||||
#include "Localization.h"
|
||||
#include "MakeAndPlay.h"
|
||||
#include "Maths.h"
|
||||
#include "Music.h"
|
||||
#include "Script.h"
|
||||
#include "UtilityClass.h"
|
||||
@@ -156,7 +157,7 @@ void mapclass::setteleporter(int x, int y)
|
||||
return;
|
||||
}
|
||||
|
||||
point temp;
|
||||
SDL_Point temp;
|
||||
temp.x = x;
|
||||
temp.y = y;
|
||||
teleporters.push_back(temp);
|
||||
@@ -169,7 +170,7 @@ void mapclass::settrinket(int x, int y)
|
||||
return;
|
||||
}
|
||||
|
||||
point temp;
|
||||
SDL_Point temp;
|
||||
temp.x = x;
|
||||
temp.y = y;
|
||||
shinytrinkets.push_back(temp);
|
||||
|
||||
Reference in New Issue
Block a user