Decompile fn_19343 (Replay::SetState)
Batch #16100 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_19343 Replay::SetState: logic confirmed by peer review Peer-reviewed-by: alisonrag, youko Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
84042f145a
commit
d93b6e501f
1 changed files with 2 additions and 6 deletions
|
|
@ -40,14 +40,10 @@ bool Replay::SetState(int state) {
|
|||
}
|
||||
if (state >= 1 && state <= 8) {
|
||||
this->state = state;
|
||||
if (state <= 3) {
|
||||
g_replayAnimationScaling = 0;
|
||||
}
|
||||
g_replayAnimationScaling = state <= 3 ? 0 : g_replayAnimationScaling;
|
||||
} else {
|
||||
this->state = 1;
|
||||
}
|
||||
if (state >= 6 && state <= 8) {
|
||||
g_replayAnimationScaling = 1;
|
||||
}
|
||||
g_replayAnimationScaling = state >= 6 && state <= 8 ? 1 : g_replayAnimationScaling;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue