From 517715abd19f057b9d4894bcc86de8a4edd52234 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 14 Feb 2006 05:47:16 +0000 Subject: Added the lcApplication class. git-svn-id: http://svn.leocad.org/trunk@473 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- common/pieceinf.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/pieceinf.cpp') 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++) -- cgit v1.2.3