diff options
author | yinsimei | 2017-05-27 20:16:54 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | 45dcfdfc0bad326800618d4d3edfd772d53c9fc6 (patch) | |
tree | 28ac6da0023fa94cb1c756ea77e50c1b2cbf9d6e /engines/sludge/floor.cpp | |
parent | f5b4cf680371b5b2098c766361b5efc6e0a68e91 (diff) | |
download | scummvm-rg350-45dcfdfc0bad326800618d4d3edfd772d53c9fc6.tar.gz scummvm-rg350-45dcfdfc0bad326800618d4d3edfd772d53c9fc6.tar.bz2 scummvm-rg350-45dcfdfc0bad326800618d4d3edfd772d53c9fc6.zip |
SLUDGE: Replace standard file reading functions by Common functions
Diffstat (limited to 'engines/sludge/floor.cpp')
-rw-r--r-- | engines/sludge/floor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sludge/floor.cpp b/engines/sludge/floor.cpp index 291961dc68..7ca30b6c3d 100644 --- a/engines/sludge/floor.cpp +++ b/engines/sludge/floor.cpp @@ -127,13 +127,13 @@ bool setFloor(int fileNum) { killFloor(); setResourceForFatal(fileNum); -#if ALLOW_FILE + if (! openFileFromNum(fileNum)) return false; // Find out how many polygons there are and reserve memory currentFloor -> originalNum = fileNum; - currentFloor -> numPolygons = fgetc(bigDataFile); + currentFloor -> numPolygons = getch(bigDataFile); currentFloor -> polygon = new floorPolygon[currentFloor -> numPolygons]; if (! checkNew(currentFloor -> polygon)) return false; @@ -143,7 +143,7 @@ bool setFloor(int fileNum) { // Find out how many vertex IDs there are and reserve memory - currentFloor -> polygon[i].numVertices = fgetc(bigDataFile); + currentFloor -> polygon[i].numVertices = getch(bigDataFile); currentFloor -> polygon[i].vertexID = new int[currentFloor -> polygon[i].numVertices]; if (! checkNew(currentFloor -> polygon[i].vertexID)) return false; @@ -167,7 +167,7 @@ bool setFloor(int fileNum) { } finishAccess(); -#endif + // Now build the movement martix currentFloor -> matrix = new int *[currentFloor -> numPolygons]; |