refresh level1 and smol tidyup

This commit is contained in:
Josh Deprez 2021-09-02 11:55:16 +10:00
parent df5afe11c1
commit 5116a10303
2 changed files with 3 additions and 4 deletions

View file

@ -91,11 +91,10 @@ func (t *Tilemap) Load(fs.FS) error {
if !ok { if !ok {
continue continue
} }
ad, found := t.Sheet.AnimDefs[at.AnimKey] at.anim = t.Sheet.NewAnim(at.AnimKey)
if !found { if at.anim == nil {
return fmt.Errorf("anim key %q not in sheet AnimDefs", at.AnimKey) return fmt.Errorf("missing anim %q", at.AnimKey)
} }
at.anim = ad.NewAnim()
} }
return nil return nil
} }

Binary file not shown.