Skip to content

Commit

Permalink
Added assert on object data length multiple
Browse files Browse the repository at this point in the history
  • Loading branch information
picosonic committed Nov 5, 2023
1 parent 0b1f298 commit aef101e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion beeb/objects.asm
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,11 @@ OBJ_RAILING4 = 71

.endofmovingdata

noofmoving = (endofmovingdata-movingdata)/movingsize
noofmoving = (((endofmovingdata-movingdata)/movingsize) AND &FF)

IF (endofmovingdata-movingdata) <> (noofmoving*movingsize)
ERROR "moving data typed in wrong"
ENDIF

; Reset moving items state, to when entering room they are in
.resetrous
Expand Down
Binary file modified beeb/progress.odt
Binary file not shown.

0 comments on commit aef101e

Please sign in to comment.