mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
racing:: fix a bug with race_start_tick
This commit is contained in:
parent
7100dc0de6
commit
3eceff921c
10
shmup.cpp
10
shmup.cpp
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user