_sword OK

This commit is contained in:
robojumper
2025-04-06 11:55:14 +02:00
parent 5351639386
commit ba2d569818
6 changed files with 45 additions and 48 deletions
@@ -157,10 +157,9 @@ void dLytMsgWindowLink_c::executeState_In() {
if (mAnm[LINK_ANIM_IN].isEndReached()) {
v = mTranslationTo;
} else {
// TODO - when you fix this, fix other instances of this
// by searching for de4663d6
v = mpPanes[4]->GetTranslate();
v += (mTranslationTo - v) / 2.0f;
v.copyFrom(mpPanes[4]->GetTranslate());
mVec3_c tmp = (mTranslationTo - v) / 2.0f;
v += tmp;
}
mpPanes[4]->SetTranslate(v);
}
@@ -234,10 +234,9 @@ void dLytMsgWindowSword_c::executeState_Out() {
if (mAnm[SWORD_ANIM_OUT].isEndReached()) {
v = mTranslationFrom;
} else {
// TODO - when you fix this, fix other instances of this
// by searching for de4663d6
v = mpPanes[2]->GetTranslate();
v += (mTranslationTo - v) / 2.0f;
v.copyFrom(mpPanes[2]->GetTranslate());
mVec3_c tmp = (mTranslationTo - v) / 2.0f;
v += tmp;
}
mpPanes[2]->SetTranslate(v);
}
@@ -157,10 +157,9 @@ void dLytMsgWindowTalk_c::executeState_In() {
if (mAnm[TALK_ANIM_IN].isEndReached()) {
v = mTranslationTo;
} else {
// TODO - when you fix this, fix other instances of this
// by searching for de4663d6
v = mpPanes[4]->GetTranslate();
v += (mTranslationTo - v) / 2.0f;
v.copyFrom(mpPanes[4]->GetTranslate());
mVec3_c tmp = (mTranslationTo - v) / 2.0f;
v += tmp;
}
mpPanes[4]->SetTranslate(v);
}