Fix bug in code that looks for the edge of the screen which was comparing by tile number, not tile offset.

This commit is contained in:
Jeremy Rand 2020-09-11 00:25:41 -04:00
parent 46567659e9
commit ab5f5c6299
2 changed files with 2 additions and 3 deletions

View File

@ -338,7 +338,7 @@ updateSegmentLeftSlow_checkDir anop
lda segmentTileOffsetsUL,y
tax
lda tileLeft,x
cmp #LHS_FIRST_TILE
cmp #LHS_FIRST_TILE*SIZEOF_TILE_INFO
bge updateSegmentLeftSlow_changeDir
tax
lda tileType,x
@ -635,7 +635,7 @@ updateSegmentRightSlow_checkDir anop
lda segmentTileOffsetsUR,y
tax
lda tileRight,x
cmp #RHS_FIRST_TILE
cmp #RHS_FIRST_TILE*SIZEOF_TILE_INFO
bge updateSegmentRightSlow_changeDir
tax
lda tileType,x

View File

@ -8,7 +8,6 @@ s6d2 =
s7d1 = /Users/jrand/Library/Developer/Xcode/DerivedData/BuGS-bffpexoblaghkzcbtjtzxeulnuto/Build/Products/Debug/BuGS.2mg
g_limit_speed = 0
bram1[00] = 00 00 00 01 00 00 0d 06 02 01 01 00 01 00 00 00