aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sludge/floor.cpp2
-rw-r--r--engines/sludge/floor.h9
2 files changed, 4 insertions, 7 deletions
diff --git a/engines/sludge/floor.cpp b/engines/sludge/floor.cpp
index e556463738..15da333def 100644
--- a/engines/sludge/floor.cpp
+++ b/engines/sludge/floor.cpp
@@ -159,7 +159,7 @@ bool setFloor(int fileNum) {
// Find out how many vertices there are and reserve memory
i = bigDataFile->readUint16BE();
- currentFloor->vertex = new POINT[i];
+ currentFloor->vertex = new Common::Point[i];
if (!checkNew(currentFloor->vertex))
return false;
diff --git a/engines/sludge/floor.h b/engines/sludge/floor.h
index 1b212fa73b..b1de826f9d 100644
--- a/engines/sludge/floor.h
+++ b/engines/sludge/floor.h
@@ -22,6 +22,8 @@
#ifndef SLUDGE_FLOOR_H
#define SLUDGE_FLOOR_H
+#include "common/rect.h"
+
namespace Sludge {
struct floorPolygon {
@@ -29,14 +31,9 @@ struct floorPolygon {
int *vertexID;
};
-struct POINT {
- int x;
- int y;
-};
-
struct flor {
int originalNum;
- POINT *vertex;
+ Common::Point *vertex;
int numPolygons;
floorPolygon *polygon;
int * *matrix;