File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -428,9 +428,12 @@ _move_down_else
428
428
429
429
sub draw () {
430
430
; Look up sub - byte position
431
+
431
432
ubyte cur = enemyRef [EN_DIR ]
432
- + (not enemyRef [EN_SUBPOS ] & main .TOPMOST ) * 4
433
- + (not enemyRef [EN_SUBPOS ] & main .LEFTMOST ) * 2
433
+ if (enemyRef [EN_SUBPOS ] & main .TOPMOST ) == 0
434
+ cur += 4
435
+ if (enemyRef [EN_SUBPOS ] & main .LEFTMOST ) == 0
436
+ cur += 2
434
437
435
438
ubyte tmp_x = enemyRef [EN_X ]
436
439
ubyte tmp_y = enemyRef [EN_Y ]
Original file line number Diff line number Diff line change @@ -72,8 +72,10 @@ explosion {
72
72
; Find korrekt animation , first correct " step"
73
73
ubyte gfx_ind = (explosionRef [EX_STAGE ] - 1 ) * 8
74
74
; Correct for nibble shift
75
- gfx_ind += (not explosionRef [EX_SUBPOS ] & main .TOPMOST ) * 4
76
- gfx_ind += (not explosionRef [EX_SUBPOS ] & main .LEFTMOST ) * 2
75
+ if (explosionRef [EX_SUBPOS ] & main .TOPMOST ) == 0
76
+ gfx_ind += 4
77
+ if (explosionRef [EX_SUBPOS ] & main .LEFTMOST ) == 0
78
+ gfx_ind += 2
77
79
78
80
; Convert first byte to two PETSCII chars and draw
79
81
ubyte gfx_byte = gfx [gfx_ind ]
You can’t perform that action at this time.
0 commit comments