lemm: don't assign floater if already one

This commit is contained in:
Vince Weaver 2022-04-04 23:24:19 -04:00
parent 87f038b675
commit 818296b858
1 changed files with 4 additions and 0 deletions

View File

@ -312,6 +312,10 @@ make_floater:
lda FLOATER_COUNT ; only if we have some left
beq done_make_floater
lda lemming_attribute,Y ; don't make floater if already one
and #LEMMING_FLOATER
bne done_make_floater
lda #LEMMING_FLOATER
ora lemming_attribute,Y
sta lemming_attribute,Y