mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
81e0e61a43
commit
800101da90
@ -42,7 +42,7 @@ func NewMultiFace(faces ...Face) (*MultiFace, error) {
|
|||||||
d := faces[0].direction()
|
d := faces[0].direction()
|
||||||
for _, f := range faces[1:] {
|
for _, f := range faces[1:] {
|
||||||
if f.direction() != d {
|
if f.direction() != d {
|
||||||
return nil, errors.New("text: all the faces' directions must agree")
|
return nil, errors.New("text: all the faces' directions must agree at NewMultiFace")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user