racing:: fix a bug with race_start_tick

This commit is contained in:
Zeno Rogue 2019-01-03 19:59:10 +01:00
parent 7100dc0de6
commit 3eceff921c
1 changed files with 10 additions and 0 deletions

View File

@ -2976,6 +2976,16 @@ void turn(int delta) {
if(callhandlers(false, hooks_turn, delta)) return;
if(!shmup::on) return;
if(!(cmode & sm::NORMAL)) {
#if CAP_RACING
if(racing::on) {
if(racing::race_start_tick) racing::race_start_tick += delta;
for(int& i: racing::race_finish_tick) if(i) i += delta;
}
#endif
return;
}
timetowait = 0;