summaryrefslogtreecommitdiff
path: root/common/pieceinf.cpp
diff options
context:
space:
mode:
authorleo2002-04-12 21:44:12 +0000
committerleo2002-04-12 21:44:12 +0000
commit525807c7290c8979dcdca3b210a14218c4edd8f1 (patch)
treee979086453064de6ca5f6855a4a28a6e4a32f76e /common/pieceinf.cpp
parentd3b46f0412d25ffd7ab1407b7bc892aa5eea4147 (diff)
Moved Pieces Library functions to a new class.
git-svn-id: http://svn.leocad.org/trunk@290 c7d43263-9d01-0410-8a33-9dba5d9f93d6
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++)