minor change
This commit is contained in:
parent
7d1f685d4b
commit
21013620a9
|
@ -35,8 +35,8 @@ func (s *Sprite) SetPicture(pic Picture) {
|
|||
|
||||
var (
|
||||
center = s.bounds.Center()
|
||||
horizontal = V(s.bounds.W()/2, 0)
|
||||
vertical = V(0, s.bounds.H()/2)
|
||||
horizontal = X(s.bounds.W() / 2)
|
||||
vertical = Y(s.bounds.H() / 2)
|
||||
)
|
||||
|
||||
(*s.tri)[0].Position = -horizontal - vertical
|
||||
|
|
Loading…
Reference in New Issue