Skip to content

Commit 5f12c8c

Browse files
authored
Merge pull request #3769 from ikemen-engine/fix4
fix: attachedchar affecting lifebar win/loose
2 parents 6db1c1e + b3d2ae5 commit 5f12c8c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/fightscreen.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3734,13 +3734,13 @@ func (ro *FightScreenRound) handleRoundOutro() {
37343734
}
37353735
} else if sys.winTeam >= 0 {
37363736
isPlayerWin, isAiWin := false, false
3737-
for i := wt; i < len(sys.chars); i += 2 {
3737+
for i := wt; i < MaxSimul*2; i += 2 {
37383738
if len(sys.chars[i]) > 0 && sys.aiLevel[i] == 0 {
37393739
isPlayerWin = true
37403740
break
37413741
}
37423742
}
3743-
for i := lt; i < len(sys.chars); i += 2 {
3743+
for i := lt; i < MaxSimul*2; i += 2 {
37443744
if len(sys.chars[i]) > 0 && sys.aiLevel[i] == 0 {
37453745
isAiWin = true
37463746
break
@@ -4028,13 +4028,13 @@ func (ro *FightScreenRound) draw(layerno int16, f map[int]*Fnt) {
40284028
ro.drawgame_top.Draw(float32(ro.pos[0])+sys.fightScreen.offsetX, float32(ro.pos[1]), layerno, sys.fightScreen.scale)
40294029
} else if sys.winTeam >= 0 {
40304030
isPlayerWin, isAiWin := false, false
4031-
for i := wt; i < len(sys.chars); i += 2 {
4031+
for i := wt; i < MaxSimul*2; i += 2 {
40324032
if len(sys.chars[i]) > 0 && sys.aiLevel[i] == 0 {
40334033
isPlayerWin = true
40344034
break
40354035
}
40364036
}
4037-
for i := lt; i < len(sys.chars); i += 2 {
4037+
for i := lt; i < MaxSimul*2; i += 2 {
40384038
if len(sys.chars[i]) > 0 && sys.aiLevel[i] == 0 {
40394039
isAiWin = true
40404040
break

0 commit comments

Comments
 (0)