summaryrefslogtreecommitdiff
path: root/common/pieceinf.cpp
diff options
context:
space:
mode:
authorleo2006-02-14 05:47:16 +0000
committerleo2006-02-14 05:47:16 +0000
commit517715abd19f057b9d4894bcc86de8a4edd52234 (patch)
treec00bfdc017c28f69b97eeb9969ce09a987e2c068 /common/pieceinf.cpp
parente7a01e3d8402bce14ba6433d41095c5362076ff3 (diff)
Added the lcApplication class.
git-svn-id: http://svn.leocad.org/trunk@473 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 ffb1a76..9a9d30a 100644
--- a/common/pieceinf.cpp
+++ b/common/pieceinf.cpp
@@ -15,6 +15,7 @@
#include "defines.h"
#include "config.h"
#include "library.h"
+#include "lc_application.h"
#define SIDES 16
static float sintbl[SIDES];
@@ -320,7 +321,7 @@ void PieceInfo::LoadInformation()
glEndList ();
// Open pieces.bin and buffer the information we need.
- strcpy (filename, project->GetPiecesLibrary ()->GetLibraryPath());
+ strcpy (filename, lcGetPiecesLibrary()->GetLibraryPath());
strcat (filename, "pieces.bin");
if (!bin.Open (filename, "rb"))
return;
@@ -381,7 +382,7 @@ void PieceInfo::LoadInformation()
bytes++;
strcpy(name, (char*)bytes);
- tex->texture = project->GetPiecesLibrary()->FindTexture(name);
+ tex->texture = lcGetPiecesLibrary()->FindTexture(name);
shorts = (lcint16*)(bytes + 8);
for (i = 0; i < 4; i++)