SLUDGE: use Common::Point instead of struct POINT

This commit is contained in:
yinsimei 2017-07-10 20:19:57 +02:00 committed by Eugene Sandulenko
parent 07e4982027
commit ee45e15178
2 changed files with 4 additions and 7 deletions

View File

@ -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;

View File

@ -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;