fix d2chaos

This commit is contained in:
Alexander Wang 2024-06-03 13:18:20 -06:00
parent 15ba701576
commit b2451eb30c
No known key found for this signature in database
GPG key ID: BE3937D0D52D8927

View file

@ -269,7 +269,7 @@ func (gs *dslGenState) randStr(n int, inKey bool) string {
func (gs *dslGenState) randShape() string { func (gs *dslGenState) randShape() string {
for { for {
s := shapes[gs.rand.Intn(len(shapes))] s := shapes[gs.rand.Intn(len(shapes))]
if s != d2target.ShapeImage { if s != d2target.ShapeImage && s != d2target.ShapeText {
return s return s
} }
} }