racing:: added missing CAP_RACING guard

This commit is contained in:
? 2019-02-27 23:31:11 +01:00 committed by Zeno Rogue
parent 54f278963c
commit 41c3bd9b58
1 changed files with 3 additions and 1 deletions

View File

@ -1042,10 +1042,12 @@ void centerpc(ld aspd) {
if(shmup::on && DIM == 3 && vid.sspeed > -5) {
transmatrix at = ggmatrix(shmup::pc[0]->base) * shmup::pc[0]->at * cpush(2, -vid.yshift);
View = inverse(at) * View;
#if CAP_RACING
if(racing::on) racing::set_view();
#endif
return;
}
#if CAP_RACING
if(racing::on && !racing::standard_centering) {
racing::set_view();