summaryrefslogtreecommitdiff
path: root/common/pieceinf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/pieceinf.cpp')
-rw-r--r--common/pieceinf.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/pieceinf.cpp b/common/pieceinf.cpp
index 7ef5a25..e6f53ca 100644
--- a/common/pieceinf.cpp
+++ b/common/pieceinf.cpp
@@ -14,6 +14,7 @@
#include "vector.h"
#include "defines.h"
#include "config.h"
+#include "library.h"
#define SIDES 16
static float sintbl[SIDES];
@@ -319,7 +320,7 @@ void PieceInfo::LoadInformation()
glEndList ();
// Open pieces.bin and buffer the information we need.
- strcpy (filename, project->GetLibraryPath());
+ strcpy (filename, project->GetPiecesLibrary ()->GetLibraryPath());
strcat (filename, "pieces.bin");
if (!bin.Open (filename, "rb"))
return;
@@ -380,7 +381,7 @@ void PieceInfo::LoadInformation()
bytes++;
strcpy(name, (char*)bytes);
- tex->texture = project->FindTexture(name);
+ tex->texture = project->GetPiecesLibrary()->FindTexture(name);
shorts = (lcint16*)(bytes + 8);
for (i = 0; i < 4; i++)