Skip to content

Commit

Permalink
Fix right/down water currents drawing wrong tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
andwn committed Feb 22, 2022
1 parent a51b87f commit d7ddb3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stage.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,11 @@ void stage_update() {
break;
case 2: // Right
from_ts = (uint8_t*) TS_WindH.tiles;
from_index = 13 - ((currentsTimer >> 1) & ~1);
from_index = 14 - ((currentsTimer >> 1) & ~1);
break;
case 3: // Down
from_ts = (uint8_t*) TS_WindV.tiles;
from_index = 13 - ((currentsTimer >> 1) & ~1);
from_index = 14 - ((currentsTimer >> 1) & ~1);
break;
default: return;
}
Expand Down

0 comments on commit d7ddb3d

Please sign in to comment.