summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2Sprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2Sprite.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/T2DLL/T2Sprite.cpp b/src/T2DLL/T2Sprite.cpp
index 2cbd7e8..cd152b1 100644
--- a/src/T2DLL/T2Sprite.cpp
+++ b/src/T2DLL/T2Sprite.cpp
@@ -20,21 +20,21 @@ void T2Sprite::AllClear() {
}
int T2Sprite::NewSprite(T2ImageObj& imageObj, const CString& name, int layer) {
- T2SpriteObj *obj = new T2SpriteObj;
- obj->mImageObj = &imageObj;
- obj->mName = name;
+ T2SpriteObj *theSpriteObj = new T2SpriteObj;
+ theSpriteObj->mImageObj = &imageObj;
+ theSpriteObj->mName = name;
int index;
for (index = 0; ; index++) {
if (!FindObj(index))
break;
}
- obj->mIndex = index;
- obj->mLayer = layer;
+ theSpriteObj->mIndex = index;
+ theSpriteObj->mLayer = layer;
- int objIndex = imageObj.FindObject(name);
- imageObj.GetObjectSize(objIndex, &obj->mSize);
- AddTail(obj);
+ int imageObjInd = imageObj.FindObject(name);
+ imageObj.GetObjectSize(imageObjInd, &theSpriteObj->mSize);
+ AddTail(theSpriteObj);
return index;
}