1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 19:29:09 +00:00

Fix string usage that was broken from enabling the Max plugin build

This commit is contained in:
2012-02-05 21:53:54 -08:00
parent bb0ed04a52
commit be4b0732d5
129 changed files with 952 additions and 1109 deletions

View File

@ -68,8 +68,7 @@ plLayerAnimationBase::plLayerAnimationBase()
fOpacityCtl(nil),
fTransformCtl(nil),
fEvalTime(-1.0),
fCurrentTime(-1.f),
fSegmentID(nil)
fCurrentTime(-1.f)
{
}
@ -81,7 +80,6 @@ plLayerAnimationBase::~plLayerAnimationBase()
delete fSpecularColorCtl;
delete fOpacityCtl;
delete fTransformCtl;
delete [] fSegmentID;
}
void plLayerAnimationBase::Read(hsStream* s, hsResMgr* mgr)

View File

@ -60,10 +60,10 @@ class plSimpleStateVariable;
class plLayerAnimationBase : public plLayerInterface
{
protected:
char* fSegmentID;
double fEvalTime;
float fCurrentTime;
float fLength;
plString fSegmentID;
double fEvalTime;
float fCurrentTime;
float fLength;
plController* fPreshadeColorCtl;
plController* fRuntimeColorCtl;
@ -92,8 +92,8 @@ public:
// Specialized
float GetLength() const { return fLength; }
char *GetSegmentID() const { return fSegmentID; }
void SetSegmentID(char *ID) { delete fSegmentID; fSegmentID = hsStrcpy(ID); }
plString GetSegmentID() const { return fSegmentID; }
void SetSegmentID(const plString &ID) { fSegmentID = ID; }
// Export construction functions follow
void SetPreshadeColorCtl(plController* colCtl);