aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/readparse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lab/readparse.cpp')
-rw-r--r--engines/lab/readparse.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/engines/lab/readparse.cpp b/engines/lab/readparse.cpp
index 7734a232bb..075c1fdb99 100644
--- a/engines/lab/readparse.cpp
+++ b/engines/lab/readparse.cpp
@@ -46,9 +46,6 @@ static bool UseMemory = false;
extern RoomData *Rooms;
extern InventoryData *Inventory;
extern uint16 NumInv, ManyRooms, HighestCondition, Direction;
-extern LargeSet Conditions, RoomsFound;
-
-
static uint16 allocroom;
@@ -474,40 +471,4 @@ bool readViews(uint16 RoomNum, const char *Path) {
return false;
}
-
-
-
-/*****************************************************************************/
-/* Reads the initial conditions and sets the LargeSet accordingly. */
-/*****************************************************************************/
-bool readInitialConditions(LargeSet conditions, const char *fileName) {
- byte **file;
- uint16 many, set;
- char temp[5];
-
- if ((file = g_music->newOpen(fileName)) != NULL) {
- readBlock(temp, 4L, file);
- temp[4] = '\0';
-
- if (strcmp(temp, "CON0") != 0)
- return false;
-
- readBlock(&many, 2L, file);
-#if !defined(DOSCODE)
- swapUShortPtr(&many, 1);
-#endif
-
- for (int counter = 0; counter < many; counter++) {
- readBlock(&set, 2L, file);
-#if !defined(DOSCODE)
- swapUShortPtr(&set, 1);
-#endif
- inclElement(conditions, set);
- }
- } else
- return false;
-
- return true;
-}
-
} // End of namespace Lab