summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2Sprite.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-01 23:04:04 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-01 23:04:04 +0100
commitc2efba6907fab934a04959b9bb644cf7141cc955 (patch)
treec047244f99870e44a7a5d7e733c2857434c03765 /src/T2DLL/T2Sprite.cpp
parent1eb8da84d77d0c865623421069ec38bfc7b0d461 (diff)
downloadt2win-c2efba6907fab934a04959b9bb644cf7141cc955.tar.gz
t2win-c2efba6907fab934a04959b9bb644cf7141cc955.zip
matched T2DLL as well as i can
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;
}