File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
CEdev/lib/src/graphics/graphx/v3 Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2252,11 +2252,11 @@ _: ld (DrawTile_SMC),hl \.r
2252
2252
_: srl h
2253
2253
rr l
2254
2254
djnz - _
2255
- ld (ix +- 4 ) , l ; y = y_offset / tilemap->tile_height
2256
- ld (ix + 12 ) , bc ; y_offset = y_offset % tilemap->tile_height;
2255
+ ld (ix +- 4 ) , l ; y = y_offset / tilemap->tile_height
2256
+ ld (ix + 12 ) , bc ; y_offset = y_offset % tilemap->tile_height;
2257
2257
2258
2258
ld b , (iy + 10 )
2259
- ld hl , (ix + 9 )
2259
+ ld hl , (ix + 9 ) ; x offset
2260
2260
ld c , (iy + 7 )
2261
2261
dec c
2262
2262
ld a , l
@@ -2268,8 +2268,9 @@ _: srl h
2268
2268
ld a , l
2269
2269
ld (X_Res_SMC) , a \.r
2270
2270
ld hl , (iy + 15 )
2271
+ or a , a
2271
2272
sbc hl , bc
2272
- ld (X_Draw_SMC) , hl \.r ; x_draw = tilemap->x_loc-x_offset;
2273
+ ld (X_Draw_SMC) , hl \.r ; x_draw = tilemap->x_loc-x_offset;
2273
2274
2274
2275
or a , a
2275
2276
sbc hl , hl
You can’t perform that action at this time.
0 commit comments