fix:处理了头像框和聊天框得逻辑

This commit is contained in:
yushunrui 2024-01-12 23:10:39 +08:00 committed by xichaoyin
parent 3e43065142
commit e4815b4246

View File

@ -298,8 +298,6 @@ export class UserFun {
change = true; change = true;
gud.headFrames[conf.id] = -1; gud.headFrames[conf.id] = -1;
} else if (val > 0 && gud.headFrames[conf.id] != -1) { } else if (val > 0 && gud.headFrames[conf.id] != -1) {
}
else if (val >= 0) {
change = true; change = true;
gud.headFrames[conf.id] = G.time + val * v; gud.headFrames[conf.id] = G.time + val * v;
} }
@ -386,7 +384,7 @@ export class UserFun {
if (conf?.cond?.[0] == 'time') { if (conf?.cond?.[0] == 'time') {
let val = conf.cond[1]; let val = conf.cond[1];
if (val == -1 && !gud.headFrames[conf.id]) { if (val == -1) {
change = true; change = true;
gud.headFrames[conf.id] = -1; gud.headFrames[conf.id] = -1;
} }