diff options
author | yinsimei | 2017-07-10 20:19:57 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | ee45e1517800aac5d165dc08923f1f5b2b8a21e0 (patch) | |
tree | b7a56f5ce4b5d5f1290381076621bbae43c46e40 /engines | |
parent | 07e4982027f042c0c8fb27e28bd410cb70d51b27 (diff) | |
download | scummvm-rg350-ee45e1517800aac5d165dc08923f1f5b2b8a21e0.tar.gz scummvm-rg350-ee45e1517800aac5d165dc08923f1f5b2b8a21e0.tar.bz2 scummvm-rg350-ee45e1517800aac5d165dc08923f1f5b2b8a21e0.zip |
SLUDGE: use Common::Point instead of struct POINT
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sludge/floor.cpp | 2 | ||||
-rw-r--r-- | engines/sludge/floor.h | 9 |
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; |