Skip to content

Commit

Permalink
style: fix code style issues with gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lint-action committed Nov 9, 2024
1 parent 338ee34 commit 38dfd96
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
30 changes: 15 additions & 15 deletions src/anim.go
Original file line number Diff line number Diff line change
Expand Up @@ -912,22 +912,22 @@ func (at AnimationTable) get(no int32) *Animation {
}

type SprData struct {
anim *Animation
fx *PalFX
pos [2]float32
scl [2]float32
alpha [2]int32
priority int32
rot Rotation
ascl [2]float32
screen bool
bright bool
oldVer bool
facing float32
anim *Animation
fx *PalFX
pos [2]float32
scl [2]float32
alpha [2]int32
priority int32
rot Rotation
ascl [2]float32
screen bool
bright bool
oldVer bool
facing float32
airOffsetFix [2]float32 // posLocalscl replacement
projection int32
fLength float32
window [4]float32
projection int32
fLength float32
window [4]float32
}

type DrawList []*SprData
Expand Down
48 changes: 24 additions & 24 deletions src/char.go
Original file line number Diff line number Diff line change
Expand Up @@ -2335,30 +2335,30 @@ func (c *Char) panic() {
func (c *Char) init(n int, idx int32) {
// Reset struct with defaults
*c = Char{
playerNo: n,
helperIndex: idx,
controller: n,
animPN: n,
id: -1,
index: -1,
runorder: -1,
parentIndex: IErr,
hoIdx: -1,
mctype: MC_Hit,
ownpal: true,
facing: 1,
minus: 2,
winquote: -1,
clsnBaseScale: [2]float32{1, 1},
clsnScaleMul: [2]float32{1, 1},
clsnScale: [2]float32{1, 1},
zScale: 1,
aimg: *newAfterImage(),
playerNo: n,
helperIndex: idx,
controller: n,
animPN: n,
id: -1,
index: -1,
runorder: -1,
parentIndex: IErr,
hoIdx: -1,
mctype: MC_Hit,
ownpal: true,
facing: 1,
minus: 2,
winquote: -1,
clsnBaseScale: [2]float32{1, 1},
clsnScaleMul: [2]float32{1, 1},
clsnScale: [2]float32{1, 1},
zScale: 1,
aimg: *newAfterImage(),
CharSystemVar: CharSystemVar{
superDefenseMul: 1.0,
fallDefenseMul: 1.0,
customDefense: 1.0,
finalDefense: 1.0,
superDefenseMul: 1.0,
fallDefenseMul: 1.0,
customDefense: 1.0,
finalDefense: 1.0,
},
}

Expand Down Expand Up @@ -2410,7 +2410,7 @@ func (c *Char) clsnOverlapTrigger(box1, pid, box2 int32) bool {
}

func (c *Char) copyParent(p *Char) {
c.name = p.name+"'s helper"
c.name = p.name + "'s helper"
c.parentIndex = p.helperIndex
c.controller = p.controller
c.teamside = p.teamside
Expand Down

0 comments on commit 38dfd96

Please sign in to comment.