1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-19 04:02:47 +00:00

Merge pull request #35 from dawndus/master

fix Yes/No animation
This commit is contained in:
alula 2022-01-02 02:08:44 +01:00 committed by GitHub
commit 00309a73f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -542,7 +542,7 @@ impl GameScene {
if let TextScriptExecutionState::WaitConfirmation(_, _, _, wait, selection) = state.textscript_vm.state { if let TextScriptExecutionState::WaitConfirmation(_, _, _, wait, selection) = state.textscript_vm.state {
let pos_y = if wait > 14 { let pos_y = if wait > 14 {
state.canvas_size.1 - off_bottom - 96.0 - (wait as f32 + 2.0) * 4.0 state.canvas_size.1 - off_bottom - 96.0 + (wait as f32 + 2.0)
} else { } else {
state.canvas_size.1 - off_bottom - 96.0 state.canvas_size.1 - off_bottom - 96.0
}; };