background parallax fix

This commit is contained in:
Alula 2020-09-12 07:10:48 +02:00
parent 519c7e6349
commit a737619f56
No known key found for this signature in database
GPG Key ID: 3E00485503A1D8BA
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ impl GameScene {
}
}
BackgroundType::MoveDistant | BackgroundType::MoveNear => {
let (off_x, off_y) = if self.stage.data.background_type == BackgroundType::MoveDistant {
let (off_x, off_y) = if self.stage.data.background_type == BackgroundType::MoveNear {
(
self.frame.x as usize % (batch.width() * 0x200),
self.frame.y as usize % (batch.height() * 0x200)