fixed missing CAP_RACING guards

This commit is contained in:
Zeno Rogue 2019-01-24 14:50:36 +01:00
parent 3e4fd1d1b8
commit 3a8a5a6150
4 changed files with 10 additions and 6 deletions

View File

@ -348,6 +348,7 @@ void initConfig() {
addsaver(vid.consider_shader_projection, "shader-projection", true);
#if CAP_RACING
addsaver(racing::race_advance, "race_advance");
addsaver(racing::race_angle, "race_angle");
addsaver(racing::ghosts_to_show, "race_ghosts_to_show");
@ -355,6 +356,7 @@ void initConfig() {
addsaver(racing::guiding, "race_guiding");
addsaver(racing::player_relative, "race_player_relative");
addsaver(racing::standard_centering, "race_standard_centering");
#endif
#if CAP_SHMUP
shmup::initConfig();

View File

@ -931,8 +931,10 @@ bool drawMonsterType(eMonster m, cell *where, const transmatrix& V, color_t col,
if(peace::on) ;
else if(racing::on) {
#if CAP_RACING
if(racing::trophy[multi::cpid])
queuepoly(VWPN, shTrophy, racing::trophy[multi::cpid]);
#endif
}
else if(items[itOrbThorns])
queuepoly(VWPN, shHedgehogBladePlayer, items[itOrbDiscord] ? watercolor(0) : 0x00FF00FF);

View File

@ -374,7 +374,11 @@ void drawStats() {
}
if(racing::on)
#if CAP_RACING
racing::drawStats();
#else
{}
#endif
else if(vid.xres > vid.yres * 85/100 && vid.yres > vid.xres * 85/100) {
int bycorner[4];
for(int u=0; u<4; u++) bycorner[u] = 0;

View File

@ -249,16 +249,12 @@
#define CAP_SHMUP_GOOD (!ISMOBWEB)
#endif
#ifndef CAP_BONUS
#define CAP_BONUS 1
#endif
#ifndef CAP_COMPLEX2
#define CAP_COMPLEX2 CAP_BONUS
#define CAP_COMPLEX2 1
#endif
#ifndef CAP_RACING
#define CAP_RACING CAP_BONUS
#define CAP_RACING (!ISMOBWEB)
#endif
#if ISMOBILE