mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-13 21:20:58 +00:00
SLUDGE: use Common::Point instead of struct POINT
This commit is contained in:
parent
07e4982027
commit
ee45e15178
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user